/* Delhivery B2C Pro – Returns (Customer My Account) */

.dbf2c-return-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid #f0f4fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.dbf2c-return-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
}
.dbf2c-return-intro {
    font-size: 13px;
    color: #555;
    margin: 0 0 12px;
}

/* Eligible items list */
.dbf2c-return-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.dbf2c-return-item {
    background: #f8fafd;
    border: 1px solid #e4eaf3;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dbf2c-ret-name {
    font-weight: 700;
    font-size: 13px;
    color: #1a1a2e;
}
.dbf2c-ret-meta {
    font-size: 12px;
    color: #6b7a8d;
}

/* Reason select */
.dbf2c-return-reason-wrap {
    margin-bottom: 14px;
}
.dbf2c-ret-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 6px;
}
.dbf2c-return-reason {
    width: 100%;
    max-width: 380px;
    padding: 8px 12px;
    border: 1.5px solid #dde6f0;
    border-radius: 7px;
    font-size: 13px;
    background: #fff;
}
.dbf2c-return-reason:focus { outline: none; border-color: #d7282f; }

/* Submit button */
.dbf2c-return-btn {
    background: #d7282f !important;
    color: #fff !important;
    border: none !important;
    border-radius: 7px !important;
    padding: 10px 22px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: opacity .15s;
}
.dbf2c-return-btn:hover { opacity: .88; }
.dbf2c-return-btn:disabled { opacity: .5; cursor: default; }

/* Return message */
.dbf2c-return-msg {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 13px;
}
.dbf2c-return-msg.success {
    background: #edfaef;
    border: 1px solid #b0e8b8;
    color: #1a6e2a;
}
.dbf2c-return-msg.error {
    background: #fff0f0;
    border: 1px solid #f5c2c2;
    color: #c0392b;
}

/* Booked state */
.dbf2c-return-booked,
.dbf2c-return-pending {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 9px;
}
.dbf2c-return-booked {
    background: #edfaef;
    border: 1px solid #b0e8b8;
}
.dbf2c-return-pending {
    background: #fff8e1;
    border: 1px solid #ffe082;
}
.dbf2c-ret-icon { font-size: 1.4rem; flex-shrink: 0; }
.dbf2c-return-booked strong,
.dbf2c-return-pending strong { display: block; margin-bottom: 4px; }
.dbf2c-return-booked span,
.dbf2c-return-pending span { font-size: 13px; color: #555; }
.dbf2c-ret-track-link {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #d7282f;
    text-decoration: underline;
}

/* No eligible */
.dbf2c-return-none {
    font-size: 13px;
    color: #9aa5b4;
    font-style: italic;
}

/* ============================================================
   Product Page — Return / Non-Return Badge  (v2)
   ============================================================ */

.dbf2c-rb-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: var(--border-radius-lg);
    padding: 14px 16px;
    margin: 10px 0 6px;
    max-width: 480px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

/* Icon circle */
.dbf2c-rb-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dbf2c-rb-icon-success {
    background: var(--color-background-success);
    color: var(--color-text-success);
}
.dbf2c-rb-icon-danger {
    background: var(--color-background-danger);
    color: var(--color-text-danger);
}

/* Body */
.dbf2c-rb-body { min-width: 0; flex: 1; }

.dbf2c-rb-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.dbf2c-rb-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}
.dbf2c-rb-title-success { color: var(--color-text-success); }
.dbf2c-rb-title-danger  { color: var(--color-text-danger);  }

.dbf2c-rb-sub {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Extended pill */
.dbf2c-rb-pill {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.dbf2c-rb-pill-success {
    background: var(--color-background-success);
    color: var(--color-text-success);
}
