/* Beyond Order Returns 1.0.1 — storefront styles stay inside add-on components. */
html body .bpsr-box,
html body .bpsr-product-link {
    --bpsr-brand: #155f51;
    --bpsr-hover: #104a40;
    --bpsr-ink: #20372e;
    --bpsr-muted: #52685e;
    --bpsr-line: #dce5e0;
    color: var(--bpsr-ink);
    font: 400 15px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}
html body .bpsr-box {
    margin: 32px 0;
    padding: 26px;
    border: 1px solid var(--bpsr-line);
    border-radius: 0;
    background: #fff;
    scroll-margin-top: 110px;
}
.bpsr-box *, .bpsr-box *::before, .bpsr-box *::after,
.bpsr-product-link * { box-sizing: border-box; }
.bpsr-box h2 { font: 400 clamp(24px,3vw,32px)/1.25 Georgia,serif; margin: 8px 0 14px; color: inherit; }
.bpsr-box h3 { font: 600 17px/1.4 system-ui,sans-serif; margin: 0; color: inherit; }
.bpsr-box p { margin: 0 0 16px; }
.bpsr-heading { margin: 0 0 20px; padding: 0; position: static; background: transparent; border: 0; }
.bpsr-kicker { font-size: 11px; letter-spacing: .12em; }
html body .bpsr-box a, html body .bpsr-product-link a {
    color: var(--bpsr-brand);
    -webkit-text-fill-color: currentColor;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
html body .bpsr-box a:hover, html body .bpsr-product-link a:hover { color: var(--bpsr-hover); text-decoration-thickness: 2px; }
html body .bpsr-box .bpsr-button,
html body .woocommerce-orders-table a.bpsr-return {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    align-self: start;
    position: static;
    float: none;
    width: auto;
    min-width: 0;
    max-width: 100%;
    min-height: 46px;
    height: auto;
    margin: 0;
    padding: 12px 20px;
    border: 1px solid #155f51;
    border-radius: 0 !important;
    background: #155f51;
    background-image: none;
    color: #fff !important;
    -webkit-text-fill-color: currentColor;
    font: 600 14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;
    letter-spacing: .01em;
    text-transform: none;
    text-align: center;
    text-decoration: none !important;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: none;
    text-shadow: none;
    transform: none;
    cursor: pointer;
    vertical-align: middle;
    box-sizing: border-box;
    transition: background-color .15s ease, border-color .15s ease;
}
html body .bpsr-box .bpsr-button:not(:disabled):not([aria-disabled="true"]):hover,
html body .woocommerce-orders-table a.bpsr-return:not([aria-disabled="true"]):hover {
    background: #104a40;
    border-color: #104a40;
    color: #fff !important;
    transform: none;
    box-shadow: none;
}
html body .bpsr-box .bpsr-button:not(:disabled):active,
html body .woocommerce-orders-table a.bpsr-return:active { background: #0c3b33; border-color: #0c3b33; }
html body .bpsr-box .bpsr-button:disabled,
html body .bpsr-box .bpsr-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; background: #155f51; border-color: #155f51; }
html body .bpsr-box a[aria-disabled="true"] { pointer-events: none; }
html body .bpsr-box :is(a,button,input,select,textarea):focus-visible,
html body .bpsr-product-link a:focus-visible,
html body .woocommerce-orders-table a.bpsr-return:focus-visible { outline: 2px solid #155f51; outline-offset: 4px; }
.bpsr-alert { padding: 14px 16px; border-left: 3px solid var(--bpsr-brand); background: #f2f7f4; }
.bpsr-error { border-left-color: #a12b2b; }
.bpsr-form { display: grid; gap: 20px; margin: 24px 0 0; padding: 0; min-width: 0; }
.bpsr-form fieldset { padding: 0; border: 0; min-width: 0; margin: 0; }
.bpsr-form legend { font-size: 15px; line-height: 1.5; font-weight: 600; margin-bottom: 12px; padding: 0; }
.bpsr-form > label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; margin: 0; }
html body .bpsr-form :is(select,textarea,input[type="number"]) {
    display: block;
    position: static;
    font: 400 16px/1.5 system-ui,sans-serif;
    border: 1px solid #8fa79b;
    border-radius: 0 !important;
    background: #fff;
    color: #20372e;
    -webkit-text-fill-color: currentColor;
    min-height: 46px;
    height: auto;
    padding: 10px 12px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-shadow: none;
    box-sizing: border-box;
}
html body .bpsr-form select { padding-right: 30px; }
html body .bpsr-form textarea { resize: vertical; min-height: 124px; }
html body .bpsr-form :is(select,textarea,input[type="number"]):hover { border-color: #52685e; }
html body .bpsr-form :is(select,textarea,input[type="number"]):focus { border-color: #155f51; }
html body .bpsr-form :is(select,textarea,input[type="number"]):disabled { background: #f2f5f3; color: #52685e; cursor: not-allowed; }
html body .bpsr-form .bpsr-check { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.65; font-weight: 400; padding-block: 8px; min-height: 44px; cursor: pointer; }
html body .bpsr-box .bpsr-check input[type="checkbox"] {
    appearance: auto !important;
    position: static !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex: 0 0 20px;
    padding: 0 !important;
    margin: 2px 0 0 !important;
    border-radius: 0;
    transform: none;
    box-shadow: none;
    accent-color: #155f51;
    cursor: pointer;
}
.bpsr-check span { flex: 1; min-width: 0; }
.bpsr-items { display: grid; gap: 12px; }
.bpsr-item { display: grid; grid-template-columns: 64px minmax(0,1fr) 120px; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--bpsr-line); min-width: 0; }
.bpsr-image { width: 64px; min-height: 80px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bpsr-line); padding: 3px; }
.bpsr-image img { display: block; width: 100%; height: 80px; object-fit: contain; margin: 0; }
.bpsr-image span { font-size: 10px; text-align: center; }
.bpsr-item strong { display: block; overflow-wrap: anywhere; }
.bpsr-item > div { min-width: 0; }
.bpsr-item label { display: grid; gap: 6px; font-size: 12px; margin: 0; }
.bpsr-muted { display: block; font-size: 12px; line-height: 1.6; color: #52685e; }
.bpsr-item .wc-item-meta { padding-left: 16px; margin: 6px 0; font-size: 12px; }
.bpsr-request { margin: 22px 0; padding: 20px; border: 1px solid var(--bpsr-line); scroll-margin-top: 110px; min-width: 0; }
.bpsr-request-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.bpsr-badge { padding: 6px 10px; max-width: 100%; background: #eaf3ef; color: #155f51; font-size: 12px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.bpsr-timeline { border-left: 2px solid var(--bpsr-line); padding-left: 22px; margin: 20px 0 0; }
.bpsr-timeline li { padding: 0 0 14px 4px; }
.bpsr-timeline time { display: block; font-size: 11px; color: #52685e; }
.bpsr-timeline strong { font-size: 13px; }
.bpsr-timeline p { font-size: 13px; margin: 6px 0; }
.bpsr-request-links { list-style: none; padding: 0 !important; margin: 20px 0 0; }
.bpsr-request-links li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--bpsr-line); }
.bpsr-request-links span { font-size: 12px; }
html body .bpsr-product-link { display: grid; gap: 8px; margin: 18px 0; font-size: 13px; }
.bpsr-product-link a { display: inline-block; justify-self: start; padding-block: 5px; }
.bpsr-optional { font-size: 13px; margin-top: 20px; }
@media (max-width: 600px) {
    html body .bpsr-box { padding: 16px; margin-block: 24px; }
    .bpsr-item { grid-template-columns: 52px minmax(0,1fr); gap: 12px; padding: 12px; }
    .bpsr-image { width: 52px; }
    .bpsr-item > label { grid-column: 2; }
    html body .bpsr-item input[type="number"] { max-width: 120px; }
    .bpsr-request { padding: 14px; }
    html body .bpsr-box .bpsr-button { width: 100%; justify-self: stretch; }
    .bpsr-request-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    html body .bpsr-box *, html body .bpsr-product-link * { transition: none !important; }
}
@media (forced-colors: active) {
    html body .bpsr-box .bpsr-button { border-color: ButtonText; forced-color-adjust: auto; }
}
