/* Tabibane24 — patient appointment lookup */
.tb24-appointment-lookup {
    --tb24-lookup-ink: #19394d;
    --tb24-lookup-muted: #718493;
    --tb24-lookup-line: #dce8ed;
    --tb24-lookup-teal: #087e83;
    width: 100%;
    max-width: 900px;
    margin: 24px auto;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid #dce9e9;
    border-radius: 22px;
    background: linear-gradient(145deg, #f7fbfb 0%, #ffffff 58%, #f8fbfd 100%);
    box-shadow: 0 16px 42px rgba(27, 67, 83, .09);
    direction: rtl;
    text-align: right;
    color: var(--tb24-lookup-ink);
    box-sizing: border-box;
}
.tb24-appointment-lookup * { box-sizing: border-box; }
.tb24-appointment-lookup__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding: 0 0 18px;
    border-bottom: 1px solid #e7eef1;
}
.tb24-appointment-lookup__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(145deg, #e2f4f1, #eaf3f8);
    color: var(--tb24-lookup-teal);
    font-size: 25px;
}
.tb24-appointment-lookup__heading h2 {
    margin: 0 0 4px;
    color: var(--tb24-lookup-ink);
    font-size: clamp(19px, 2.5vw, 24px);
    font-weight: 900;
    line-height: 1.6;
}
.tb24-appointment-lookup__heading p {
    margin: 0;
    color: var(--tb24-lookup-muted);
    font-size: 13px;
    line-height: 1.9;
}
.tb24-appointment-lookup__form { display: grid; gap: 16px; margin: 0; }
.tb24-appointment-lookup__honey {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.tb24-appointment-lookup__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}
.tb24-appointment-lookup__field { display: block; min-width: 0; margin: 0; }
.tb24-appointment-lookup__field > span,
.tb24-appointment-lookup__birthday legend {
    display: block;
    margin: 0 0 8px;
    color: #355267;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.8;
}
.tb24-appointment-lookup__field > span strong { color: #bd8b49; font-weight: 900; }
.tb24-appointment-lookup__field input,
.tb24-appointment-lookup__birthday select,
.tb24-appointment-lookup__birthday input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 51px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #d6e3e9;
    border-radius: 12px;
    background: #fff;
    color: var(--tb24-lookup-ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    box-shadow: 0 2px 7px rgba(30, 65, 83, .025);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tb24-appointment-lookup__field input::placeholder { color: #a1b0ba; opacity: 1; }
.tb24-appointment-lookup__field input:hover,
.tb24-appointment-lookup__birthday select:hover { border-color: #b9d0d6; }
.tb24-appointment-lookup__field input:focus,
.tb24-appointment-lookup__birthday select:focus,
.tb24-appointment-lookup__birthday input:focus {
    border-color: #168b8d;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 139, 141, .11);
}
.tb24-appointment-lookup__birthday {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    min-width: 0;
    margin: 2px 0 0;
    padding: 13px;
    border: 1px solid #e2ebef;
    border-radius: 14px;
    background: rgba(245, 249, 251, .78);
}
.tb24-appointment-lookup__birthday legend { grid-column: 1 / -1; padding: 0; }
.tb24-appointment-lookup__birthday label { min-width: 0; }
.tb24-appointment-lookup__privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e1edeb;
    border-radius: 11px;
    background: #f3f9f7;
    color: #627c7b;
    font-size: 11px;
    line-height: 1.9;
}
.tb24-appointment-lookup__privacy .dashicons {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    color: #278a83;
    font-size: 16px;
}
.tb24-appointment-lookup button.tb24-appointment-lookup__submit,
.tb24-appointment-lookup button.tb24-appointment-lookup__submit[type="submit"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    height: auto !important;
    margin: 2px 0 0 !important;
    padding: 12px 20px !important;
    border: 1px solid #087e83 !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, #0b9290 0%, #087e83 58%, #076d78 100%) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: 0 8px 19px rgba(8, 126, 131, .17) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}
.tb24-appointment-lookup button.tb24-appointment-lookup__submit:hover,
.tb24-appointment-lookup button.tb24-appointment-lookup__submit:focus-visible {
    border-color: #075d67 !important;
    background: linear-gradient(135deg, #087e83 0%, #075d67 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(8, 126, 131, .23) !important;
    transform: translateY(-1px);
}
.tb24-appointment-lookup button.tb24-appointment-lookup__submit:disabled { opacity: .68 !important; cursor: wait !important; transform: none; }
.tb24-appointment-lookup button.tb24-appointment-lookup__submit .dashicons { color: #fff !important; font-size: 18px !important; line-height: 1 !important; }
.tb24-appointment-lookup__message {
    margin: 15px 0 0;
    padding: 12px 15px;
    border: 1px solid #eadfc8;
    border-right: 4px solid #c69b5d;
    border-radius: 12px;
    background: #fffaf1;
    color: #725a35;
    font-size: 13px;
    line-height: 1.9;
}
.tb24-appointment-lookup__message[hidden] { display: none !important; }
.tb24-appointment-lookup__results { margin: 0; }
.tb24-appointment-results {
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid #e4edf0;
}
.tb24-appointment-results__header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 15px;
    color: #176f5a;
}
.tb24-appointment-results__header > .dashicons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 37px;
    width: 37px;
    height: 37px;
    border-radius: 12px;
    background: #e9f6f0;
    font-size: 21px;
}
.tb24-appointment-results__header strong,
.tb24-appointment-results__header small { display: block; }
.tb24-appointment-results__header strong { color: #225542; font-size: 15px; font-weight: 900; }
.tb24-appointment-results__header small { margin-top: 3px; color: #71867e; font-size: 11px; }
.tb24-appointment-results__patient {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin: 0 0 13px;
    padding: 11px 14px;
    border: 1px solid #e4edf1;
    border-radius: 11px;
    background: #f5f9fb;
    font-size: 12px;
}
.tb24-appointment-results__patient span { color: #748795; }
.tb24-appointment-result {
    margin: 11px 0;
    padding: 16px;
    border: 1px solid #dfe9ed;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 13px rgba(29, 65, 82, .035);
    break-inside: avoid;
}
.tb24-appointment-result__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}
.tb24-appointment-result__top > strong { color: #1e4357; font-size: 14px; font-weight: 900; }
.tb24-appointment-result__status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 30px;
    background: #eaf7f0;
    color: #16744e;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}
.tb24-appointment-result__status--pending { background: #fff5e8; color: #94601e; }
.tb24-appointment-result__status--approved { background: #eaf7f0; color: #16744e; }
.tb24-appointment-result__status--done { background: #edf2fb; color: #315a91; }
.tb24-appointment-result__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 9px;
}
.tb24-appointment-result__details > div {
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 59px;
    padding: 9px 11px;
    border: 1px solid #edf2f4;
    border-radius: 10px;
    background: #f8fafb;
}
.tb24-appointment-result__details span { color: #788b97; font-size: 10px; }
.tb24-appointment-result__details strong { color: #29485b; font-size: 12px; font-weight: 850; overflow-wrap: anywhere; }
.tb24-appointment-result__details .tb24-appointment-result__payment { background: #f4f8fa; }
.tb24-appointment-result__payment.is-paid { border-color: #d9eee3; background: #f0f8f3; }
.tb24-appointment-result__payment.is-paid strong { color: #176b4c; }
.tb24-appointment-result__payment.is-pending { border-color: #eee4d2; background: #fffaf2; }
.tb24-appointment-result__payment.is-pending strong { color: #8d682e; }
.tb24-appointment-result__payment.is-refunded,
.tb24-appointment-result__payment.is-unpaid { border-color: #e8e5e0; background: #f7f6f4; }
.tb24-appointment-result__payment.is-unknown strong { color: #6e7f89; }
.tb24-appointment-result__service-action { display: flex; justify-content: flex-start; margin-top: 13px; }
.tb24-appointment-result__service-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 41px;
    padding: 8px 14px;
    border: 1px solid #cfe5e2;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0faf7, #edf7f8);
    color: #087e83;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.tb24-appointment-result__service-action a:hover,
.tb24-appointment-result__service-action a:focus-visible {
    border-color: #96c9c3;
    background: #e6f5f1;
    color: #066a70;
    transform: translateY(-1px);
}
.tb24-appointment-result__service-action .dashicons { font-size: 16px; line-height: 1; }
.tb24-appointment-results__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 18px;
}
.tb24-appointment-results__actions a { color: #087e83; font-size: 12px; font-weight: 750; text-decoration: none; }
.tb24-appointment-lookup__print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 9px 16px;
    border: 1px solid #d9e5e9;
    border-radius: 10px;
    background: #fff;
    color: #37566a;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}
.tb24-appointment-lookup__print:hover { border-color: #b6d3d7; background: #f6fbfb; }
.tb24-appointment-results__note {
    margin: 15px 0 0;
    padding: 11px 13px;
    border: 1px solid #e5ebee;
    border-radius: 10px;
    background: #f8fafb;
    color: #71818b;
    font-size: 10px;
    line-height: 2;
    text-align: justify;
}
.tb24-appointment-lookup--embedded { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.tb24-appointment-lookup--embedded .tb24-appointment-lookup__heading { display: none; }
.tb24-result-template__content--lookup { padding: 0; border: 0; background: transparent; }
.tb24-print-mount { display: none; }

@media (max-width: 640px) {
    .tb24-appointment-lookup { margin: 14px auto; padding: 16px 13px; border-radius: 16px; }
    .tb24-appointment-lookup__heading { align-items: flex-start; gap: 10px; margin-bottom: 17px; padding-bottom: 14px; }
    .tb24-appointment-lookup__icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 13px; font-size: 21px; }
    .tb24-appointment-lookup__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .tb24-appointment-lookup__birthday { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 10px; }
    .tb24-appointment-lookup__birthday select { padding-right: 7px; padding-left: 7px; font-size: 12px; }
    .tb24-appointment-result { padding: 13px; }
    .tb24-appointment-result__details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tb24-appointment-result__details > div { min-height: 55px; }
    .tb24-appointment-results__actions { align-items: stretch; flex-direction: column; }
    .tb24-appointment-lookup__print { width: 100%; }
}

/* Dedicated page containment. These rules intentionally run after the shared form,
   page-template and global-style layers (see the explicit enqueue dependencies). */
body.tb24doc-appointment-lookup-page,
body.tb24doc-appointment-lookup-page #page,
body.tb24doc-appointment-lookup-page #content,
body.tb24doc-appointment-lookup-page #primary,
body.tb24doc-appointment-lookup-page #main,
body.tb24doc-appointment-lookup-page .site,
body.tb24doc-appointment-lookup-page .site-content,
body.tb24doc-appointment-lookup-page .content-area,
body.tb24doc-appointment-lookup-page .site-main,
body.tb24doc-appointment-lookup-page main.tb24-site-page-appointment_lookup,
body.tb24doc-appointment-lookup-page .tb24-site-container,
body.tb24doc-appointment-lookup-page .tb24-result-template,
body.tb24doc-appointment-lookup-page .tb24-result-template__header,
body.tb24doc-appointment-lookup-page .tb24-result-template__content,
body.tb24doc-appointment-lookup-page .tb24-result-template__contacts,
body.tb24doc-appointment-lookup-page .tb24-result-template__home {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

body.tb24doc-appointment-lookup-page .tb24-result-template {
    width: 100% !important;
    max-width: 900px !important;
    margin-inline: auto !important;
}
body.tb24doc-appointment-lookup-page .tb24-result-template__content--lookup {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__form,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__grid,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__field,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__results,
body.tb24doc-appointment-lookup-page .tb24-appointment-results,
body.tb24doc-appointment-lookup-page .tb24-appointment-result,
body.tb24doc-appointment-lookup-page .tb24-result-template__contacts {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}
body.tb24doc-appointment-lookup-page .tb24-result-template__contacts {
    margin: 20px 0 0 !important;
    padding: 0 !important;
}
body.tb24doc-appointment-lookup-page .tb24-result-template__contacts > .tb24-contact-channels {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}
body.tb24doc-appointment-lookup-page .tb24-result-template__home {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Reuse the same min-width / box-sizing contract used by the plugin's working native forms. */
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup * {
    box-sizing: border-box !important;
    min-width: 0 !important;
}
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup img,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup svg,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup iframe,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup video {
    max-width: 100% !important;
    height: auto;
}

@media (max-width: 767px) {
    html.tb24doc-appointment-lookup-html,
    html.tb24doc-appointment-lookup-html body,
    body.tb24doc-appointment-lookup-page {
        display: block !important;
        position: relative !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        overflow-x: clip !important;
        -webkit-text-size-adjust: 100%;
    }
    body.tb24doc-appointment-lookup-page #page,
    body.tb24doc-appointment-lookup-page #content,
    body.tb24doc-appointment-lookup-page #primary,
    body.tb24doc-appointment-lookup-page #main,
    body.tb24doc-appointment-lookup-page .site,
    body.tb24doc-appointment-lookup-page .site-content,
    body.tb24doc-appointment-lookup-page .content-area,
    body.tb24doc-appointment-lookup-page .site-main,
    body.tb24doc-appointment-lookup-page main.tb24-site-page-appointment_lookup,
    body.tb24doc-appointment-lookup-page .elementor,
    body.tb24doc-appointment-lookup-page .elementor-section,
    body.tb24doc-appointment-lookup-page .elementor-container,
    body.tb24doc-appointment-lookup-page .elementor-column,
    body.tb24doc-appointment-lookup-page .elementor-widget-wrap,
    body.tb24doc-appointment-lookup-page .e-con,
    body.tb24doc-appointment-lookup-page .e-con-inner {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-site-page-appointment_lookup {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 15px 0 34px !important;
        overflow-x: clip !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-site-page-appointment_lookup > .tb24-site-container {
        display: block !important;
        box-sizing: border-box !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-result-template {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 18px 12px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-result-template__header,
    body.tb24doc-appointment-lookup-page .tb24-result-template__content,
    body.tb24doc-appointment-lookup-page .tb24-result-template__contacts,
    body.tb24doc-appointment-lookup-page .tb24-result-template__home {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-result-template__content--lookup {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 16px 13px !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__form,
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__grid,
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__field,
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday,
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__results,
    body.tb24doc-appointment-lookup-page .tb24-appointment-results,
    body.tb24doc-appointment-lookup-page .tb24-appointment-result {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
        padding: 10px !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__field input,
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday select,
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday input {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 48px !important;
        font-size: 16px !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-appointment-result__details {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-appointment-results__actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-appointment-results__actions > *,
    body.tb24doc-appointment-lookup-page .tb24-result-template__home,
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__print {
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}

/* The communication-card component is shared across contact, appointment and payment pages.
   Its outer section always follows the width of its parent card; inner content cannot enlarge it. */
.tb24-result-template__contacts,
.tb24-contact-channels,
.tb24-contact-details,
.tb24doc-payment-contact-channels {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}
.tb24-result-template__contacts { margin-inline: 0 !important; }
.tb24-contact-channel-grid,
.tb24-contact-details-grid {
    display: grid !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.tb24-contact-channel-card {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}
.tb24-contact-channel-trigger,
.tb24-contact-channel-output,
.tb24-contact-detail-item {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
}
.tb24-contact-channel-trigger { width: 100% !important; }
.tb24-contact-channel-output { width: 100% !important; }

@page {
    size: A4 portrait;
    margin: 0;
}
@media print {
    html, body {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }
    /* Hide the live page from layout (not merely from sight); this prevents a trailing blank PDF page. */
    body.tb24doc-printing > *:not(.tb24-print-mount) {
        display: none !important;
    }
    body.tb24doc-printing .tb24-print-mount {
        display: block !important;
        position: static !important;
        inset: auto !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 10mm 12mm !important;
        border: 0 !important;
        background: #fff !important;
        color: #19394d !important;
        direction: rtl !important;
        font-family: Tahoma, Arial, sans-serif !important;
        font-size: 10pt !important;
        line-height: 1.75 !important;
        box-shadow: none !important;
        visibility: visible !important;
        break-after: auto !important;
        page-break-after: auto !important;
    }
    body.tb24doc-printing .tb24-print-mount * {
        box-sizing: border-box !important;
        visibility: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body.tb24doc-printing .tb24-print-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 30mm !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        column-gap: 8mm !important;
        width: 100% !important;
        min-height: 30mm !important;
        margin: 0 0 7mm !important;
        padding: 0 0 5mm !important;
        border-bottom: 1.2pt solid #0b8588 !important;
        text-align: right !important;
    }
    body.tb24doc-printing .tb24-print-qr {
        display: block !important;
        grid-column: 2 !important;
        grid-row: 1 / 3 !important;
        width: 28mm !important;
        height: 28mm !important;
        justify-self: center !important;
        object-fit: contain !important;
        padding: 1mm !important;
        border: .6pt solid #dce7eb !important;
        border-radius: 2mm !important;
        background: #fff !important;
    }
    body.tb24doc-printing .tb24-print-brand {
        display: block !important;
        grid-column: 1 !important;
        align-self: end !important;
        margin: 0 !important;
        color: #087e83 !important;
        font-size: 15pt !important;
        font-weight: 800 !important;
        line-height: 1.5 !important;
        text-align: right !important;
    }
    body.tb24doc-printing .tb24-print-head h1 { display: none !important; }
    body.tb24doc-printing .tb24-appointment-results {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }
    body.tb24doc-printing .tb24-appointment-results__header {
        display: flex !important;
        align-items: center !important;
        gap: 3mm !important;
        margin: 0 0 4mm !important;
        color: #176f5a !important;
    }
    body.tb24doc-printing .tb24-appointment-results__header > .dashicons { display: none !important; }
    body.tb24doc-printing .tb24-appointment-results__header strong {
        color: #225542 !important;
        font-size: 11pt !important;
        font-weight: 800 !important;
    }
    body.tb24doc-printing .tb24-appointment-results__header small {
        color: #71867e !important;
        font-size: 8pt !important;
    }
    body.tb24doc-printing .tb24-appointment-results__patient {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 2mm !important;
        margin: 0 0 4mm !important;
        padding: 3mm 4mm !important;
        border: .6pt solid #e1e9ed !important;
        border-radius: 2mm !important;
        background: #f5f9fb !important;
        color: #19394d !important;
        font-size: 9pt !important;
    }
    body.tb24doc-printing .tb24-appointment-result {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 3mm 0 !important;
        padding: 4mm !important;
        border: .7pt solid #d6e3e8 !important;
        border-radius: 2.5mm !important;
        background: #fff !important;
        box-shadow: none !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    body.tb24doc-printing .tb24-appointment-result__top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 3mm !important;
        margin: 0 0 3mm !important;
    }
    body.tb24doc-printing .tb24-appointment-result__top > strong {
        color: #1e4357 !important;
        font-size: 10pt !important;
        font-weight: 800 !important;
    }
    body.tb24doc-printing .tb24-appointment-result__status {
        padding: 1mm 3mm !important;
        font-size: 8pt !important;
    }
    body.tb24doc-printing .tb24-appointment-result__details {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 2mm !important;
        width: 100% !important;
    }
    body.tb24doc-printing .tb24-appointment-result__details > div {
        display: grid !important;
        align-content: center !important;
        gap: 1mm !important;
        min-width: 0 !important;
        min-height: 15mm !important;
        padding: 2.5mm !important;
        border: .5pt solid #e5edf0 !important;
        border-radius: 1.5mm !important;
        background: #f8fafb !important;
    }
    body.tb24doc-printing .tb24-appointment-result__details span {
        color: #718493 !important;
        font-size: 8pt !important;
    }
    body.tb24doc-printing .tb24-appointment-result__details strong {
        color: #29485b !important;
        font-size: 9pt !important;
        font-weight: 700 !important;
        overflow-wrap: anywhere !important;
    }
    body.tb24doc-printing .tb24-appointment-result__service-action,
    body.tb24doc-printing .tb24-appointment-results__actions,
    body.tb24doc-printing .tb24-appointment-lookup__print {
        display: none !important;
    }
    body.tb24doc-printing .tb24-appointment-results__note {
        margin: 5mm 0 0 !important;
        padding: 3mm 0 0 !important;
        border: 0 !important;
        border-top: .6pt solid #e5ebee !important;
        border-radius: 0 !important;
        background: #fff !important;
        color: #60727d !important;
        font-size: 8pt !important;
        line-height: 1.8 !important;
        text-align: justify !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
    body.tb24doc-printing .tb24-appointment-result,
    body.tb24doc-printing .tb24-appointment-results__patient,
    body.tb24doc-printing .tb24-appointment-results__note {
        orphans: 2;
        widows: 2;
    }
}

.tb24-appointment-lookup-page-description {
    max-width: 760px;
    margin: 8px auto 0;
    color: #627985;
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
    overflow-wrap: anywhere;
}

/* v2.3.37 — restore lookup-page styling with a page-scoped, high-specificity layer.
   The dedicated template renders its form after wp_head; the route is now enqueued early,
   and this final layer keeps theme/Elementor button styles from turning the controls red. */
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    color: #19394d !important;
    direction: rtl !important;
    text-align: right !important;
}
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__field > span,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday legend {
    color: #355267 !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 850 !important;
}
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__field input,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday select,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday input {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 51px !important;
    padding: 11px 14px !important;
    border: 1px solid #d6e3e9 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #19394d !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    box-shadow: 0 2px 7px rgba(30,65,83,.025) !important;
    outline: none !important;
}
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__field input:focus,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday select:focus,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday input:focus {
    border-color: #168b8d !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(22,139,141,.11) !important;
}
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__button,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__submit,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__print,
body.tb24doc-appointment-lookup-page .tb24-result-template__home,
body.tb24doc-appointment-lookup-page .tb24-appointment-results__actions > a {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    height: auto !important;
    margin: 2px 0 0 !important;
    padding: 12px 20px !important;
    border: 1px solid #087e83 !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, #0b9290 0%, #087e83 58%, #076d78 100%) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: 0 8px 19px rgba(8,126,131,.17) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__button:hover,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__button:focus-visible,
body.tb24doc-appointment-lookup-page .tb24-result-template__home:hover,
body.tb24doc-appointment-lookup-page .tb24-result-template__home:focus-visible,
body.tb24doc-appointment-lookup-page .tb24-appointment-results__actions > a:hover,
body.tb24doc-appointment-lookup-page .tb24-appointment-results__actions > a:focus-visible {
    border-color: #075d67 !important;
    background: linear-gradient(135deg, #087e83 0%, #075d67 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(8,126,131,.23) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__button .dashicons,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__button .dashicons:before {
    color: #fff !important;
}
body.tb24doc-appointment-lookup-page .tb24-appointment-results__actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}
body.tb24doc-appointment-lookup-page .tb24-result-template--appointment-lookup > .tb24-result-template__home {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    margin: 18px 0 0 !important;
}
body.tb24doc-appointment-lookup-page .tb24-result-template__header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
}
body.tb24doc-appointment-lookup-page .tb24-result-template__mark {
    display: grid !important;
    place-items: center !important;
    align-self: center !important;
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 5px !important;
}
body.tb24doc-appointment-lookup-page .tb24-result-template__mark .dashicons {
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 auto !important;
    font-size: 34px !important;
    line-height: 1 !important;
}

@media (max-width: 767px) {
    body.tb24doc-appointment-lookup-page .tb24-result-template__header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-result-template__mark {
        align-self: center !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-site-eyebrow {
        display: inline-flex !important;
        align-self: center !important;
        justify-content: center !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        line-height: 1.8 !important;
        text-align: center !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-result-template__header h1 {
        width: 100% !important;
        margin: 2px 0 !important;
        font-size: clamp(23px, 6vw, 29px) !important;
        line-height: 1.5 !important;
        text-align: center !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-result-template__header p {
        width: 100% !important;
        font-size: 13px !important;
        line-height: 1.9 !important;
        text-align: center !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__field input,
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday select,
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday input {
        min-height: 50px !important;
        font-size: 16px !important;
    }
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__button,
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__submit,
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__print,
    body.tb24doc-appointment-lookup-page .tb24-result-template__home,
    body.tb24doc-appointment-lookup-page .tb24-appointment-results__actions > a {
        min-height: 52px !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}


/* v2.3.45 — keep the native Jalali date dropdowns interactive and unclipped.
   Scoped strictly to the dedicated appointment-lookup page. */
body.tb24doc-appointment-lookup-page .tb24-result-template,
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup {
    overflow: visible !important;
}
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday {
    position: relative !important;
    z-index: 5 !important;
    overflow: visible !important;
}
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday label {
    position: relative !important;
    z-index: 6 !important;
    display: block !important;
    min-width: 0 !important;
    overflow: visible !important;
}
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday select {
    position: relative !important;
    z-index: 7 !important;
    display: block !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
    -webkit-appearance: menulist !important;
    appearance: auto !important;
}
body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday select:focus {
    z-index: 20 !important;
}
@media (max-width: 767px) {
    body.tb24doc-appointment-lookup-page .tb24-result-template,
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup,
    body.tb24doc-appointment-lookup-page .tb24-appointment-lookup__birthday {
        overflow: visible !important;
    }
}
