/* Modal View details: add-on +/-, booking summary, notes, voucher.
   Thứ tự nạp: templates/_styles.html */

/* Service item with quantity controls (guest modal add-ons) */
.svc-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 8px 7px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fafafa;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    min-width: 0;
}
.svc-item:hover {
    border-color: rgba(186, 117, 23, 0.35);
    background: #fff;
}
.svc-item.active {
    background: #fffbeb;
    border-color: rgba(186, 117, 23, 0.45);
    box-shadow: 0 1px 2px rgba(186, 117, 23, 0.12);
}
.svc-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.svc-item .svc-ico-wrap {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.06);
}
.svc-item.active .svc-ico-wrap {
    background: rgba(255, 247, 237, 0.95);
    border-color: rgba(186, 117, 23, 0.2);
}
.svc-item .svc-ico {
    font-size: 15px;
    line-height: 1;
}
.svc-item .svc-nm {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    line-height: 1.2;
    letter-spacing: 0.01em;
    min-width: 0;
}
.svc-item.active .svc-nm {
    color: #78350f;
}
.svc-item .svc-ctrl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
}
.svc-item.active .svc-ctrl {
    background: #fff;
    border-color: rgba(186, 117, 23, 0.18);
}
.svc-item .svc-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.svc-item .svc-btn:focus-visible {
    outline: 2px solid #ba7517;
    outline-offset: 1px;
}
.svc-item .svc-btn:active:not(:disabled) {
    transform: scale(0.96);
}
.svc-item .svc-minus {
    background: #fef2f2;
    color: #b91c1c;
}
.svc-item .svc-minus:hover:not(:disabled) {
    background: #fee2e2;
}
.svc-item .svc-plus {
    background: #ecfdf5;
    color: #047857;
}
.svc-item .svc-plus:hover {
    background: #d1fae5;
}
.svc-item .svc-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none;
}
.svc-item .svc-qty {
    font-size: 16px;
    font-weight: 800;
    min-width: 28px;
    text-align: center;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.svc-item.active .svc-qty {
    color: #78350f;
}
/* Single “Booking summary” block: pills + chips + counters */
#guestModal .gm-section--unified .gm-section-title {
    margin-bottom: 5px;
}
#guestModal .gm-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
#guestModal .gm-sum-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1.15;
}
#guestModal .gm-sum-pill strong {
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
#guestModal .gm-sum-abf {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
#guestModal .gm-sum-hint {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}
#guestModal .gm-divider {
    height:1px;
    margin:8px 0 6px;
    border:0;
    background:linear-gradient(90deg,transparent,#e2e8f0 10%,#e2e8f0 90%,transparent);
}
#guestModal .gm-subtitle {
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.07em;
    color:#64748b;
    margin:0 0 4px;
}
#guestModal .gm-subtitle--addons {margin-top:6px}
#guestModal .gm-subtitle-hint {
    font-weight:600;
    text-transform:none;
    letter-spacing:0.02em;
    color:#94a3b8;
}
#guestModal .gm-cnt-modal {margin-bottom:0;gap:6px}
#guestModal .gm-cnt-modal--3 {grid-template-columns:repeat(3,minmax(0,1fr))}
#guestModal .gm-cnt-modal .cnt-grp label {font-size:10px;margin-bottom:3px}
#guestModal .gm-cnt-modal .cnt-ctrl {padding:4px 6px}
#guestModal .gm-cnt-modal .cnt-ctrl button {width:26px;height:26px;font-size:14px}
#guestModal .gm-cnt-modal .cnt-num {font-size:17px;min-width:28px}
#guestModal .gm-notes-wrap {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 6px 8px 7px;
    margin-bottom: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
#guestModal .gm-notes-heading {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}
#guestModal .gm-notes-wrap > .note-sec {
    margin-bottom: 6px;
}
#guestModal .gm-notes-wrap .note-toggle {
    padding:5px 8px;
    font-size:10px;
    gap:4px;
    border-radius:6px;
}
#guestModal .gm-notes-wrap > .note-sec:last-child {
    margin-bottom: 0;
}
#guestModal .gm-note-ta {
    width: 100%;
    min-height: 40px;
    max-height: 72px;
    resize: vertical;
    margin-top: 4px;
    padding: 6px 8px;
    border: 1px solid var(--bd);
    border-radius: 6px;
    font-size: 11px;
    font-family: inherit;
    line-height: 1.35;
    box-sizing: border-box;
}
#guestModal .gm-note-ta:focus {
    outline: none;
    border-color: var(--g2);
    box-shadow: 0 0 0 2px rgba(26, 158, 99, 0.2);
}
#guestModal .gm-note-save {
    text-align: right;
    margin-top: 5px;
}
#guestModal .btn-save-note {
    font-size: 11px;
    padding: 5px 10px;
    border: 1.5px solid var(--g);
    border-radius: 8px;
    background: var(--gl);
    color: var(--g);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
}
#guestModal .btn-save-note:hover {
    background: #d1fae5;
    border-color: var(--gd);
}
#guestModal .gm-booking-comment {
    margin-top: 4px;
    max-height: 56px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.35;
    color: #374151;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.gm-vouchers{margin-top:10px}
.gm-vcount{font-size:11px;font-weight:600;color:#6b7280;margin-left:6px}
.vrow-list{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.vrow{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:8px;
      font-size:12px;border:1px solid #e5e7eb;background:#fafafa}
.vrow.v-fbsf {background:#fff1f2;border-color:#fecdd3}
.vrow.v-spagc{background:#f5f3ff;border-color:#ddd6fe}
.vrow.v-bevc {background:#ecfeff;border-color:#a5f3fc}
.vrow.v-atc  {background:#f0fdf4;border-color:#bbf7d0}
.vrow-ico{font-size:14px;line-height:1}
.vrow-lbl{font-weight:600;color:#374151}
.vrow-amt{font-weight:700;color:#b45309;font-size:11px}
.vrow-ser{margin-left:auto;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
          font-size:11px;font-weight:600;color:#4b5563;letter-spacing:.02em}
.gm-vhint{font-size:10px;color:#9ca3af;margin-top:5px;font-style:italic}
