/* ==========================================================================
   NHL Appointment Cancellation Modal
   ========================================================================== */

.nhl-cancel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
}

.nhl-cancel-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    position: relative;
}

/* Close button */
.nhl-cancel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0 0.25rem;
}

.nhl-cancel-close:hover {
    color: #111;
}

.nhl-cancel-title {
    margin: 0 0 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Phase 1 — search */
.nhl-cancel-hint {
    margin: 0 0 0.75rem;
    color: #555;
    font-size: 0.9rem;
}

.nhl-cancel-input-row {
    display: flex;
    gap: 0.5rem;
}

.nhl-cancel-input {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.nhl-cancel-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Phase 2 — details */
.nhl-cancel-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.nhl-cancel-details-table th,
.nhl-cancel-details-table td {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.nhl-cancel-details-table th {
    width: 35%;
    color: #666;
    font-weight: 500;
}

.nhl-cancel-warn {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: #b91c1c;
}

.nhl-cancel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Phase 3 — success */
.nhl-cancel-success-msg {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

/* Shared error */
.nhl-cancel-error {
    margin: 0.6rem 0 0;
    color: #b91c1c;
    font-size: 0.88rem;
}

/* Buttons */
.nhl-cancel-btn-primary,
.nhl-cancel-btn-secondary,
.nhl-cancel-btn-danger {
    padding: 0.55rem 1.1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.15s;
}

.nhl-cancel-btn-primary:disabled,
.nhl-cancel-btn-secondary:disabled,
.nhl-cancel-btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nhl-cancel-btn-primary {
    background: #0073aa;
    color: #fff;
}

.nhl-cancel-btn-primary:hover:not(:disabled) {
    background: #005a87;
}

.nhl-cancel-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.nhl-cancel-btn-secondary:hover:not(:disabled) {
    background: #0073aa;
    color: #fff;
}

.nhl-cancel-btn-danger {
    background: #dc2626;
    color: #fff;
}

.nhl-cancel-btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

/* Responsive */
@media (max-width: 480px) {
    .nhl-cancel-card {
        padding: 1.5rem 1.25rem;
    }

    .nhl-cancel-input-row {
        flex-direction: column;
    }

    .nhl-cancel-btn-primary,
    .nhl-cancel-btn-danger {
        width: 100%;
    }
}
