

/* Cancel page, matches the success page card */

.cc-page {
    min-height: 72vh;
    background: var(--color-main-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.cc-card {
    width: 100%;
    max-width: 540px;
    background: var(--color-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
}

.cc-card--warning {
    border-top: 3px solid var(--emerald);
}

.cc-card--done {
    border-top: 3px solid rgba(var(--emerald-rgb), 0.3);
}

.cc-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
    padding: 2.75rem 2.25rem 0;
}

.cc-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-icon--clock {
    background: rgba(var(--emerald-rgb), 0.1);
    color: var(--emerald);
    animation: cc-pulse 2s ease-in-out infinite;
}

.cc-icon--done {
    background: rgba(var(--emerald-rgb), 0.06);
    color: rgba(var(--emerald-rgb), 0.45);
}

@keyframes cc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--emerald-rgb), 0.18); }
    50%       { box-shadow: 0 0 0 8px rgba(var(--emerald-rgb), 0); }
}

.cc-card-titles {
    padding-top: 0.2rem;
}

.cc-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--color-headings);
    margin: 0 0 0.5rem;
    letter-spacing: 0.005em;
}

.cc-sub {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

.cc-timer-section {
    margin: 1.75rem 2.25rem 0;
    background: var(--beige-light);
    border: none;
    border-radius: 0;
    padding: 1.1rem 1.3rem 1rem;
    transition: opacity 0.4s;
}

.cc-timer-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-body);
    margin-bottom: 0.4rem;
}

.cc-timer {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--emerald);
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 0.85rem;
    font-variant-numeric: tabular-nums;
    transition: color 0.4s;
}

.cc-timer--warn   { color: #a8660f; }
.cc-timer--urgent { color: #b93333; }

.cc-timer-track {
    height: 4px;
    background: rgba(var(--emerald-rgb), 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.cc-timer-bar {
    height: 100%;
    background: var(--emerald);
    border-radius: 999px;
    transition: width 1s linear, background 0.4s;
}

.cc-timer--warn   ~ .cc-timer-track .cc-timer-bar,
.cc-timer-bar.warn   { background: #a8660f; }
.cc-timer--urgent ~ .cc-timer-track .cc-timer-bar,
.cc-timer-bar.urgent { background: #b93333; }

.cc-expired-notice {
    margin: 1rem 2.25rem 0;
    padding: 0.7rem 1rem;
    background: rgba(185, 51, 51, 0.06);
    border: 1px solid rgba(185, 51, 51, 0.18);
    border-radius: 0;
    font-size: 0.82rem;
    color: #b93333;
    text-align: center;
}

.cc-summary {
    margin: 1.5rem 2.25rem 0;
    border: 1px solid var(--beige-mid, #e8e0d4);
    border-radius: 0;
    padding: 1rem 1.1rem;
    background: var(--color-white);
}

.cc-summary--muted {
    opacity: 0.65;
}

.cc-summary-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--emerald);
    margin: 0 0 0.8rem;
}

.cc-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(var(--emerald-rgb), 0.07);
}

.cc-item:last-of-type {
    border-bottom: none;
}

.cc-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cc-item-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-headings);
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.cc-item-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.cc-item-price {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-price);
    white-space: nowrap;
}

.cc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.7rem;
    margin-top: 0.2rem;
    border-top: 1px solid rgba(var(--emerald-rgb), 0.12);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-headings);
    letter-spacing: 0.01em;
}

.cc-currency {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
}

.cc-actions {
    padding: 1.5rem 2.25rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0.92rem 1.2rem;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, opacity 0.2s, transform 0.15s;
}

.cc-btn:active { transform: scale(0.98); }

.cc-btn--primary {
    background: var(--emerald);
    color: #fff;
}

.cc-btn--primary:hover {
    background: var(--emerald-dark);
    color: #fff;
}

.cc-btn--danger {
    background: transparent;
    color: #b93333;
    border: 1px solid rgba(185, 51, 51, 0.35);
}

.cc-btn--danger:hover {
    background: rgba(185, 51, 51, 0.06);
    border-color: rgba(185, 51, 51, 0.55);
}

