﻿/* vip_withdrawalue16 – front-end styles
 * Framework-agnostic: works on top of Classic, Hummingbird and custom themes.
 * All selectors scoped to .vip-returnsue-* to avoid collisions.
 */

/* Wrapper */
.vip-returnsue-wrap {
    max-width: 760px;
    margin: 0 auto 2rem;
}

/* Info box */
.vip-returnsue-info-box {
    background: #f4f8ff;
    border-left: 4px solid #0066cc;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.vip-returnsue-info-box p:last-child {
    margin-bottom: 0;
}

/* Step indicator */
.vip-returnsue-steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vip-step {
    padding: 0.35rem 0.9rem;
    border-radius: 3px;
    background: #e9ecef;
    color: #555;
    font-size: 0.88rem;
}

.vip-step.active {
    background: #0066cc;
    color: #fff;
    font-weight: 600;
}

.vip-step.completed {
    background: #28a745;
    color: #fff;
}

/* Forms */
.vip-returnsue-form .form-group {
    margin-bottom: 1rem;
}

.vip-returnsue-form label.required::after {
    content: " *";
    color: #cc0000;
}

/* Product list */
.vip-order-products {
    margin-bottom: 1.5rem;
}

.vip-order-products h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.vip-order-products ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

.vip-order-products li {
    padding: 0.2rem 0;
    font-size: 0.95rem;
}

/* Declaration text block */
.vip-returnsue-declaration-text {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 0.85rem 1rem;
    border-radius: 3px;
    margin-bottom: 1.25rem;
    font-style: italic;
}

/* Summary table (step 2) */
.vip-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.vip-summary-table th,
.vip-summary-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
    vertical-align: top;
}

.vip-summary-table th {
    width: 35%;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

/* Warning box before confirm button */
.vip-returnsue-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 2px;
}

/* Buttons */
.vip-btn-withdraw,
.vip-btn-confirm-withdrawal {
    margin-right: 0.5rem;
}

/* The mandatory Art. 11a confirm button – must be prominent */
.vip-btn-confirm-withdrawal {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
}

/* Success */
.vip-returnsue-success .alert-success {
    padding: 1.25rem;
}

/* Hook – footer link */
.vip-returnsue-footer-link {
    list-style: none;
    margin: 0.25rem 0;
}

/* Hook – customer account link */
.vip-returnsue-account-link {
    margin: 0.5rem 0;
}

.vip-returnsue-account-link .vip-withdrawal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
}

/* Product selection table */
.vip-product-selection {
    margin-bottom: 1.75rem;
}

.vip-product-selection h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.vip-product-hint {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.85rem;
}

.vip-product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
}

.vip-product-table th,
.vip-product-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.vip-product-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.88rem;
    color: #555;
    border-bottom: 2px solid #dee2e6;
}

.vip-col-check {
    width: 50px;
    text-align: center;
}

.vip-col-thumb {
    width: 56px;
    text-align: center;
    padding: 4px !important;
}

.vip-product-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    background: #fff;
    display: block;
    margin: 0 auto;
}

.vip-col-ordered {
    width: 80px;
}

.vip-col-qty {
    width: 120px;
}

.vip-qty-input {
    width: 80px;
    text-align: center;
    display: inline-block;
}

.vip-product-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.vip-product-label {
    cursor: pointer;
    margin-bottom: 0;
    font-weight: normal;
}

.vip-ref {
    color: #888;
    margin-left: 0.25rem;
}

.vip-attrs {
    color: #666;
}

.vip-product-row.vip-row-unchecked td {
    opacity: 0.45;
}

.vip-product-row.vip-row-unchecked .vip-product-checkbox {
    opacity: 1;
}

/* Confirmation – products to return table */
.vip-products-heading {
    font-size: 0.95rem;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.vip-summary-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.vip-summary-products-table th,
.vip-summary-products-table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.vip-summary-products-table thead th {
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
    background: #f8f9fa;
}

@media (max-width: 575px) {
    .vip-col-ordered { display: none; }
    .vip-qty-input { width: 65px; }
}
    .vip-summary-table th {
        width: 40%;
        font-size: 0.85rem;
    }
    .vip-btn-confirm-withdrawal {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .vip-btn-cancel {
        width: 100%;
    }
}

/* ---- Withdrawal deadline countdown ---- */
.vip-deadline-box { border-radius: 6px; font-size: .95rem; }
.vip-deadline-urgent { border-left: 4px solid #e2a03f; }
.vip-deadline-last   { border-left: 4px solid #e74c3c; font-size: 1rem; }

/* ---- Custom confirmation modal ---- */
.vip-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.vip-modal-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,.22);
    max-width: 420px;
    width: 100%;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    animation: vipModalIn .18s ease;
}
@keyframes vipModalIn {
    from { transform: scale(.92); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.vip-modal-icon {
    font-size: 2.8rem;
    color: #e74c3c;
    line-height: 1;
    margin-bottom: .5rem;
}
.vip-modal-box h3 {
    margin: 0 0 .6rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
}
.vip-modal-box p {
    color: #555;
    font-size: .95rem;
    margin-bottom: 1.4rem;
}
.vip-modal-buttons {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.vip-modal-buttons .btn {
    min-width: 130px;
    font-weight: 600;
}

/* ---- Return reason chip buttons ---- */
.vip-reasons-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 8px;
    margin: 8px 0 4px;
}

.vip-reason-label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    border: 1.5px solid #d0d3d8;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.875rem;
    background: #fff;
    color: #333;
    margin-bottom: 0;
    min-height: 44px;
    user-select: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.vip-reason-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.vip-reason-label:hover {
    border-color: #0066cc;
    background: #f0f6ff;
    color: #0044aa;
}

.vip-reason-label--active {
    border-color: #0066cc;
    background: #f0f6ff;
    color: #0044aa;
    font-weight: 700;
}

.vip-reasons-group {
    margin-bottom: 1.25rem;
}
