/* ================================================================
   guarante_deposit.css
   Guarantee Deposit page — complementary styles on top of
   style_reservation.css (which drives the header, grid, cards,
   sidebar, sticky bar, fonts and color tokens).
   ================================================================ */

/* ── Mobile sticky bar: no expand, no drag handle ─────────────── */
.drag-handle,
#bar-drag-handle {
    display: none !important;
}

/* Lock the bar to its compact height — never expand */
#mobile-sticky-bar .sticky-bar-content {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
}

#mobile-sticky-bar .bar-expanded {
    display: none !important;
}

/* Page bottom padding so last card isn't hidden behind sticky bar */
@media (max-width: 1023px) {
    .main-container {
        padding-bottom: 96px;
    }
}


/* ── Sidebar price: match reservation.html .price-display .amount ── */
.sidebar-summary .gd-sidebar-price .amount {
    font-size: 40px;
    font-weight: 900;
    color: white;
    line-height: 1;
    letter-spacing: -0.05em;
}

.sidebar-summary .gd-sidebar-price .unit {
    font-size: 13px;
    opacity: 0.65;
    align-self: flex-end;
    margin-bottom: 4px;
}

.sidebar-summary #sidebar-sub-label {
    font-size: 12px;
    opacity: 0.55;
    margin: 4px 0 0;
}



/* ── Meta info grid inside the ref card ───────────────────────── */
.gd-ref-card .card-header {
    margin-bottom: 20px;
}

/* ── Deposit item — reservation.html card style ────────────────── */
.gd-deposit-item {
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 4px;
}

/* Dark navy pill badge */
.gd-deposit-badge {
    display: inline-flex;
    align-items: center;
    background: #0f2b46;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

/* Row: left (icon + text) + right (amount) */
.gd-deposit-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.gd-deposit-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* Teal lock icon */
.gd-deposit-icon {
    color: #3FB9A4;
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.gd-deposit-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gd-deposit-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f2b46;
    line-height: 1.3;
}

.gd-deposit-sub {
    font-size: 12px;
    color: #8a99a8;
    line-height: 1.4;
}

/* Amount right-aligned */
.gd-deposit-amount {
    font-size: 15px;
    font-weight: 700;
    color: #0f2b46;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

/* Muted fee row */
.gd-deposit-row--muted {
    margin-top: 10px;
}

.gd-deposit-icon--muted {
    color: #b0bec5;
    font-size: 12px;
}

.gd-deposit-amount--muted {
    font-weight: 400;
    color: #8a99a8;
    font-size: 14px;
}

/* Divider between fee and total */
.gd-deposit-divider {
    border: none;
    border-top: 1px solid #edf0f4;
    margin: 12px 0;
}

/* Total row emphasis */
.gd-deposit-amount--total {
    font-size: 17px;
    font-weight: 800;
    color: #0f2b46;
}


.gd-meta-grid {
    margin-bottom: 20px;
}

.gd-meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f3f6;
    font-size: 14px;
}

.gd-meta-row:last-child {
    border-bottom: none;
}

.gd-meta-row .label-grp {
    color: #6b7a8d;
    font-size: 13px;
    flex-shrink: 0;
}

.gd-meta-row .value {
    font-weight: 600;
    color: #0f2b46;
    text-align: right;
    word-break: break-word;
}

.gd-meta-row .value a {
    color: #0f2b46;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Amount highlight block ────────────────────────────────────── */
.gd-amount-block {
    background: linear-gradient(135deg, #f0fbf9 0%, #e6f7f5 100%);
    border: 1px solid rgba(92, 183, 172, 0.25);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.gd-amount-block .summary-box {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.gd-amount-block .summary-icon {
    background: linear-gradient(135deg, #3FB9A4, #42C6B6);
}

.gd-amount-block h3 {
    font-size: 32px;
    font-weight: 800;
    color: #0f2b46;
    margin: 4px 0 0;
    letter-spacing: -0.03em;
}

/* ── Price breakdown ───────────────────────────────────────────── */
.gd-breakdown {
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    padding: 16px 20px;
}

.gd-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #3a4a5c;
}

.gd-breakdown-row.text-muted {
    color: #8a99a8;
    font-size: 13px;
}

.gd-breakdown-divider {
    border-top: 1px solid #e2e8f0;
    margin: 8px 0;
}

.gd-total-row {
    font-size: 15px;
    font-weight: 700;
    color: #0f2b46;
}

.gd-currency-note {
    font-size: 12px;
    color: #8a99a8;
    margin-top: 6px;
}

/* ── Steps card ────────────────────────────────────────────────── */
.gd-step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    counter-reset: gdstep;
}

.gd-step-list li {
    position: relative;
    padding: 12px 0 12px 44px;
    font-size: 15px;
    color: #3a4a5c;
    line-height: 1.5;
    border-bottom: 1px solid #f0f3f6;
}

.gd-step-list li:last-child {
    border-bottom: none;
}

.gd-step-list li::before {
    counter-increment: gdstep;
    content: counter(gdstep);
    position: absolute;
    left: 0;
    top: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3FB9A4, #42C6B6);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Sidebar: accepted cards ───────────────────────────────────── */
.gd-accepted-cards {
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-radius: 14px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.gd-accepted-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7a8d;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gd-accepted-label i {
    color: #3FB9A4;
}

.gd-card-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.gd-card-icons i {
    font-size: 28px;
    color: #3a4a5c;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.gd-card-icons i:hover {
    opacity: 1;
}

/* ── Alert (error) ─────────────────────────────────────────────── */
.alert {
    border-radius: 12px;
    font-size: 14px;
}

.alert.d-none {
    display: none !important;
}

/* ── Mini toast (copy feedback) ───────────────────────────────── */
.mini-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .82);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: .875rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 11000;
}

.mini-toast.show {
    opacity: 1;
}

/* ── Mobile: hide sidebar on small screens ─────────────────────── */
@media (max-width: 1023px) {

    /* sidebar-column is already handled by style_reservation.css  */
    /* but ensure the gd-accepted-cards doesn't stack oddly        */
    .gd-accepted-cards {
        margin-top: 8px;
    }
}