/* ==========================
   component
========================== */
.component-section > h2 {
    padding: 60px 0px 20px 60px;
}

.component-preview {
    display: flex;
    flex-direction: column;
    gap: 40px;

    padding: 40px;
    background: rgba(0,0,0,0.6);
}

/* ==========================
   Modal Base
========================== */
.layer-section {
    width:100%;
    height:100%;
    position:fixed;
    z-index:1100;
    top:0;
    left:0;
    background-color:rgba(0, 0, 0, 0.55);
    display:flex;
    align-items:center;
    justify-content:center;
    display:none;
}

.modal-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(0,0,0,.5);

    z-index: 9999;
}

.modal {
    display: flex;
    flex-direction: column;

    width: calc(100vw - 40px);
    max-height: 75vh;

    background: #fff;
    border-radius: var(--radius-12);

    overflow: hidden;
}

/* ==========================
   Modal Size
========================== */
.modal-sm {
    max-width: 480px;
    min-height: 28vh;
}

.modal-md {
    max-width: 720px;
    min-height: 36vh;
}

.modal-lg {
    max-width: 960px;
    min-height: 42vh;
}

/* ==========================
   Modal Header
========================== */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 50px;
    padding: 12px 20px;

    border-bottom: 1px solid var(--border);
}

.modal-title {
    flex: 1;
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--wf-900);
}

.modal-close {
    flex-shrink: 0;

    width: 24px;
    height: 24px;

    cursor: pointer;
}

/* ==========================
   Modal Body
========================== */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content p {
    text-align: left;
    font-size: var(--fs-sm);
    line-height: 1.5;
}

/* ==========================
   Modal Footer
========================== */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 20px 20px;
}

.modal-check {
    display: flex;
    align-items: center;
    gap: 8px;

    padding-left: 4px;

    font-size: var(--fs-sm);
    color: var(--wf-700);

    cursor: pointer;
}

.modal-footer-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn {
    min-width: 72px;
    min-height: 48px;

    padding: 0px 20px;

    border-radius: 6px;
    border: 1px solid var(--border);

    font-size: var(--fs-sm);
}

.btn-primary {
    border-color: var(--primary-blue100);
    background: var(--primary-blue100);
    color: #fff;
}

.btn-primary:hover {opacity: 0.8;}

.btn-secondary {
    color: var(--wf-700);
}

.btn-secondary:hover {background: var(--bg);}
