/* Panorama Smart Agent — public chat page */

body.smart-agent-page {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    overflow: hidden;
    height: 100dvh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.smart-agent-page .footer,
body.smart-agent-page .reviews-fixed-btn,
body.smart-agent-page .reviews-modal,
body.smart-agent-page .fixed-floating-buttons,
body.smart-agent-page .welcome-coupon-popup,
body.smart-agent-page .top-promo-wrapper,
body.smart-agent-page .announcement-bar,
body.smart-agent-page .countdown-bar {
    display: none !important;
}

body.smart-agent-page .header {
    position: relative !important;
    top: 0 !important;
    flex-shrink: 0;
    z-index: 1001;
    width: 100%;
}

body.smart-agent-page .sa-shell,
body.smart-agent-page .sa-shell button,
body.smart-agent-page .sa-shell input,
body.smart-agent-page .sa-shell textarea,
body.smart-agent-page .sa-shell select {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

.sa-home-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003580;
    background: #eff6ff;
    text-decoration: none;
    flex-shrink: 0;
}

.sa-home-link:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.sa-load-older {
    align-self: center;
    margin: 4px auto 10px;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    font-size: 0.82rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.sa-load-older:disabled {
    opacity: 0.7;
    cursor: wait;
}

.sa-older-chunk {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sa-shell {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 45%, #fff 100%);
    box-sizing: border-box;
}

.sa-layout {
    flex: 1;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding: 8px 12px 0;
}

.sa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 53, 128, 0.06);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.sa-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.sa-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #003580, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sa-header-brand strong {
    display: block;
    font-size: 1.05rem;
    color: #0f172a;
}

.sa-header-brand span {
    font-size: 0.82rem;
    color: #64748b;
}

.sa-header-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #64748b;
}

.sa-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sa-new-chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #003580;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sa-new-chat-btn:hover:not(:disabled) {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.sa-new-chat-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.sa-new-chat-btn i {
    font-size: 0.9rem;
}

.sa-new-chat-label-short {
    display: none;
}

.sa-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.sa-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 6px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.sa-msg {
    display: flex;
    max-width: 88%;
}

.sa-msg-user {
    align-self: flex-end;
}

.sa-msg-bot,
.sa-msg-system {
    align-self: flex-start;
}

.sa-bubble {
    padding: 11px 15px;
    border-radius: 16px;
    line-height: 1.75;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.sa-bubble strong {
    font-weight: 800;
}

.sa-bubble a.sa-inline-link {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
    font-weight: 600;
}

.sa-bubble a.sa-inline-link:hover {
    color: #1d4ed8;
}

.sa-msg-user .sa-bubble a.sa-inline-link {
    color: #e0f2fe;
}

.sa-msg-user .sa-bubble a.sa-inline-link:hover {
    color: #fff;
}

.sa-msg-user .sa-bubble {
    background: linear-gradient(135deg, #003580, #1d4ed8);
    color: #fff;
    border-bottom-left-radius: 4px;
}

.sa-msg-bot .sa-bubble {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.sa-msg-system .sa-bubble {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-size: 0.88rem;
}

.sa-typing .sa-bubble {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
}

.sa-typing .sa-bubble span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    animation: sa-bounce 1.2s infinite ease-in-out;
}

.sa-typing .sa-bubble span:nth-child(2) { animation-delay: 0.15s; }
.sa-typing .sa-bubble span:nth-child(3) { animation-delay: 0.3s; }

@keyframes sa-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
    40% { transform: translateY(-5px); opacity: 1; }
}

.sa-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}

.sa-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.3;
    text-align: center;
    transition: background 0.15s, transform 0.1s;
}

.sa-quick-btn:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.sa-calendar {
    max-width: min(100%, 360px);
    width: 100%;
    align-self: stretch;
}

.sa-cal-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    padding: 12px;
    direction: rtl;
}

.sa-cal-head {
    margin-bottom: 10px;
}

.sa-cal-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}

.sa-cal-hint {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
}

.sa-cal-hint.is-error {
    color: #b91c1c;
}

