/**
 * BOW Cancellation Manager - Frontend Styles
 * Mobile-first responsive design matching BOW.com theme
 */

/* Prevent cart drawer conflicts */
.bow-cancel-page .drawer,
.bow-cancel-page .cart-drawer,
.bow-cancel-page .mini-cart-wrapper {
    display: none !important;
}

.bow-cancel-page .woocommerce-overlay,
.bow-cancel-page .blockUI {
    display: none !important;
}

/* Container - force full-width centered layout, escape theme column constraints */
.bow-cancel-container,
body .entry-content .bow-cancel-container,
body .site-main .bow-cancel-container,
body .ast-container .bow-cancel-container,
body .elementor .bow-cancel-container,
body .elementor-section .bow-cancel-container {
    width: 100% !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px;
    float: none !important;
    left: auto !important;
    right: auto !important;
    position: relative;
    flex: 1 1 100% !important; /* prevent flex-shrink inside ast-container */
    z-index: 1;
}

/* Fallback: if container ends up as a direct flex child of ast-container,
   force it to span the row and hide the empty article column */
.ast-container > .bow-cancel-container {
    width: 100% !important;
    max-width: 900px !important;
}

.ast-container:has(> .bow-cancel-container) > #primary {
    display: none !important;
}

@media (min-width: 768px) {
    .bow-cancel-container {
        padding: 40px 20px;
    }
}

/* Page Header */
.bow-cancel-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Progress Indicator */
.bow-progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px 0;
}

.bow-progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #999;
}

.bow-progress-step.active {
    color: #0073aa;
}

.bow-progress-step.complete {
    color: #28a745;
}

.bow-progress-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.bow-progress-step.active .bow-progress-number {
    background: #0073aa;
    color: #fff;
}

.bow-progress-step.complete .bow-progress-number {
    background: #28a745;
    color: #fff;
}

.bow-progress-separator {
    width: 40px;
    height: 2px;
    background: #e0e0e0;
}

@media (max-width: 767px) {
    .bow-progress-step-text {
        font-size: 12px;
    }

    .bow-progress-separator {
        width: 20px;
    }

    .bow-progress-indicator {
        gap: 8px;
    }
}

.bow-cancel-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.bow-cancel-header .subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

@media (min-width: 768px) {
    .bow-cancel-header h1 {
        font-size: 36px;
    }

    .bow-cancel-header .subtitle {
        font-size: 18px;
    }
}

/* Lookup Grid (Two Column Layout) */
.bow-cancel-lookup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .bow-cancel-lookup-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: stretch;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1025px) {
    .bow-cancel-lookup-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: stretch;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile: stack cards, full width, comfortable padding */
@media (max-width: 767px) {
    .bow-cancel-container {
        padding: 16px !important;
    }

    .bow-cancel-lookup-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        max-width: 100% !important;
    }

    .bow-lookup-card {
        padding: 20px;
    }

    .bow-cancel-header h1 {
        font-size: 24px;
    }

    /* Smaller heading sizes on mobile so they don't overflow narrow cards */
    #bow-logged-in-section h2,
    .bow-lookup-card h2 {
        font-size: 20px !important;
        line-height: 1.3;
    }
}

.bow-lookup-column {
    display: flex;
}

/* Lookup Cards */
.bow-lookup-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* Green accent for logged-in card */
#bow-logged-in-section .bow-lookup-card,
.bow-lookup-card:has(#bow-logged-in-section) {
    border-left: 4px solid #28a745;
}

.bow-lookup-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bow-lookup-card .card-icon {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: #f0f8ff;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bow-lookup-card .card-icon svg {
    color: #0073aa;
}

.bow-lookup-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.bow-lookup-card p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.bow-input,
.bow-select,
.bow-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #fff;
    position: relative;
    z-index: 1;
}

.bow-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding: 10px 40px 10px 12px;
    line-height: 1.4;
    min-height: 44px;
}

.bow-input:focus,
.bow-select:focus,
.bow-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
    z-index: 10;
}

/* Ensure form sections don't clip dropdown */
.bow-form-section {
    overflow: visible;
    position: relative;
    z-index: auto;
}

.bow-textarea {
    resize: vertical;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background: #f9f9f9;
    border-color: #0073aa;
}

