/* ==========================================================================
   Popup / alert dialog — shared component styles.

   Single source of truth, loaded by the <x-popup> / <x-alertbox> Blade
   component, so every tool that renders the popup gets identical styling.

   The popup markup is a native <dialog> controlled through the
   HTMLDialogElement interface (showModal / close). Selectors are scoped under
   `.modal` so they never collide with other components (e.g. the feedback
   popup, which also uses a `.btn-bottom`).
   ========================================================================== */

/* Native <dialog>: the closed state (display:none) is handled by the UA
   stylesheet. Centering is pinned explicitly because the global
   `* { position: relative }` reset overrides the UA `position: fixed`. */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    width: 90%;
    max-width: 400px;
    z-index: 1001;
}

/* Dim overlay supplied natively by showModal() */
.modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.modal #image_popup {
    border-radius: 16px 16px 0 0;
}

.modal .modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.modal .modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

.modal .popup-title {
    font-size: 22px;
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
}

.modal .popup-message {
    color: var(--Text---Dark, #263238);
    text-align: center;
    font-family: var(--font-family);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

.modal .btn-bottom {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.modal .btn-bottom button:nth-child(1) {
    cursor: pointer;
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e9ecee;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #465056;
    flex: 1;
}

.modal .btn-bottom button:nth-child(2) {
    cursor: pointer;
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    color: #ffffff;
    background: #263238;
    flex: 1;
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: baseline;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .modal .modal-content {
        padding: 10px;
    }
    .modal .popup-title {
        font-size: 18px;
    }
    .modal .popup-message {
        font-size: 14px;
        line-height: 22px;
    }
}