.sa-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.sa-cal-month {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e293b;
}

.sa-cal-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.sa-cal-nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.sa-cal-week,
.sa-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.sa-cal-week {
    margin-bottom: 4px;
}

.sa-cal-week span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    padding: 4px 0;
}

.sa-cal-day {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.sa-cal-day.is-empty {
    visibility: hidden;
    pointer-events: none;
}

.sa-cal-day.is-past {
    color: #cbd5e1;
    cursor: default;
}

.sa-cal-day.is-busy {
    background: #fee2e2;
    color: #b91c1c;
    text-decoration: line-through;
    cursor: default;
}

.sa-cal-day.is-in {
    background: #dbeafe;
    color: #1e40af;
    border-radius: 0;
}

.sa-cal-day.is-start,
.sa-cal-day.is-end {
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
}

.sa-cal-day:not(:disabled):hover {
    background: #eff6ff;
}

.sa-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #64748b;
}

.sa-cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sa-cal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.sa-cal-dot-ok { background: #22c55e; }
.sa-cal-dot-sel { background: #2563eb; }
.sa-cal-dot-busy { background: #ef4444; }

.sa-cal-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.sa-cal-reset,
.sa-cal-confirm {
    flex: 1;
    min-height: 42px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.sa-cal-reset {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
}

.sa-cal-confirm {
    border: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

.sa-cal-confirm:disabled {
    opacity: 0.45;
    cursor: default;
}

.sa-calendar-stale {
    opacity: 0.55;
    pointer-events: none;
}

.sa-coupon-prompt {
    max-width: min(100%, 420px);
    align-self: stretch;
}

.sa-coupon-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sa-coupon-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.sa-coupon-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.sa-coupon-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    background: #fff;
}

.sa-coupon-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.sa-coupon-apply {
    border: 0;
    border-radius: 10px;
    padding: 0 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.sa-coupon-skip {
    display: block;
    width: 100%;
    border: 2px solid #0f766e;
    border-radius: 12px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    padding: 12px 14px;
    text-align: center;
    line-height: 1.3;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sa-coupon-skip:hover {
    background: #0f766e;
    color: #fff;
    border-color: #0f766e;
}

.sa-coupon-skip:disabled {
    opacity: 0.55;
    cursor: default;
}

.sa-coupon-stale {
    opacity: 0.55;
    pointer-events: none;
}

.sa-msg-cards {
    max-width: 100%;
    width: 100%;
    align-self: stretch;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

.sa-cards-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    padding: 0 4px;
}

.sa-cards-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.sa-cards-scroll::-webkit-scrollbar {
    height: 6px;
}

.sa-cards-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.sa-card {
    flex: 0 0 268px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
}

.sa-card-unavailable {
    opacity: 0.65;
}

.sa-card-media {
    position: relative;
    height: 168px;
    background: #f1f5f9;
    cursor: pointer;
}

.sa-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sa-card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #94a3b8;
}

.sa-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 53, 128, 0.92);
    color: #fff;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 999px;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-card-badge + .sa-card-badge {
    top: 36px;
}

.sa-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.sa-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sa-card-meta {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.sa-card-summary {
    font-size: 13px;
    line-height: 1.65;
    color: #475569;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sa-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 4px;
}

.sa-card-price strong {
    font-size: 17px;
    font-weight: 700;
    color: #003580;
}

.sa-card-price span {
    font-size: 0.78rem;
    color: #64748b;
}

.sa-card-dates {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
}

.sa-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.sa-btn-gallery {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
    font-weight: 700;
}

.sa-btn-gallery:hover,
.sa-btn-gallery:focus-visible {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.34);
}

.sa-btn-gallery i {
    margin-left: 6px;
}

.sa-btn-block {
    width: 100%;
}

.sa-summary-card {
    max-width: 100%;
    width: 100%;
}

.sa-summary-box {
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px rgba(0, 53, 128, 0.08);
}

.sa-summary-title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #003580;
}

.sa-summary-body {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.5;
    white-space: pre-line;
}

.sa-summary-price {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
}

.sa-summary-price strong {
    font-size: 1.2rem;
    color: #003580;
}

.sa-summary-price span {
    font-size: 0.78rem;
    color: #64748b;
}

/* legacy grid fallback */
.sa-cards {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 0 12px;
    width: 100%;
    max-width: 100%;
}

.sa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s;
}

.sa-btn-sm {
    padding: 7px 12px;
    font-size: 0.82rem;
}

.sa-btn-primary {
    background: #003580;
    color: #fff;
}

.sa-btn-primary:hover { opacity: 0.92; }

.sa-btn-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.sa-composer {
    padding: 8px 0 max(12px, env(safe-area-inset-bottom, 0px));
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    z-index: 8;
    background: linear-gradient(to top, #f8fafc 82%, transparent);
}

.sa-composer form,
.sa-composer .sa-form {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 -4px 24px rgba(0, 53, 128, 0.06);
}

.sa-attach {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sa-attach i,
.sa-send i {
    font-size: 1.05rem;
    pointer-events: none;
}

.sa-attach:hover {
    background: #d1fae5;
}

.sa-attach:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sa-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 700;
    background: transparent;
    color: #0f172a;
}

.sa-send {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #003580, #2563eb);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sa-msg-attachment .sa-bubble {
    padding: 8px;
    max-width: min(280px, 90vw);
}

.sa-attachment-label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}

.sa-attachment-img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 10px;
    background: #f1f5f9;
}

