/* ============================================
   Pastilă de bază – folosită peste tot (client + admin)
   ============================================ */
.wcrm-pill-base {
    background: #fff !important;
    border: 1px solid #e5e7eb !important; /* bordură subțire */
    border-radius: 9999px !important;
    padding: 4px 12px !important;        /* puțin mai lat */
    line-height: 1.3 !important;
    font-size: 14px !important;          /* text mai mare */
    font-weight: 500 !important;
    text-transform: none !important;
    min-width: 95px !important; /* buton ușor mai lat */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

/* PASTILE RETUR – culorile pentru status retur */
.wcrm-pill-return.status-wc-return-new {
    border-color: #9ca3af !important;
    color: #4b5563 !important;
}

.wcrm-pill-return.status-wc-return-processing {
    border-color: #2563eb !important;
    color: #2563eb !important;
}

.wcrm-pill-return.status-wc-return-review {
    border-color: #7c3aed !important;
    color: #7c3aed !important;
}

.wcrm-pill-return.status-wc-return-cancelled {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.wcrm-pill-return.status-wc-return-refused {
    border-color: #000000 !important;
    color: #000000 !important;
}

.wcrm-pill-return.status-wc-return-completed {
    border-color: #16a34a !important;
    color: #16a34a !important;
}

/* PASTILE STATUS PLATĂ */
.wcrm-pill-payment.status-payment-pending {
    border-color: #f59e0b !important;  /* portocaliu */
    color: #f59e0b !important;
}

.wcrm-pill-payment.status-payment-voucher {
    border-color: #16a34a !important;  /* verde */
    color: #16a34a !important;
}

.wcrm-pill-payment.status-payment-refunded {
    border-color: #16a34a !important;  /* verde */
    color: #16a34a !important;
}

/* Centrare generală pentru tabelele de retur */
.wcrm-center-table th,
.wcrm-center-table td {
    text-align: center;
    vertical-align: middle;
}

/* Prima coloană (ID / nume produs) rămâne la stânga */
.wcrm-center-table th:first-child,
.wcrm-center-table td:first-child {
    text-align: left;
}

/* Celula de acțiuni clar centrată */
.wcrm-center-table .order-actions,
.wcrm-center-table td:last-child {
    text-align: center;
}


/* ============================================
   BUTOANE PRINCIPALE RETUR – să arate ca "Vezi" din WooCommerce
   ============================================ */
.woocommerce-account .wcrm-return-primary {
    display: inline-flex;                 
    align-items: center;
    justify-content: center;

    padding: 0.2em 1.5em;                
    border-radius: 6px;               
    background-color: var(--wd-primary-color, #2f6ed1);
    border: 1px solid var(--wd-primary-color, #2f6ed1);
    color: #fff !important;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;                     
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.woocommerce-account .wcrm-return-primary:hover {
    background-color: var(--wd-primary-color-hover, #234aa3);
    border-color: var(--wd-primary-color-hover, #234aa3);
    color: #fff !important;
}


/* ============================================
   Tabel rezumat retur – lățime full, totul la dreapta - NU SE FOLOSESTE ACUM
   ============================================ 
.wcrm-return-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 0 0;
    font-size: 16px;
}

.wcrm-return-summary-table tr {
    border-bottom: 1px solid #eee;
}

table.wcrm-return-summary-table th {
    text-align: right !important;
    padding: 10px 6px 10px 12px !important;
    font-weight: 600;
    font-size: 15px;
}

table.wcrm-return-summary-table td {
    text-align: right !important;
    padding: 10px 0 10px 6px !important;
    font-size: 15px;
    white-space: nowrap;
} */


/* ============================================
   Tabel rezumat retur – mic, aliniat la dreapta, text aproape de cifre
   ============================================ */
.wcrm-return-summary-table {
    border-collapse: collapse;
    margin: 10px 0 0 0;
    font-size: 15px;
    width: auto;         /* ia doar cât spaţiu are nevoie */
    margin-left: auto;   /* împinge tabelul spre dreapta */
}

.wcrm-return-summary-table tr {
    border-bottom: 1px solid #eee;
}

.wcrm-return-summary-table td {
    padding: 10px 0px 10px 6px;
    white-space: nowrap; /* nu rupe textele pe două rânduri */
}

.wcrm-return-summary-table th {
    padding: 8px 12px;
    white-space: nowrap; /* nu rupe textele pe două rânduri */
}

/* Etichetele (Subtotal, Taxă, Total) lipite de coloana cifrelor */
.wcrm-return-summary-table th {
    text-align: right;
}

.wcrm-return-summary-table td {
    text-align: right;   /* cifrele rămân la marginea din dreapta a tabelului */
}


/* ============================================
   Cantitate retur – input mic, centrat în coloană - NU SE FOLOSESTE ACUM
   ============================================ 
.woocommerce-account .wcrm-return-table .wcrm-return-qty {
    width: 60px;          /* lățime fixă, mică */
    max-width: 100%;
    padding: 4px 6px;
    text-align: center;
    display: inline-block;
} */

/* Pe mobil îl lăsăm tot mic, doar îl centram frumos 
@media (max-width: 600px) {
    .woocommerce-account .wcrm-return-table td[data-title="Cantitate pentru retur"] {
        text-align: center;
    }
} */



/* ============================================
   Boxul si linkul pentru termeni si conditii retur
   ============================================ */

/* Linkul de termeni retur – ca linkurile temei */
.woocommerce-account .wcrm-terms-wrap .wcrm-terms-toggle{
    font-weight: 700;
    text-decoration: underline;
    color: var(--wd-primary-color, #2f6ed1);
    cursor: pointer;
    transition: color .15s ease;
}
.woocommerce-account .wcrm-terms-wrap .wcrm-terms-toggle:hover{
    color: var(--wd-primary-color-hover, #234aa3);
}

/* Boxul cu politica – doar stil, fără display:none !important */
.woocommerce-account .wcrm-terms-box{
    margin: 10px 0 20px;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    font-size: 14px;
    max-height: 240px;
    overflow-y: auto;
}



/* ============================================
   CONTROL CANTITATE RETUR – MINUS / INPUT / PLUS
   (markup: .wcrm-qty-control + .wcrm-qty-btn)
   ============================================ */

.woocommerce-account .wcrm-qty-control{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    height: 30px;
    background: #fff;
}

/* butoanele +/- mai înguste, fundal alb, simbol albastru */
.woocommerce-account .wcrm-qty-control .wcrm-qty-btn{
    width: 26px;                 
    height: 30px;
    border: 0;
    padding: 0;
    margin: 0;
    background: #fff;                               /* ALB default */
    color: var(--wd-primary-color, #2f6ed1);        /* simbol ALBASTRU */
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background .15s ease, color .15s ease, opacity .15s ease;
}

/* separatoare subtile între -, input, + */
.woocommerce-account .wcrm-qty-control .wcrm-qty-minus{
    border-right: 1px solid #e5e7eb;
}
.woocommerce-account .wcrm-qty-control .wcrm-qty-plus{
    border-left: 1px solid #e5e7eb;
}

/* hover ca în temă: caseta devine albastră, simbol alb */
.woocommerce-account .wcrm-qty-control .wcrm-qty-btn:hover{
    background: var(--wd-primary-color, #2f6ed1);
    color: #fff;
}

/* stare disabled (dacă ajunge la min/max și vrei să le dezactivezi din JS) */
.woocommerce-account .wcrm-qty-control .wcrm-qty-btn:disabled{
    opacity: .45;
    cursor: not-allowed;
    background: #fff;
    color: var(--wd-primary-color, #2f6ed1);
}

/* inputul din mijloc */
.woocommerce-account .wcrm-qty-control .wcrm-return-qty{
    width: 40px !important;
    height: 30px;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none !important;
    background: #fff;
}

/* scoate săgețile standard din browser */
.woocommerce-account .wcrm-return-qty::-webkit-outer-spin-button,
.woocommerce-account .wcrm-return-qty::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}
.woocommerce-account .wcrm-return-qty[type="number"]{
    -moz-appearance: textfield;
}

/* aliniere verticală frumoasă în tabel */
.woocommerce-account .wcrm-return-item-row td{
    vertical-align: middle;
}

/* ============================================
   Nota sub metoda de rambursare
   ============================================ */

.wcrm-refund-method-wrap { 
    margin-bottom: 14px; /* păstrează spațiu față de următorul câmp */
}

.wcrm-refund-method-wrap .wcrm-refund-note{
    display: block;          
    margin-top: 4px;         /* lipită frumos de select */
    margin-bottom: 0;        
    font-size: 12px;         /* mic */
    line-height: 1.35;
    color: #6b7280;          /* gri soft ca în temă */
}

#refund_method_note {
    padding-left: 8px;
    margin-top: 4px;
}

/* ============================================
   Nota eroare cont IBAN
   ============================================ */

#iban_error {
    color: #dc2626;         /* roșu */
    font-size: 12px;
    margin-top: 4px;
    padding-left: 8px;
    display: none;          /* implicit ascuns */
}


