/* CineBook Cinema 4 — cinema4.css */
*, *::before, *::after { box-sizing: border-box; }
.cbc4-wrap { max-width: 820px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #111; }
.cbc4-header { text-align: center; margin-bottom: 24px; padding: 20px 16px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.cbc4-cinema-badge { display: inline-block; background: #111; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; padding: 4px 14px; border-radius: 20px; margin-bottom: 10px; }
.cbc4-movie-title { font-size: 22px; font-weight: 700; margin: 0 0 10px; color: #111; }
.cbc4-session-info { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cbc4-info-pill { font-size: 12px; padding: 4px 12px; border-radius: 20px; background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; font-weight: 500; }
.cbc4-std-badge  { background: #EAF3DE; color: #27500A; border-color: #97C459; }
.cbc4-prem-badge { background: #E6F1FB; color: #0C447C; border-color: #85B7EB; }
.cbc4-screen-wrap { text-align: center; margin-bottom: 20px; }
.cbc4-screen-bar { display: inline-block; width: 72%; height: 10px; background: #d1d5db; border-radius: 6px; margin-bottom: 6px; }
.cbc4-screen-label { font-size: 11px; color: #9ca3af; letter-spacing: 0.14em; font-weight: 600; }
.cbc4-hall { margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; }
.cbc4-loading { text-align: center; padding: 24px; color: #9ca3af; font-size: 14px; }
.cbc4-row { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; justify-content: center; min-width: fit-content; }
.cbc4-rl { width: 20px; font-size: 11px; font-weight: 600; color: #6b7280; text-align: center; flex-shrink: 0; }
.cbc4-aisle-gap { width: 12px; flex-shrink: 0; }
.cbc4-divider-row { height: 10px; }
.cbc4-seat { width: 24px; height: 22px; border-radius: 4px 4px 2px 2px; border: 1px solid transparent; cursor: pointer; transition: transform 0.1s, background 0.1s; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 600; flex-shrink: 0; }
.cbc4-seat.std-avail   { background: #DCFCE7; border-color: #86EFAC; color: #166534; }
.cbc4-seat.std-avail:hover { transform: scale(1.18); background: #BBF7D0; }
.cbc4-seat.std-sel     { background: #16A34A; border-color: #15803D; color: #fff; }
.cbc4-seat.prem-avail  { background: #DBEAFE; border-color: #93C5FD; color: #1E40AF; }
.cbc4-seat.prem-avail:hover { transform: scale(1.18); background: #BFDBFE; }
.cbc4-seat.prem-sel    { background: #2563EB; border-color: #1D4ED8; color: #fff; }
.cbc4-seat.reserved    { background: #F3F4F6; border-color: #D1D5DB; color: #9CA3AF; cursor: not-allowed; }
.cbc4-seat.wheelchair  { background: #1E3A5F; border-color: #1e3a5f; color: #fff; font-size: 11px; width: 28px; height: 26px; }
.cbc4-seat.wheelchair.wc-sel { background: #1D4ED8; border-color: #1e40af; }
.cbc4-legend { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.cbc4-legend-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #6b7280; }
.cbc4-dot { width: 16px; height: 14px; border-radius: 3px; border: 1px solid; display: inline-block; }
.cbc4-dot-std  { background: #DCFCE7; border-color: #86EFAC; }
.cbc4-dot-prem { background: #DBEAFE; border-color: #93C5FD; }
.cbc4-dot-sel  { background: #16A34A; border-color: #15803D; }
.cbc4-dot-res  { background: #F3F4F6; border-color: #D1D5DB; }
.cbc4-dot-wc   { background: #1E3A5F; border-color: #1e3a5f; }
.cbc4-summary { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }
.cbc4-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14px; }
.cbc4-summary-row + .cbc4-summary-row { border-top: 1px solid #f3f4f6; }
.cbc4-s-label { color: #6b7280; }
.cbc4-s-val   { color: #111; font-weight: 500; }
.cbc4-total-row   { border-top: 2px solid #e5e7eb !important; padding-top: 12px !important; }
.cbc4-total-lbl   { font-size: 15px; color: #111; font-weight: 600; }
.cbc4-total-val   { font-size: 20px; color: #1D4ED8; font-weight: 700; }
.cbc4-btn-primary { display: block; width: 100%; padding: 13px; text-align: center; background: #1D4ED8; color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.cbc4-btn-primary:hover:not(:disabled) { background: #1E40AF; }
.cbc4-btn-primary:disabled { background: #d1d5db; color: #9ca3af; cursor: not-allowed; }
.cbc4-btn-ghost { flex: 1; padding: 11px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; cursor: pointer; color: #374151; }
.cbc4-overlay { background: rgba(0,0,0,0.5); border-radius: 12px; padding: 20px; display: flex; align-items: flex-start; justify-content: center; min-height: 520px; margin-top: 16px; }
.cbc4-modal { background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; width: 100%; max-width: 440px; padding: 22px; }
.cbc4-modal-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.cbc4-modal-hdr h3 { font-size: 18px; font-weight: 700; margin: 0; color: #111; }
.cbc4-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #9ca3af; line-height: 1; padding: 0; }
.cbc4-modal-sub { font-size: 12px; color: #6b7280; margin-bottom: 14px; }
.cbc4-section-label { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; margin-bottom: 8px; }
.cbc4-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cbc4-field { margin-bottom: 10px; }
.cbc4-field label { display: block; font-size: 12px; color: #374151; margin-bottom: 3px; font-weight: 500; }
.cbc4-field input { width: 100%; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 7px; font-size: 13px; color: #111; background: #fafafa; }
.cbc4-field input:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.cbc4-pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.cbc4-ptab { padding: 10px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; background: #f9fafb; color: #374151; transition: all 0.15s; text-align: center; }
.cbc4-ptab.active { background: #EFF6FF; color: #1D4ED8; border-color: #2563EB; }
.cbc4-pay-sec { display: none; }
.cbc4-pay-sec.active { display: block; }
.cbc4-card-logos { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.cbc4-card-chip { padding: 4px 10px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; background: #f9fafb; color: #374151; transition: all 0.15s; }
.cbc4-card-chip.active { background: #EFF6FF; color: #1D4ED8; border-color: #2563EB; }
.cbc4-secure-note { font-size: 11px; color: #6b7280; margin: 8px 0 0; }
.cbc4-paypal-box { background: #f0f7ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; text-align: center; }
.cbc4-paypal-logo { font-size: 22px; font-weight: 800; color: #003087; margin-bottom: 6px; }
.cbc4-paypal-box p { font-size: 12px; color: #374151; margin: 0; }
.cbc4-order-box { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 14px; margin: 14px 0 0; font-size: 13px; }
.cbc4-order-row { display: flex; justify-content: space-between; padding: 4px 0; }
.cbc4-order-row.cbc4-order-total { border-top: 1px solid #e5e7eb; margin-top: 6px; padding-top: 8px; font-weight: 700; font-size: 15px; color: #1D4ED8; }
.cbc4-modal-actions { display: flex; gap: 8px; margin-top: 14px; }
.cbc4-modal-actions .cbc4-btn-primary { flex: 2; width: auto; padding: 12px; font-size: 14px; border-radius: 8px; }
.cbc4-success { text-align: center; }
.cbc4-tick { margin: 0 auto 12px; width: 64px; height: 64px; }
.cbc4-tick svg { width: 64px; height: 64px; }
.cbc4-success h3 { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: #111; }
.cbc4-success-sub { font-size: 13px; color: #6b7280; margin-bottom: 0; }
.cbc4-ticket { background: #f9fafb; border: 1.5px dashed #d1d5db; border-radius: 10px; padding: 14px 16px; margin: 14px 0; text-align: left; }
.cbc4-t-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.cbc4-t-label { color: #6b7280; }
.cbc4-t-val   { color: #111; font-weight: 500; }
.cbc4-t-ref   { font-size: 20px; font-weight: 800; letter-spacing: 0.1em; color: #1D4ED8; text-align: center; margin-bottom: 10px; }
.cbc4-t-divider { border: none; border-top: 1px dashed #d1d5db; margin: 8px 0; }
@media (max-width: 560px) {
    .cbc4-2col { grid-template-columns: 1fr; }
    .cbc4-pay-tabs { grid-template-columns: 1fr; }
    .cbc4-seat { width: 20px; height: 18px; }
    .cbc4-seat.wheelchair { width: 22px; height: 20px; font-size: 9px; }
}

/* ── Square Web Payments SDK styles ──────────────────────── */
.cbc4-square-card-wrap {
    margin-bottom: 10px;
}
#cbc4-square-card {
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 4px 2px;
    background: #fff;
    min-height: 56px;
    transition: border-color .2s;
}
#cbc4-square-card.sq-card-iframe-container.is-focus {
    border-color: #1D4ED8;
    box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}
.cbc4-square-error {
    color: #df1b41;
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 6px;
    border: 1px solid #fed7d7;
}