.sa-disabled {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.sa-disabled-box {
    text-align: center;
    max-width: 420px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.sa-disabled-box i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .sa-shell {
        min-height: 0;
    }
    .sa-layout {
        padding: 6px 8px 0;
        max-width: 100%;
    }
    .sa-header {
        border-radius: 12px;
        padding: 8px 10px;
        gap: 8px;
    }
    .sa-header-brand {
        gap: 8px;
    }
    .sa-header-brand strong {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sa-header-brand span {
        display: none;
    }
    .sa-home-link {
        width: 34px;
        height: 34px;
    }
    .sa-header-actions {
        gap: 6px;
    }
    .sa-header-meta {
        display: none;
    }
    .sa-new-chat-btn {
        min-width: 72px;
        min-height: 44px;
        padding: 0 14px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(135deg, #003580, #2563eb);
        color: #fff;
        font-size: 0.88rem;
        box-shadow: 0 3px 12px rgba(0, 53, 128, 0.28);
        flex-shrink: 0;
    }
    .sa-new-chat-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #002a66, #1d4ed8);
        color: #fff;
    }
    .sa-new-chat-btn .sa-new-chat-label {
        display: none;
    }
    .sa-new-chat-btn .sa-new-chat-label-short {
        display: inline;
    }
    .sa-new-chat-btn i {
        font-size: 1rem;
    }
    .sa-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
    }
    .sa-msg { max-width: 92%; }
    .sa-msg-cards,
    .sa-calendar { max-width: 100%; }
    .sa-cal-day {
        min-height: 44px;
        font-size: 0.9rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.18);
    }
    .sa-cal-nav-btn,
    .sa-cal-reset,
    .sa-cal-confirm {
        min-height: 44px;
        touch-action: manipulation;
    }
    .sa-card { flex: 0 0 min(78vw, 280px); max-width: 280px; }
    .sa-pay-card {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .sa-pay-side {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 4px;
    }
    .sa-pay-side .sa-btn {
        min-height: 44px;
        min-width: 110px;
    }
    .sa-bubble {
        font-size: 15px;
        line-height: 1.75;
        padding: 10px 14px;
    }
    .sa-messages {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
    .sa-composer {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 0;
        z-index: 1200;
        width: auto;
        max-width: 896px;
        margin: 0 auto;
        padding: 8px 0 max(12px, env(safe-area-inset-bottom, 0px));
        background: linear-gradient(to top, #f8fafc 88%, transparent);
    }
    .sa-quick-replies {
        display: flex;
        flex-wrap: wrap;
        overflow: visible;
        width: 100%;
        max-width: 100%;
        gap: 8px;
        padding: 6px 0 10px;
    }
    .sa-quick-btn {
        flex: 1 1 calc(50% - 8px);
        min-width: min(100%, 140px);
        min-height: 46px;
        padding: 11px 12px;
        font-size: 0.92rem;
        font-weight: 700;
        border-width: 1.5px;
        border-radius: 12px;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.18);
        touch-action: manipulation;
    }
    .sa-card-actions {
        gap: 8px;
    }
    .sa-card-actions .sa-btn,
    .sa-btn-sm {
        min-height: 44px;
        padding: 11px 12px;
        font-size: 0.9rem;
        width: 100%;
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.18);
        touch-action: manipulation;
    }
    .sa-link-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 14px;
        min-height: 46px;
    }
    .sa-composer {
        padding: 10px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    }
    .sa-composer .sa-form {
        padding: 8px 8px 8px 10px;
        border-radius: 18px;
        gap: 8px;
        box-shadow: 0 -2px 18px rgba(0, 53, 128, 0.08);
    }
    .sa-attach,
    .sa-send {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 14px;
    }
    .sa-attach i,
    .sa-send i {
        font-size: 1.2rem;
    }
    .sa-input {
        font-size: 16px; /* يمنع زوم iOS */
        min-width: 0;
        min-height: 44px;
        padding: 0 4px;
    }
}

