/* SWC Retractation - Frontend CSS */
.swc-ret-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.swc-ret-intro {
    background: #f8f9fa;
    border-left: 4px solid #1a3b5d;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

.swc-ret-intro p {
    margin: 0;
    color: #333;
}

.swc-ret-step {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.swc-ret-step h3 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #1a3b5d;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.swc-ret-step h3 .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #1a3b5d;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
}

.swc-ret-field {
    margin-bottom: 20px;
}

.swc-ret-field:last-child {
    margin-bottom: 0;
}

.swc-ret-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.swc-ret-field .required {
    color: #c0392b;
}

.swc-ret-field input[type="text"],
.swc-ret-field input[type="email"],
.swc-ret-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.swc-ret-field input:focus,
.swc-ret-field textarea:focus {
    outline: none;
    border-color: #1a3b5d;
    box-shadow: 0 0 0 3px rgba(26, 59, 93, 0.1);
}

.swc-ret-checkbox {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.swc-ret-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.swc-ret-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.swc-ret-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #1a3b5d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.swc-ret-btn:hover {
    background: #2a4d73;
}

.swc-ret-btn-confirm {
    background: #27ae60;
}

.swc-ret-btn-confirm:hover {
    background: #219a52;
}

.swc-ret-btn-back {
    background: #95a5a6;
    margin-left: 10px;
}

.swc-ret-btn-back:hover {
    background: #7f8c8d;
}

.swc-ret-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.swc-ret-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.swc-ret-message.error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.swc-ret-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.swc-ret-order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.swc-ret-order-summary h4 {
    margin: 0 0 10px 0;
    color: #1a3b5d;
}

.swc-ret-order-summary ul {
    margin: 10px 0;
    padding-left: 20px;
}

.swc-ret-order-summary .order-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.swc-ret-order-summary .order-meta span {
    font-size: 14px;
}

.swc-ret-order-summary .order-meta strong {
    color: #333;
}

/* Success state */
.swc-ret-success {
    text-align: center;
    padding: 40px 20px;
}

.swc-ret-success .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #27ae60;
    margin-bottom: 20px;
}

.swc-ret-success h3 {
    border: none;
    padding: 0;
    justify-content: center;
}

/* Footer link */
.swc-ret-footer-link {
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

.swc-ret-footer-link a {
    color: #666;
    text-decoration: underline;
}

.swc-ret-footer-link a:hover {
    color: #1a3b5d;
}

/* Loading state */
.swc-ret-loading {
    position: relative;
    pointer-events: none;
}

.swc-ret-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
    .swc-ret-container {
        padding: 10px;
    }

    .swc-ret-step {
        padding: 20px 15px;
    }

    .swc-ret-order-summary .order-meta {
        grid-template-columns: 1fr;
    }

    .swc-ret-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .swc-ret-btn-back {
        margin-left: 0;
    }
}
