/* ============================================================
   AARYANS.CZ — Thank You Page v5.5
   ============================================================ */

/* ─── QR TABLE FIX ─────────────────────────────────────── */
.co-box.co-payment-method .table.recapitulation-table td {
    position: static !important; right: auto !important; text-align: right;
}
.co-box.co-payment-method .table.recapitulation-table {
    width: 100%; margin: 0.5rem 0 !important;
}
.co-box.co-payment-method .table.recapitulation-table th {
    text-align: left; font-weight: 500; color: #2E2D2C;
    padding-right: 1rem; white-space: nowrap;
}
.co-box.co-payment-method .table.recapitulation-table td {
    font-weight: 600; color: #0076A0; white-space: nowrap !important;
}
.co-box.co-payment-method {
    padding-bottom: 1.5rem !important; overflow: visible !important;
}

/* ─── QR WRAPPER ────────────────────────────────────────── */
.aar-qr-wrapper {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    width: 100%; padding: 20px 0 12px; box-sizing: border-box;
}
.aar-qr-label {
    font-size: 11px; color: #999; text-transform: uppercase;
    letter-spacing: 0.8px; margin-bottom: 10px;
    font-family: 'Bahnschrift', sans-serif;
}
.aar-qr-wrapper img.qrcode, .aar-qr-wrapper canvas {
    max-width: 180px !important; width: 180px !important;
    height: auto !important; display: block !important;
    border: 1px solid #e2e2e2 !important; border-radius: 10px !important;
    padding: 10px !important; background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
}

/* ─── HEADING ICONS ─────────────────────────────────────── */
#content.thank-page .co-box.co-payment-method h4,
#content.thank-page .co-box.co-order h4 {
    margin-left: 0 !important;
    padding-left: 55px !important;
}
#content.thank-page .co-box.co-payment-method h4::before,
#content.thank-page .co-box.co-payment-method h4:before {
    left: 10px !important;
    top: calc(50% + 16px) !important;
    transform: translateY(-50%) !important;
}
#content.thank-page .co-box.co-order h4::before,
#content.thank-page .co-box.co-order h4:before {
    left: 10px !important;
    top: calc(50% + 16px) !important;
    transform: translateY(-50%) !important;
}
#content.thank-page .content-inner {
    overflow: visible !important;
}

/* ─── ORDER NUMBER HIGHLIGHT ────────────────────────────── */
.reca-number {
    font-size: 1rem !important; color: #888 !important; font-weight: 400 !important;
}
strong[data-testid="orderNumber"] {
    color: #0076A0 !important; font-size: 1.55em !important;
    font-weight: 700 !important; display: inline-block;
    background: rgba(0,118,160,0.07); padding: 3px 14px 3px 10px;
    border-radius: 20px; border: 1px solid rgba(0,118,160,0.18);
    margin-left: 6px; letter-spacing: 0.5px; vertical-align: middle;
}

/* ─── GAP: email text → Retino button ──────────────────── */
.additional-text {
    padding: 0.75rem 3rem 0 !important; margin-bottom: 0 !important;
}

/* ─── IMAGES GAP: CSS fallback — JS handles precise calc ── */
#content.thank-page .images-container { top: 0 !important; }

/* ─── CHECKMARK SPACING ─────────────────────────────────── */
.icon {
    margin: 5rem auto 1.5rem !important; display: block;
}

/* ─── RETINO BUTTON ─────────────────────────────────────── */
.aar-retino-cta {
    display: flex; justify-content: center; align-items: center;
    margin: 1.2rem auto 2.5rem; width: 100%;
}
.aar-retino-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background-color: #0076A0; color: #ffffff !important;
    text-decoration: none !important;
    font-family: 'Bahnschrift','Cocogoose',sans-serif;
    font-size: 15px; font-weight: 600; letter-spacing: 0.3px;
    padding: 13px 28px; border-radius: 25px; border: 2px solid #0076A0;
    transition: background-color .2s, border-color .2s, transform .15s;
    box-shadow: 0 4px 14px rgba(0,118,160,.25); white-space: nowrap;
}
.aar-retino-btn:hover {
    background-color: #005f83; border-color: #005f83;
    color: #ffffff !important; transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,118,160,.35);
}
.aar-retino-btn svg {
    flex-shrink: 0; width: 18px; height: 18px; fill: none;
    stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ─── FOOTER ────────────────────────────────────────────── */
.ordering-process-footer .phone-wrapper a,
.ordering-process-footer .mail-wrapper a {
    color: #0076A0 !important; text-decoration: none;
}
.ordering-process-footer .phone-wrapper a:hover,
.ordering-process-footer .mail-wrapper a:hover { text-decoration: underline; }

/* ─── MOBILE ≤767px ─────────────────────────────────────── */
@media (max-width: 767px) {
    #content.thank-page .content-inner { margin-top: 40px !important; }

    .co-box.co-order .cart-table {
        display: table !important; width: 100% !important; font-size: 12px !important;
    }
    .co-box.co-order .cart-table tbody tr {
        display: table-row !important; visibility: visible !important;
    }
    .co-box.co-order .cart-table tbody td {
        display: table-cell !important; visibility: visible !important;
        padding: 6px 4px !important;
    }
    .co-box.co-order .cart-table .p-image img {
        max-width: 44px !important; height: auto !important;
    }

    .aar-retino-btn { font-size: 13px; padding: 12px 20px; gap: 8px; }
    .aar-qr-wrapper img.qrcode { max-width: 150px !important; width: 150px !important; }
    .icon { margin: 2rem auto 1rem !important; }
    .additional-text { padding: 0.5rem 1rem 0 !important; }
}

/* ─── TABLET 768–993px ──────────────────────────────────── */
@media (min-width: 768px) and (max-width: 993px) {
    #header { min-height: 60px !important; }
    #header .navigation-wrapper {
        display: flex !important; flex-wrap: nowrap !important;
        align-items: center !important; justify-content: center !important;
    }
    #content.thank-page .images-container { top: 0 !important; }
    .aar-retino-btn { font-size: 14px; padding: 13px 24px; }
    .content-inner { width: 88% !important; padding: 2.5rem !important; }
}
