/**
 * WC Click & Collect – Cancellation Page Styles
 * Sobreescribe estilos del tema para la página de cancelación.
 *
 * @since 1.6.0
 */

/* ─── Contenedor principal ────────────────────────────────────────── */
.wc-cc-cancel-page {
    max-width: 640px;
    margin: 40px auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    line-height: 1.6;
}

.wc-cc-cancel-page h1 {
    font-size: 1.6em;
    border-bottom: 3px solid #5f2744;
    padding-bottom: 12px;
    margin-bottom: 24px;
    color: #5f2744;
}

/* ─── Resumen del pedido ──────────────────────────────────────────── */
.wc-cc-order-summary {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin: 24px 0;
}

.wc-cc-order-summary h2 {
    margin-top: 0;
    font-size: 1.1em;
    color: #5f2744;
    margin-bottom: 12px;
}

.wc-cc-order-summary table {
    width: 100%;
    border-collapse: collapse;
}

.wc-cc-order-summary table thead tr {
    background: #5f2744;
    color: #ffffff;
}

.wc-cc-order-summary table thead th {
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
}

.wc-cc-order-summary table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.9em;
}

/* ─── Bloque informativo ──────────────────────────────────────────── */
.wc-cc-cancel-info {
    background: #fff8e1;
    border-left: 4px solid #ff9800;
    padding: 16px 20px;
    border-radius: 3px;
    margin-bottom: 24px;
}

.wc-cc-cancel-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #333;
}

.wc-cc-cancel-info ul {
    margin: 0;
    padding-left: 20px;
    color: #555555;
}

.wc-cc-cancel-info ul li {
    margin-bottom: 6px;
}

/* ─── Checkbox de confirmación ────────────────────────────────────── */
.wc-cc-cancel-page form label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 24px;
    font-size: 0.95em;
    color: #444;
}

.wc-cc-cancel-page form label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #5f2744;
    cursor: pointer;
}

/* ─── Botones ─────────────────────────────────────────────────────── */
.wc-cc-cancel-page .wc-cc-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.wc-cc-cancel-page button[type="submit"] {
    padding: 14px 28px;
    background: #5f2744;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

.wc-cc-cancel-page button[type="submit"]:hover {
    background: #7a3359;
}

.wc-cc-cancel-page .wc-cc-back-link {
    display: inline-block;
    padding: 14px 16px;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.wc-cc-cancel-page .wc-cc-back-link:hover {
    color: #5f2744;
}

/* ─── Mensajes de resultado ───────────────────────────────────────── */
.wc-cc-cancel-message {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
}

.wc-cc-cancel-message h2 {
    margin-top: 0;
    color: #333333;
    font-size: 1.4em;
}

.wc-cc-cancel-message p {
    color: #555555;
    line-height: 1.6;
}

.wc-cc-cancel-message a {
    font-weight: 600;
    text-decoration: none;
}

.wc-cc-cancel-message a:hover {
    text-decoration: underline;
}

.wc-cc-cancel-success {
    background: #edf7ed;
    border-left: 5px solid #4caf50;
}

.wc-cc-cancel-error {
    background: #fdecea;
    border-left: 5px solid #f44336;
}

.wc-cc-cancel-warning {
    background: #fff8e1;
    border-left: 5px solid #ff9800;
}

.wc-cc-cancel-info-msg {
    background: #e8f4fd;
    border-left: 5px solid #2196f3;
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .wc-cc-cancel-page,
    .wc-cc-cancel-message {
        margin: 20px;
        padding: 20px;
    }

    .wc-cc-cancel-page h1 {
        font-size: 1.3em;
    }

    .wc-cc-cancel-page .wc-cc-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wc-cc-cancel-page button[type="submit"],
    .wc-cc-cancel-page .wc-cc-back-link {
        text-align: center;
        width: 100%;
    }
}
