.aj-rre-account-wrap { display: grid; grid-template-columns: 1fr; gap: 30px; }
.aj-rre-new-request, .aj-rre-history { background: #fafafa; border: 1px solid #e2e2e2; border-radius: 6px; padding: 20px; }
.aj-rre-new-request select, .aj-rre-new-request input[type="number"], .aj-rre-textarea { width: 100%; max-width: 420px; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }

.aj-rre-item-card { display: flex; gap: 12px; align-items: center; border: 1px solid #e2e2e2; border-radius: 6px; padding: 12px; margin-bottom: 10px; background: #fff; cursor: pointer; transition: border-color .15s; }
.aj-rre-item-card:hover { border-color: #999; }
.aj-rre-item-card.is-selected { border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; }
.aj-rre-item-card.is-blocked { opacity: .55; cursor: not-allowed; }
.aj-rre-item-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.aj-rre-item-meta { flex: 1; }
.aj-rre-item-meta .name { font-weight: 600; }
.aj-rre-item-meta .blocked-reason { color: #a72b2b; font-size: 12px; }
.aj-rre-item-flags span { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-right: 4px; background: #eee; }
.aj-rre-flag-warranty { background: #f2e6ff !important; color: #6b21a8; }

.aj-rre-status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.aj-rre-status-pending { background: #fcf0da; color: #94660c; }
.aj-rre-status-approved { background: #e0efff; color: #2271b1; }
.aj-rre-status-processing { background: #f0f0f1; color: #50575e; }
.aj-rre-status-received { background: #e8f5e9; color: #146c2e; }
.aj-rre-status-completed { background: #e6f6e9; color: #00762e; }
.aj-rre-status-rejected { background: #fbeaea; color: #a72b2b; }
.aj-rre-status-cancelled { background: #f0f0f1; color: #646970; }
.aj-rre-badge { display: inline-block; background: #f2e6ff; color: #6b21a8; font-size: 11px; padding: 1px 8px; border-radius: 10px; margin-left: 4px; }

.aj-rre-table { width: 100%; border-collapse: collapse; }
.aj-rre-table th, .aj-rre-table td { padding: 8px; border-bottom: 1px solid #eee; text-align: left; }

.aj-rre-form-msg { margin-left: 10px; font-size: 13px; }
.aj-rre-form-msg.success { color: #00762e; }
.aj-rre-form-msg.error { color: #a72b2b; }

.aj-rre-order-panel { margin-top: 30px; padding-top: 20px; border-top: 1px solid #e2e2e2; }
.aj-rre-request-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.aj-rre-request-card { border: 1px solid #e2e2e2; border-radius: 6px; padding: 14px; background: #fafafa; }
.aj-rre-request-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.aj-rre-request-card-meta { color: #666; font-size: 13px; margin-top: 4px; }
.aj-rre-note { color: #a72b2b; }
.aj-rre-complete { color: #00762e; font-weight: 600; }
.aj-rre-payout-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #ccc; }
.aj-rre-payout-form select, .aj-rre-payout-form input[type="tel"] { padding: 8px; border: 1px solid #ccc; border-radius: 4px; width: 100%; max-width: 320px; }

/* Scoped controls: match the compact WooCommerce order action buttons. */
.woocommerce-account a.button.aj_rre_return,
.woocommerce-account a.button[href*="#aj-rre-return"],
html body.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button[href*="aj-rre-return"] { background-color: #ff0000 !important; background-image: none !important; border-color: #ff0000 !important; color: #fff !important; }
.woocommerce-account a.button.aj_rre_return:hover,
.woocommerce-account a.button[href*="#aj-rre-return"]:hover,
html body.woocommerce-account .woocommerce-orders-table__cell-order-actions a.button[href*="aj-rre-return"]:hover { background: #000 !important; border-color: #000 !important; color: #fff !important; }

#aj-rre-exchange-picker #aj-rre-exchange-search { display: inline-block; margin: 10px 10px 10px 0 !important; vertical-align: middle; }
#aj-rre-exchange-picker #aj-rre-exchange-search-btn,
#aj-rre-exchange-picker button[type="button"] { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: auto !important; min-width: 142px !important; height: 48px !important; min-height: 48px !important; padding: 0 22px !important; line-height: 1 !important; border-radius: 999px !important; vertical-align: middle; background: #000 !important; border-color: #000 !important; color: #fff !important; }

#aj-rre-return .aj-rre-primary-action,
.aj-rre-account-wrap .aj-rre-primary-action { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: auto !important; min-width: 142px !important; height: 48px !important; min-height: 48px !important; padding: 0 22px !important; border-radius: 999px !important; line-height: 1 !important; font-size: 14px !important; font-weight: 600 !important; background: #000 !important; border-color: #000 !important; color: #fff !important; }
#aj-rre-return .aj-rre-primary-action:hover,
.aj-rre-account-wrap .aj-rre-primary-action:hover,
#aj-rre-exchange-picker #aj-rre-exchange-search-btn:hover { background: #000 !important; border-color: #000 !important; color: #fff !important; }

#aj-rre-exchange-picker { border: 1px dashed #ccc; border-radius: 6px; padding: 10px; margin: 10px 0; }
#aj-rre-exchange-search { padding: 8px; border: 1px solid #ccc; border-radius: 4px; width: 60%; max-width: 280px; }
.aj-rre-exchange-result { display: flex; align-items: center; gap: 8px; padding: 6px; cursor: pointer; border-bottom: 1px solid #eee; }
.aj-rre-exchange-result:hover { background: #f0f0f0; }
.aj-rre-exchange-result img { width: 32px; height: 32px; object-fit: cover; border-radius: 3px; }
#aj-rre-exchange-selected { font-weight: 600; margin-top: 6px; }