[data-theme="dark"] .sa-shell {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .sa-header,
[data-theme="dark"] .sa-card,
[data-theme="dark"] .sa-msg-bot .sa-bubble,
[data-theme="dark"] .sa-cal-box,
[data-theme="dark"] .sa-coupon-box,
[data-theme="dark"] .sa-composer form {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .sa-coupon-label {
    color: #e2e8f0;
}

[data-theme="dark"] .sa-coupon-input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .sa-coupon-skip {
    background: rgba(15, 118, 110, 0.2);
    border-color: #2dd4bf;
    color: #5eead4;
}

[data-theme="dark"] .sa-coupon-skip:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

[data-theme="dark"] .sa-cal-title,
[data-theme="dark"] .sa-cal-month,
[data-theme="dark"] .sa-cal-day {
    color: #f1f5f9;
}

[data-theme="dark"] .sa-cal-day.is-past {
    color: #475569;
}

[data-theme="dark"] .sa-cal-reset {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .sa-header-brand strong,
[data-theme="dark"] .sa-card-body h3,
[data-theme="dark"] .sa-input {
    color: #f1f5f9;
}

.sa-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 4px 12px;
}

.sa-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #2563eb;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sa-link-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
    color: #fff;
}

.sa-link-payment {
    border-color: #059669;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.22);
}

.sa-link-payment:hover {
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.32);
    color: #fff;
}

.sa-link-checkout {
    border-color: #003580;
    background: linear-gradient(135deg, #003580 0%, #0066cc 100%);
    box-shadow: 0 4px 14px rgba(0, 53, 128, 0.28);
    font-weight: 700;
}

.sa-link-checkout:hover {
    box-shadow: 0 6px 18px rgba(0, 53, 128, 0.38);
    color: #fff;
}

.sa-link-whatsapp {
    border-color: #16a34a;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.22);
}

.sa-link-whatsapp:hover {
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.32);
    color: #fff;
}

.sa-pay-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.sa-pay-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
    box-shadow: 0 4px 14px rgba(0, 53, 128, 0.06);
}

.sa-pay-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #003580;
    font-size: 1.35rem;
}

.sa-pay-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.sa-pay-body {
    flex: 1 1 auto;
    min-width: 0;
}

.sa-pay-title {
    margin: 0 0 2px;
    font-size: 0.95rem;
    color: #0f172a;
}

.sa-pay-desc {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

.sa-pay-fee {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.74rem;
    color: #b45309;
    font-weight: 600;
}

.sa-pay-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.74rem;
    color: #2563eb;
}

.sa-pay-side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.sa-pay-amount {
    font-size: 0.88rem;
    font-weight: 700;
    color: #003580;
    white-space: nowrap;
}