.radio-label input[type="radio"] {
    margin-right: 10px;
}

/* Buttons */
.bow-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .bow-btn {
        width: auto;
        min-width: 180px;
    }
}

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

.bow-btn-primary:hover {
    background: #005a87;
}

.bow-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.bow-btn-secondary:hover {
    background: #e9e9e9;
}

.bow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.error-message ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

/* Orders List */
#bow-orders-list {
    margin-top: 20px;
    text-align: left;
}

.order-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-item:hover {
    background: #fff;
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-item-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.order-item-details {
    font-size: 13px;
    color: #666;
}

/* Policy Box */
.bow-cancel-policy-box {
    background: #f0f8ff;
    border: 1px solid #b3d9f2;
    border-radius: 8px;
    padding: 25px;
    margin-top: 40px;
}

.bow-cancel-policy-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0073aa;
    margin: 0 0 15px 0;
}

.bow-cancel-policy-box ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.bow-cancel-policy-box li {
    margin-bottom: 8px;
    color: #333;
    line-height: 1.6;
}

/* Order Summary Header */
.bow-order-summary-header {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.summary-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .summary-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-item .label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.summary-item .value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Eligibility Badge */
.bow-eligibility-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bow-eligibility-eligible {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.bow-eligibility-ineligible {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.bow-eligibility-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.bow-eligibility-badge .badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.bow-eligibility-badge .badge-content {
    flex: 1;
}

.bow-eligibility-badge .badge-text {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
}

.bow-eligibility-badge .badge-detail {
    font-size: 14px;
    color: #666;
}

/* Store Credit Notice */
.bow-store-credit-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 30px;
}

.bow-store-credit-notice .notice-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bow-store-credit-notice .notice-icon svg {
    color: #fff;
}

.bow-store-credit-notice .notice-content {
    flex: 1;
}

.bow-store-credit-notice .notice-content strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #856404;
    margin-bottom: 5px;
}

.bow-store-credit-notice .notice-content p {
    font-size: 14px;
    color: #856404;
    margin: 0;
    line-height: 1.5;
}

/* Form Sections */
.bow-form-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    overflow: visible;
    position: relative;
}

.bow-form-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.bow-form-section .section-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

/* Items List */
.bow-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bow-item-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.bow-item-row.selected {
    opacity: 1;
    background: #fff;
    border-color: #0066cc;
}

@media (min-width: 768px) {
    .bow-item-row {
        grid-template-columns: auto 2fr 120px 100px;
    }
}

.bow-item-row.non-returnable {
    opacity: 0.6;
    background: #f5f5f5;
}

.item-select {
    display: flex;
    align-items: center;
}

.item-select input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-name label {
    font-weight: 600;
    color: #333;
    cursor: pointer;
    font-size: 14px;
}

.item-sku {
    font-size: 12px;
    color: #999;
}

.item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.bow-item-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

.bow-badge-hazmat {
    background: #fff3cd;
    color: #856404;
}

.bow-badge-non-returnable {
    background: #f8d7da;
    color: #721c24;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 110px;
}

.item-quantity-input {
    width: 60px;
    min-width: 0;
    flex-shrink: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.item-quantity-input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.quantity-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 40px;
}

