/* WC One Click Return — Front-end styles */

/* Shared wrapper */
.ocr-guest-verify,
.ocr-return-form,
.ocr-confirmation {
    max-width: 680px;
}

/* Form rows */
.ocr-form .form-row {
    margin-bottom: 1.2em;
}

.ocr-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.ocr-form .description {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

/* Submit button — inherits WooCommerce button styles; add spacing */
.ocr-submit-btn {
    margin-top: 0.5em;
}

/* Return form: item list */
.ocr-item-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em;
}

.ocr-item-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ocr-item-list li:last-child {
    border-bottom: none;
}

.ocr-item-list .ocr-item-name {
    flex: 1;
    font-weight: 500;
}

.ocr-item-list .ocr-item-price {
    color: #666;
    white-space: nowrap;
}

.ocr-item-list .ocr-qty-input {
    width: 60px;
    text-align: center;
}

/* Confirmation page */
.ocr-confirmation h2 {
    margin-bottom: 0.5em;
}

.ocr-confirmation .ocr-confirm-meta {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 1.5em;
}

.ocr-confirmation .ocr-confirm-meta p {
    margin: 0.4em 0;
}

.ocr-confirmation .ocr-confirm-meta strong {
    display: inline-block;
    min-width: 180px;
}

.ocr-confirmation table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

.ocr-confirmation table th,
.ocr-confirmation table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.ocr-confirmation table th {
    background: #f1f1f1;
    font-weight: 600;
}

.ocr-confirmation .ocr-legal-box {
    background: #fff8e1;
    border-left: 4px solid #f0b849;
    padding: 12px 16px;
    margin-bottom: 1em;
    font-size: 0.9em;
}

/* Error / success notices — fall back to WooCommerce notice classes */
.ocr-error {
    color: #b32d2e;
}

/* Confirmation banner */
.ocr-confirm-banner {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 14px 18px;
    margin-bottom: 1.5em;
    font-size: 1.05em;
}

/* Confirmation meta block */
.ocr-confirm-meta {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 1.5em;
}
.ocr-confirm-meta p {
    margin: 0.4em 0;
}

/* Items table alignment helpers */
.ocr-items-table .ocr-td-center { text-align: center; }
.ocr-items-table .ocr-td-right  { text-align: right; }
.ocr-items-table tfoot th,
.ocr-items-table tfoot td {
    border-top: 2px solid #ccc;
    font-weight: 600;
}

/* Legal disclosure boxes */
.ocr-legal-section {
    margin: 1.5em 0;
}
.ocr-legal-box {
    background: #fff8e1;
    border-left: 4px solid #f0b849;
    padding: 12px 16px;
    margin-bottom: 1em;
    font-size: 0.92em;
}
.ocr-legal-box p {
    margin: 0.3em 0;
}
.ocr-legal-box address {
    font-style: normal;
    white-space: pre-line;
    margin-top: 4px;
}

/* Footer note */
.ocr-confirm-footer {
    color: #555;
    font-size: 0.9em;
    margin-top: 1.5em;
    border-top: 1px solid #eee;
    padding-top: 1em;
}

/* Order-detail page button */
.ocr-order-btn {
    margin-top: 1em;
}
.ocr-btn-disabled {
    color: #888;
    font-style: italic;
}
.ocr-withdraw-btn {
    background-color: #c00;
    color: #fff;
    border-color: #c00;
}
.ocr-withdraw-btn:hover {
    background-color: #a00;
    border-color: #a00;
    color: #fff;
}