[data-theme="dark"] .sa-pay-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .sa-pay-title,
[data-theme="dark"] .sa-pay-amount {
    color: #f1f5f9;
}

[data-theme="dark"] .sa-pay-icon {
    background: #0f172a;
    border-color: #334155;
    color: #93c5fd;
}

/* ——— Apartment gallery modal (card click) ——— */
.sa-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, transparent 45%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sa-card-media:hover::after,
.sa-card-media:focus-within::after {
    opacity: 1;
}

.sa-card-gallery-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(220, 38, 38, 0.94);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
}

.sa-card-gallery-hint i {
    color: #fff;
}

body.sa-gallery-open {
    overflow: hidden;
}

.sa-gallery-modal[hidden] {
    display: none !important;
}

.sa-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.sa-gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}

.sa-gallery-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(92vh, 900px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.sa-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.sa-gallery-title {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.4;
}

.sa-gallery-close {
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0 4px;
}

.sa-gallery-close:hover {
    color: #0f172a;
}

.sa-gallery-body {
    padding: 16px;
    overflow: auto;
}

.sa-gallery-loading,
.sa-gallery-empty {
    text-align: center;
    padding: 48px 16px;
    color: #64748b;
}

.sa-gallery-stage {
    position: relative;
}

.sa-gallery-viewport {
    position: relative;
    width: 100%;
    height: min(52vh, 480px);
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}

.sa-gallery-viewport img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f172a;
    display: block;
}

.sa-gallery-video {
    width: 100%;
    height: 100%;
    background: #000;
}

.sa-gallery-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.sa-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #003580;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-gallery-prev {
    right: 10px;
}

.sa-gallery-next {
    left: 10px;
}

.sa-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.sa-gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    position: relative;
    background: #e2e8f0;
}

.sa-gallery-thumb.active {
    border-color: #003580;
}

.sa-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sa-gallery-thumb-video i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.sa-gallery-counter {
    text-align: center;
    margin-top: 8px;
    font-size: 0.88rem;
    color: #64748b;
}

.sa-gallery-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.sa-gallery-details-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sa-gallery-details-title {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sa-gallery-details-title i {
    color: #dc2626;
}

.sa-gallery-details-meta {
    margin: 0;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
}

.sa-gallery-details-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sa-gallery-details-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
}

.sa-gallery-details-price {
    font-size: 1rem;
    color: #003580;
}

.sa-gallery-details-price strong {
    font-size: 1.2rem;
}

.sa-gallery-details-dates {
    margin: 0;
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 600;
}

.sa-gallery-details-desc {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.7;
}

.sa-gallery-details-amenities {
    margin: 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
}

[data-theme="dark"] .sa-gallery-details {
    border-top-color: #334155;
}

[data-theme="dark"] .sa-gallery-details-title,
[data-theme="dark"] .sa-gallery-details-desc {
    color: #e2e8f0;
}

[data-theme="dark"] .sa-gallery-details-chips span {
    background: #1e293b;
    color: #cbd5e1;
}

