/* =============================================================
   Websan Cancel Ticket — cancel-ticket.css
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --wsct-danger:   #e02424;
    --wsct-danger-dk:#c81e1e;
    --wsct-success:  #0e9f6e;
    --wsct-warning:  #c27803;
    --wsct-border:   #e2e8f0;
    --wsct-radius:   10px;
    --wsct-font:     'DM Sans', sans-serif;
}

/* ── Cancel Section ──────────────────────────────────────────── */
.wsct-cancel-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--wsct-border);
    font-family: var(--wsct-font);
}

.wsct-section-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin-bottom: 18px !important;
}

/* ── Notices ─────────────────────────────────────────────────── */
.wsct-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--wsct-radius);
    font-size: 14px;
    margin-bottom: 16px;
}

.wsct-notice--error {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    color: #9b1c1c;
}

.wsct-notice--info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.wsct-notice--cancelled {
    background: #f0fdf4;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.wsct-notice__icon { font-size: 20px; flex-shrink: 0; }
.wsct-notice p { margin: 4px 0 0; font-size: 13px; opacity: .85; }

/* ── Journey Info ────────────────────────────────────────────── */
.wsct-cancel-info { margin-bottom: 20px; }

.wsct-journey-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid var(--wsct-border);
    border-radius: var(--wsct-radius);
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

/* ── Refund Badge ────────────────────────────────────────────── */
.wsct-refund-badge {
    padding: 10px 16px;
    border-radius: var(--wsct-radius);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.wsct-refund-badge--green {
    background: #f0fdf4;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.wsct-refund-badge--red {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    color: #9b1c1c;
}

/* ── Cancel Button ───────────────────────────────────────────── */
.wsct-cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--wsct-danger);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--wsct-font);
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    text-decoration: none !important;
}

.wsct-cancel-btn:hover {
    background: var(--wsct-danger-dk);
    box-shadow: 0 4px 14px rgba(224,36,36,.35);
}

.wsct-cancel-btn:active { transform: scale(.98); }

/* Quick cancel in orders list */
a.wsct-quick-cancel {
    background: #fff5f5 !important;
    color: var(--wsct-danger) !important;
    border: 1px solid #fca5a5 !important;
}

/* ── Popup Overlay ───────────────────────────────────────────── */
.wsct-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: wsctFadeIn .2s ease;
}

@keyframes wsctFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.wsct-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: wsctSlideUp .25s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes wsctSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.wsct-popup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--wsct-border);
}

.wsct-popup__header h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
}

.wsct-popup__close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}

.wsct-popup__close:hover { background: #f1f5f9; }

.wsct-popup__body {
    padding: 20px 24px;
}

.wsct-popup__journey {
    background: #f8fafc;
    border: 1px solid var(--wsct-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 16px;
    line-height: 1.8;
}

.wsct-popup__refund {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.wsct-popup__refund--green { background: #f0fdf4; border: 1px solid #6ee7b7; color: #065f46; }
.wsct-popup__refund--red   { background: #fff5f5; border: 1px solid #fca5a5; color: #9b1c1c; }

/* ── Policy Table ────────────────────────────────────────────── */
.wsct-policy-table {
    margin-bottom: 20px;
}

.wsct-policy-table h4 {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280 !important;
    margin-bottom: 10px !important;
}

.wsct-policy-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.wsct-policy-table th {
    background: #f8fafc;
    padding: 8px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    color: #6b7280;
    border-bottom: 1px solid var(--wsct-border);
}

.wsct-policy-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
}

.wsct-green  { color: #065f46; font-weight: 700; }
.wsct-yellow { color: #92400e; font-weight: 700; }
.wsct-orange { color: #c2410c; font-weight: 700; }
.wsct-red    { color: #9b1c1c; font-weight: 700; }

.wsct-popup__warning {
    font-size: 13px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0;
}

/* ── Popup Footer ────────────────────────────────────────────── */
.wsct-popup__footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--wsct-border);
    flex-wrap: wrap;
}

.wsct-btn {
    flex: 1;
    padding: 11px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--wsct-font);
    cursor: pointer;
    transition: background .15s;
    text-align: center;
    min-width: 140px;
}

.wsct-btn--danger {
    background: var(--wsct-danger);
    color: #fff;
}

.wsct-btn--danger:hover { background: var(--wsct-danger-dk); }

.wsct-btn--ghost {
    background: #f1f5f9;
    color: #374151;
    border: 1px solid var(--wsct-border);
}

.wsct-btn--ghost:hover { background: #e2e8f0; }

/* ── Loading State ───────────────────────────────────────────── */
.wsct-popup__loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.wsct-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--wsct-danger);
    border-radius: 50%;
    animation: wsctSpin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes wsctSpin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media ( max-width: 480px ) {
    .wsct-popup { border-radius: 12px; }
    .wsct-popup__header,
    .wsct-popup__body,
    .wsct-popup__footer { padding-left: 16px; padding-right: 16px; }
    .wsct-popup__footer { flex-direction: column-reverse; }
    .wsct-btn { width: 100%; }
    .wsct-journey-row { flex-direction: column; gap: 6px; }
}