.quantity-display {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.item-price {
    font-size: 16px;
    font-weight: 700;
    color: #0073aa;
    text-align: right;
}

/* Resolution Options */
.bow-resolution-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .bow-resolution-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.resolution-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resolution-option:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.resolution-option input[type="radio"] {
    margin-top: 4px;
    margin-right: 12px;
}

.resolution-option input[type="radio"]:checked + .resolution-content {
    color: #0073aa;
}

.resolution-option input[type="radio"]:checked ~ {
    border-color: #0073aa;
    background: #f0f8ff;
}

.resolution-content {
    flex: 1;
}

.resolution-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.resolution-bonus {
    font-size: 12px;
    color: #0073aa;
    font-weight: 600;
}

/* Form Actions */
.bow-form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .bow-form-actions {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* What Happens Next - Card styling */
.bow-cancel-instructions {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.bow-cancel-instructions h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bow-cancel-instructions h2::before {
    content: "ℹ️";
    font-size: 24px;
}

.bow-cancel-instructions ol {
    margin: 15px 0 0 0;
    padding-left: 20px;
}

.bow-cancel-instructions li {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
}

/* Return Instructions */
.bow-return-instructions {
    background: #f0f8ff;
    border: 1px solid #b3d9f2;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.bow-return-instructions h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
    margin: 0 0 15px 0;
}

.bow-return-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.bow-return-instructions li {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
}

/* Success Modal */
.bow-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.modal-header {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header .success-icon {
    margin: 0 auto 15px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    margin: 0 0 15px 0;
    color: #666;
}

.rma-number-display {
    background: #f0f8ff;
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #0073aa;
    letter-spacing: 2px;
    margin: 20px 0;
}

.modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Loading State */
.bow-btn.loading {
    position: relative;
    color: transparent;
}

.bow-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Shipping Instructions Note (under dropdown) */
.shipping-instructions-note {
    padding: 12px 15px;
    border-radius: 6px;
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    font-size: 14px;
    line-height: 1.6;
}

#label-instructions {
    color: #004085;
}

#self-ship-instructions {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 12px 15px;
    border-radius: 6px;
}

/* Disabled Resolution Option */
.resolution-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.resolution-option.disabled input[type="radio"] {
    cursor: not-allowed;
}

.resolution-option.disabled .resolution-content {
    color: #999;
}

/* Ineligible Order Item */
.order-item-ineligible {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: #f5f5f5 !important;
    border-color: #ccc !important;
}

.order-item-ineligible:hover {
    box-shadow: none !important;
    transform: none !important;
}

.ineligible-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
}

.eligible-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Printable RMA Confirmation Page */
.rma-confirmation-page {
    max-width: 800px;
    margin: 0 auto;
    background: white;
}

.rma-section {
    padding: 30px;
    margin-bottom: 20px;
}

.rma-section.customer-copy {
    border-bottom: none;
}

.rma-section.packing-slip {
    border-top: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.section-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.section-header .bow-logo {
    font-size: 28px;
    font-weight: 900;
    color: #0066cc;
    letter-spacing: 1px;
}

.section-header .instruction {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin: 5px 0 0 0;
}

.success-message {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 25px;
}

.success-message .success-icon {
    display: block;
    margin: 0 auto 15px;
}

.success-message h3 {
    margin: 0;
    font-size: 22px;
    color: #5cb85c;
    font-weight: 600;
}

.rma-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 15px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    color: #555;
}

.rma-number-large {
    font-size: 20px;
    font-weight: 700;
    color: #0066cc;
    letter-spacing: 1px;
}

.return-instructions {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 4px;
}

.return-instructions h4 {
    margin-top: 0;
    color: #856404;
    font-size: 16px;
}

.return-instructions ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.return-instructions li {
    margin-bottom: 8px;
    color: #856404;
}

.perforation-line {
    text-align: center;
    padding: 20px 0;
    border-top: 2px dashed #999;
    border-bottom: 2px dashed #999;
    margin: 0 30px;
    color: #999;
    font-weight: 600;
    letter-spacing: 2px;
}

.return-address {
    margin-bottom: 25px;
}

.return-address h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.address-box {
    background: #fff;
    border: 2px solid #333;
    padding: 15px;
    border-radius: 4px;
    line-height: 1.8;
    font-size: 15px;
}

.barcode-placeholder {
    margin-top: 25px;
}

/* Print Styles */
@media print {
    /* Hide everything except the modal content */
    body * {
        visibility: hidden;
    }

    .bow-modal,
    .bow-modal * {
        visibility: visible;
    }

    .bow-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white !important;
    }

    .rma-confirmation-page {
        max-width: 100%;
        box-shadow: none !important;
    }

    /* Hide elements marked as no-print */
    .no-print {
        display: none !important;
    }

    /* Ensure sections are on the same page */
    .rma-section {
        page-break-inside: avoid;
    }

    /* Force perforation line to stay between sections */
    .perforation-line {
        page-break-before: avoid;
        page-break-after: avoid;
    }

    .rma-section.packing-slip {
        page-break-before: avoid;
    }

    /* Optimize spacing for print */
    .rma-section {
        padding: 20px;
        margin-bottom: 0;
    }

    /* Make barcode more prominent */
    .barcode-placeholder div {
        border: 3px solid #000 !important;
        padding: 15px !important;
    }
}