@media (max-width: 640px) {
    .sa-gallery-modal {
        padding: 0;
    }

    .sa-gallery-dialog {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .sa-gallery-viewport {
        height: min(45vh, 360px);
    }
}

/* ——— Offer cards (like offers.php) ——— */
.sa-msg-offers .sa-offers-scroll {
    gap: 14px;
}

.sa-offer-card {
    flex: 0 0 min(300px, 88vw);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #febb02;
    box-shadow: 0 8px 24px rgba(0, 53, 128, 0.1);
    display: flex;
    flex-direction: column;
}

.sa-offer-card--mandatory {
    border-color: #003580;
}

.sa-offer-media {
    position: relative;
    height: 168px;
    background: #e2e8f0;
}

.sa-offer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sa-offer-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: linear-gradient(135deg, #febb02 0%, #ff6b35 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(254, 187, 2, 0.35);
}

.sa-offer-badge--mandatory {
    background: linear-gradient(135deg, #003580 0%, #0066cc 100%);
    color: #fff;
}

.sa-offer-badge--hot {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
}

.sa-offer-badge--special {
    background: linear-gradient(135deg, #003580 0%, #0066cc 100%);
    color: #fff;
}

.sa-offer-valid {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #febb02;
}

.sa-offer-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sa-offer-title {
    margin: 0;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.35;
}

.sa-offer-desc {
    margin: 0;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sa-offer-scope,
.sa-offer-nights {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.sa-offer-nights i {
    color: #003580;
    margin-left: 4px;
}

.sa-offer-discount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.sa-offer-discount strong {
    font-size: 1.15rem;
    color: #003580;
}

.sa-offer-discount span {
    font-size: 0.78rem;
    color: #64748b;
}

.sa-offer-card--mandatory .sa-offer-discount strong {
    color: #0f766e;
}

.sa-offer-actions {
    margin-top: auto;
    padding-top: 4px;
}

/* ——— Welcome menu (بداية المحادثة) ——— */
.sa-msg.sa-welcome-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
    max-width: min(100%, 440px);
    min-width: 0;
    box-sizing: border-box;
}

.sa-welcome-menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.sa-welcome-menu-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 76px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    cursor: pointer;
    text-align: right;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
        linear-gradient(135deg, #002a66 0%, #003580 38%, #0b57b8 78%, #1a73e8 100%);
    box-shadow:
        0 10px 28px rgba(0, 42, 102, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.12) inset;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease,
        opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.sa-welcome-menu-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 55%);
    pointer-events: none;
}

.sa-welcome-menu-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 14px 34px rgba(0, 42, 102, 0.34),
        0 1px 0 rgba(255, 255, 255, 0.16) inset;
}

.sa-welcome-menu-btn:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.98);
}

.sa-welcome-menu-btn:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.75);
    outline-offset: 2px;
}

.sa-welcome-menu-btn:disabled {
    cursor: default;
    opacity: 0.72;
}

.sa-welcome-menu--stale .sa-welcome-menu-btn {
    opacity: 0.5;
    filter: grayscale(0.3);
    box-shadow: none;
    transform: none;
}

.sa-welcome-menu-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sa-welcome-menu-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #fff;
}

.sa-welcome-menu-sub {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(226, 240, 255, 0.88);
}

.sa-welcome-menu-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 6px 14px rgba(0, 20, 60, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.28) inset;
}

.sa-welcome-menu-svg {
    display: block;
    width: 22px;
    height: 22px;
    color: #fff;
    fill: currentColor;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .sa-msg.sa-welcome-menu {
        max-width: 100%;
    }
    .sa-welcome-menu-list {
        gap: 10px;
    }
    .sa-welcome-menu-btn {
        min-height: 70px;
        padding: 14px 14px;
        border-radius: 16px;
        gap: 12px;
    }
    .sa-welcome-menu-title {
        font-size: 0.98rem;
    }
    .sa-welcome-menu-sub {
        font-size: 0.76rem;
    }
    .sa-welcome-menu-icon {
        width: 46px;
        height: 46px;
    }
    .sa-welcome-menu-svg {
        width: 20px;
        height: 20px;
    }
}

/* ——— Checkout modal (iframe embed) ——— */
body.sa-checkout-open {
    overflow: hidden;
}

.sa-checkout-modal[hidden] {
    display: none !important;
}

.sa-checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.sa-checkout-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}

.sa-checkout-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    height: min(92vh, 920px);
    max-height: calc(100vh - 24px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 53, 128, 0.28);
}

.sa-checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #003580 0%, #0066cc 100%);
    color: #fff;
    flex-shrink: 0;
}

.sa-checkout-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sa-checkout-close {
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.sa-checkout-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.sa-checkout-body {
    flex: 1;
    min-height: 0;
    background: #f1f5f9;
}

.sa-checkout-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 640px) {
    .sa-checkout-modal {
        padding: 0;
    }

    .sa-checkout-dialog {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    /* تحت شريط الحالة (البطارية/الشبكة) على الموبايل */
    .sa-checkout-header {
        padding-top: calc(14px + env(safe-area-inset-top, 0px));
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    .sa-checkout-close {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .sa-checkout-body {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}
