/* CloneMyKey BT Custom Vacation - Frontend Styles */

/* ---------- SPOT 1: Contact Us Page ---------- */
.cmk-vacation-contact {
    font-family: inherit;
    max-width: 420px;
    margin: 0 auto;
    padding: 6px 0;
    box-sizing: border-box;
    line-height: 1.25;
}

.cmk-vacation-contact-header {
    text-align: center;
    margin-bottom: 6px;
}

.cmk-vacation-contact-title {
    font-size: 1.6em;
    font-weight: 800;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    color: #111;
    letter-spacing: 0.02em;
}

.cmk-vacation-contact-subtitle {
    font-style: italic;
    font-size: 0.9em;
    color: #333;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.15;
}

.cmk-vacation-contact-table {
    display: flex;
    flex-direction: column;
}

.cmk-vacation-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid #e4e4e4;
    min-height: 20px;
    line-height: 1.2;
}

/* First row gets a top border too, so the table reads like the screenshot */
.cmk-vacation-contact-row:first-child {
    border-top: 1px solid #e4e4e4;
}

.cmk-vacation-contact-row-empty {
    /* keep the row height so layout is consistent when fewer than 3 items */
    visibility: hidden;
}

.cmk-vacation-contact-label {
    font-weight: 700;
    color: #111;
    text-align: left;
}

.cmk-vacation-contact-date {
    text-align: right;
    color: #222;
}

.cmk-vacation-contact-action {
    text-align: center;
    margin-top: 10px;
}

.cmk-vacation-btn {
    display: inline-block;
    background: #d43f3f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.95em;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background 0.15s ease;
}

.cmk-vacation-btn:hover,
.cmk-vacation-btn:focus {
    background: #b63131;
    outline: none;
}

.cmk-vacation-btn-link {
    background: none;
    border: none;
    color: #0a66c2;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
    font-weight: 700;
}

.cmk-vacation-btn-link:hover,
.cmk-vacation-btn-link:focus {
    color: #064b8f;
    outline: none;
}

/* ---------- SPOT 2: Order Received Page ---------- */
.cmk-vacation-order-received {
    margin-bottom: 22px;
}

.cmk-vacation-order-received-msg {
    display: block;
    border: solid orange 3px;
    padding: 5px;
    margin-bottom: 8px;
    font-weight: 800;
}

.cmk-vacation-order-received-more {
    margin: 0 0 14px 0;
    font-size: 0.95em;
}

/* ---------- SPOT 3: Checkout ---------- */
.cmk-vacation-checkout-msg,
.cmk-vacation-checkout-none {
    /* Intentionally minimal - plain text output. */
    display: inline;
}

/* ---------- Modal ----------
 * Note: the JS moves .cmk-vacation-modal to body on open so that it
 * always sits above every other element on the page, regardless of
 * theme stacking contexts / transforms.
 */
.cmk-vacation-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000; /* effectively max int - wins over theme headers/footers */
    align-items: center;
    justify-content: center;
}

.cmk-vacation-modal-backdrop,
.cmk-vacation-modal-dialog {
    z-index: 1; /* stacking inside modal */
}
.cmk-vacation-modal-dialog {
    z-index: 2;
}

.cmk-vacation-modal.is-open {
    display: flex;
}

.cmk-vacation-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cmk-vacation-modal-dialog {
    position: relative;
    background: #fff;
    max-width: 480px;
    width: calc(100% - 40px);
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 6px;
    padding: 22px 24px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.cmk-vacation-modal-header {
    text-align: center;
    margin-bottom: 14px;
    padding-right: 28px;
}

.cmk-vacation-modal-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #444;
}

.cmk-vacation-modal-close:hover,
.cmk-vacation-modal-close:focus {
    color: #000;
    outline: none;
}

.cmk-vacation-contact-table-full .cmk-vacation-contact-row {
    padding: 12px 8px;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .cmk-vacation-contact-title {
        font-size: 1.35em;
    }
    .cmk-vacation-btn {
        padding: 9px 14px;
        font-size: 0.85em;
    }
}