.woocommerce .msd-account-returns h2,
.msd-account-returns h2 {
    margin: 0 !important;
}
.msd-return-detail-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 0.5rem;
}
.msd-account-returns .msd-return-heading {
    display: block;
    font-size: 1.15rem !important;
    font-weight: 700;
    line-height: 1.3 !important;
    margin: 16px 0 8px !important;
}
.woocommerce .msd-account-returns .msd-detail-items,
.msd-account-returns .msd-detail-items {
    margin: 0 0 4px !important;
    padding-left: 1.25em;
}
.msd-status-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
    padding: 3px 10px;
    line-height: 1.4;
    white-space: nowrap;
    vertical-align: middle;
}
.msd-status-pill-green { background: rgba(46, 158, 91, 0.12); color: #2e9e5b; }
.msd-status-pill-blue { background: rgba(66, 133, 214, 0.12); color: #4285d6; }
.msd-status-pill-red { background: rgba(217, 83, 79, 0.12); color: #d9534f; }
.msd-status-pill-yellow { background: rgba(185, 138, 0, 0.12); color: #b98a00; }
.msd-status-pill-gray { background: #eef0f3; color: #66788a; }
.msd-returns-list { display: grid; gap: 12px; }
.msd-return-card {
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}
.msd-return-card:hover { border-color: #999; }
.msd-return-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.msd-return-card strong { display: block; margin-bottom: 0; }
.msd-return-status { margin-left: 10px; font-size: 13px; color: #555; }
.msd-wizard-step { display: none; }
.msd-wizard-step.is-active { display: block; }
.msd-return-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}
.msd-return-item img { width: 56px; height: 56px; object-fit: contain; }
.msd-return-item.disabled { opacity: 0.55; }
.msd-return-item.is-protection {
    grid-template-columns: auto 1fr;
}
.msd-return-qty { width: 72px; }
.msd-fee-row, .msd-review-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}
.msd-freight-notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #f0c4c2;
    border-radius: 8px;
    background: #fdf6f6;
}
.msd-freight-notice strong {
    display: block;
    margin: 0 0 6px;
    color: #9b2c2c;
    font-size: 15px;
}
.msd-freight-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #1b242c;
}
.msd-freight-notice a {
    color: var(--primary, #0086d3);
    font-weight: 700;
}
.msd-addons {
    display: grid;
    gap: 12px;
    margin: 4px 0 18px;
}
.msd-addon {
    border: 1px solid #c5d4e3;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
}
.msd-addon.is-on {
    border-color: var(--primary, #0086d3);
    background: #f8fbfe;
}
.msd-addon-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}
.msd-addon-head input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}
.msd-addon-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.msd-addon-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1b242c;
}
.msd-addon-desc {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: #66788a;
    font-weight: 400;
}
.msd-addon-price {
    margin-left: auto;
    font-weight: 700;
    white-space: nowrap;
    color: #1b242c;
}
.msd-addon-services {
    display: grid;
    gap: 8px;
    margin: 12px 0 0 30px;
}
.msd-addon-service {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #dde6f0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}
.msd-addon-service input {
    margin: 0;
}
.msd-addon-service span {
    flex: 1;
    font-size: 14px;
    color: #1b242c;
}
.msd-addon-service strong {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.msd-addon-service:has(input:checked) {
    border-color: var(--primary, #0086d3);
    box-shadow: 0 0 0 1px var(--primary, #0086d3);
}
.msd-summary {
    margin: 8px 0 20px;
}
.msd-account-returns .msd-summary-table {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    width: 100%;
    background: #fff;
    border: 1px solid #c5d4e3;
    font-size: 15px;
    margin: 0;
}
.msd-account-returns .msd-summary-row {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
}
.msd-account-returns .msd-summary-row > * {
    padding: 12px 16px;
    border-bottom: 1px solid #c5d4e3;
    border-right: 1px solid #c5d4e3;
    color: #1b242c;
    box-sizing: border-box;
    min-width: 0;
}
.woocommerce .msd-account-returns .msd-summary-items,
.msd-account-returns .msd-summary-items {
    margin: 0 !important;
    padding-left: 1.2em !important;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
    color: #1b242c;
    list-style: decimal;
}
.woocommerce .msd-account-returns .msd-summary-items li,
.msd-account-returns .msd-summary-items li {
    margin: 0;
    padding: 0;
    overflow-wrap: anywhere;
}
.msd-account-returns .msd-summary-items li + li {
    margin-top: 4px;
}
.msd-account-returns .msd-summary-row > *:last-child {
    border-right: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.msd-account-returns .msd-summary-row:last-child > * {
    border-bottom: 0;
}
.msd-account-returns .msd-summary-head > * {
    background: #f4f8fb;
    color: #3d4f5f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
}
.msd-account-returns .msd-summary-head > *:last-child {
    text-align: right;
}
.msd-account-returns .msd-summary-row:not(.msd-summary-head):not(.msd-summary-pay):not(.msd-summary-refund) > *:nth-child(2) {
    color: #66788a;
    white-space: nowrap;
}
.msd-account-returns .msd-summary-pay .msd-summary-label,
.msd-account-returns .msd-summary-refund .msd-summary-label {
    grid-column: 1 / 3;
    text-align: right;
    font-weight: 700;
    color: inherit;
}
.msd-account-returns .msd-summary-pay > * {
    background: rgba(0, 134, 211, 0.08);
    color: var(--primary, #0086d3);
    font-weight: 700;
}
.msd-account-returns .msd-summary-refund > * {
    background: #fff;
    color: #1b242c;
    font-weight: 600;
}
.msd-staff-response {
    margin: 12px 0 16px;
    padding: 14px 16px;
    border: 1px solid #dde6f0;
    border-radius: 8px;
    background: #f8fbfe;
}
.msd-staff-response.is-decline {
    border-color: #f0c4c2;
    background: #fdf6f6;
}
.msd-staff-response .msd-return-heading {
    margin: 0 0 8px !important;
}
.msd-staff-response p {
    margin: 0;
    white-space: pre-wrap;
}
.msd-summary-note {
    margin: 12px 0 0;
    color: #66788a;
    font-size: 13px;
    line-height: 1.5;
}
.msd-label-card {
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid #dde6f0;
    border-radius: 8px;
    background: #f8fbfe;
}
.woocommerce .msd-account-returns .msd-label-card h3,
.msd-account-returns .msd-label-card h3 {
    margin: 0 0 8px !important;
    margin-block-start: 0 !important;
    margin-block-end: 8px !important;
    font-size: 1.1rem !important;
}
.msd-label-card p {
    margin: 0 0 8px;
}
.msd-label-tracking a,
.msd-label-card a:not(.button) {
    color: var(--primary, #0086d3);
    font-weight: 600;
}
.msd-label-download {
    display: inline-block;
    margin-top: 6px;
    background: var(--primary, #0086d3) !important;
    color: #fff !important;
    border: 2px solid var(--primary, #0086d3) !important;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
}
.msd-wizard-actions { margin-top: 20px; display: flex; gap: 10px; }
.msd-wizard-actions button,.msd-wizard-actions a{
    background: var(--primary) !important;
    color: #fff !important;
    border: 2px solid var(--primary) !important;
    box-shadow: 0 2px 8px rgba(0, 134, 211, 0.2) !important;

    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}
.msd-wizard-actions button:hover,.msd-wizard-actions a:hover{
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 2px 12px rgba(0, 134, 211, 0.3) !important;
    transform: translateY(-1px);
}
.msd-wizard-actions button.msd-back {
    background: #fff !important;
    color: var(--primary, #0086d3) !important;
    border: 2px solid var(--primary, #0086d3) !important;
    box-shadow: none !important;
}
.msd-wizard-actions button.msd-back:hover {
    background: #f4f8fb !important;
    color: var(--primary-dark, #006ba8) !important;
    border-color: var(--primary-dark, #006ba8) !important;
    box-shadow: none !important;
    transform: none;
}

.msd-reason{
padding: 12px;
border: 2px solid #dde6f0;
border-radius: 3px;
transition: border-color 150ms ease, box-shadow 150ms ease;
}
.msd-reason:focus,.msd-notes:focus,.msd-notes:focus-visible{
    border-color: #0086d3 !important;
    box-shadow: 0 0 0 3px rgba(0,134,211,0.12);
    transition: border-color 150ms ease, box-shadow 150ms ease;

}
.msd-notes{
    width: 100%;
    padding: 12px;
border: 2px solid #dde6f0;
border-radius: 3px;
transition: border-color 150ms ease, box-shadow 150ms ease;
}
.msd-return-error { color: #b32d2e; margin: 8px 0; }
.msd-token-list label { display: block; margin: 8px 0; }
.msd-order-followup-actions {
    margin: 1.5em 0 0;
}
.msd-order-followup-actions .order-again {
    margin: 0 0 12px;
}
.msd-return-order-action { margin: 0 0 8px; }
.msd-return-order-action a.button{
    background: var(--primary, #5bc0de);
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    margin: 0;
    text-align: center;
}
.msd-return-order-action a.button:hover{
    background: var(--primary-dark, #5bc0de) !important;
    
}