/* OUG 34 Conformitate — Frontend Styles */

/* --- Documents --- */
.oug34-document {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}
.oug34-document h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e8e8e8;
    color: #1a1a1a;
}
.oug34-document h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 8px;
    color: #222;
}
.oug34-document p { margin: 0 0 14px; }
.oug34-document ul {
    margin: 8px 0 14px 24px;
    list-style-type: disc;
}
.oug34-document li { margin-bottom: 6px; }
.oug34-update-date { color: #777; font-size: 13px; margin-bottom: 20px; }

/* --- Highlight box --- */
.oug34-highlight-box {
    background: #e8f4fd;
    border-left: 4px solid #2271b1;
    padding: 14px 18px;
    margin: 0 0 24px;
    border-radius: 0 4px 4px 0;
    font-size: 15px;
}

/* --- Table (GDPR) --- */
.oug34-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 20px;
    font-size: 14px;
}
.oug34-table th, .oug34-table td {
    padding: 10px 14px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}
.oug34-table th {
    background: #f5f5f5;
    font-weight: 600;
}
.oug34-table tr:nth-child(even) td { background: #fafafa; }

/* --- Retur Form --- */
.oug34-retur-form { max-width: 720px; }
.oug34-form-section {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.oug34-form-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}
.oug34-form-row { margin-bottom: 16px; }
.oug34-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.oug34-form-row input[type="text"],
.oug34-form-row input[type="email"],
.oug34-form-row input[type="tel"],
.oug34-form-row input[type="date"],
.oug34-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .2s;
}
.oug34-form-row input:focus,
.oug34-form-row textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,.15);
}
.oug34-note { font-size: 13px; color: #666; margin-bottom: 10px; }
.oug34-gdpr-consent {
    background: #fff9e6;
    border: 1px solid #f0c000;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}
.oug34-gdpr-consent input[type="checkbox"] { margin-right: 8px; }
.oug34-form-declaratie {
    background: #f0f0f0;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}
.oug34-submit-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
}
.oug34-submit-btn:hover { background: #135e96; }

/* --- Messages --- */
.oug34-success {
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
    color: #0a3622;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.oug34-error {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* --- Product legal badge --- */
.oug34-product-legal {
    font-size: 13px;
    color: #555;
    margin: 8px 0 16px;
    padding: 8px 12px;
    background: #f0f7ff;
    border-radius: 4px;
    border: 1px solid #d0e8ff;
}
.oug34-product-legal span { color: #2a7a2a; font-weight: 600; }
.oug34-product-legal a { color: #2271b1; text-decoration: none; }

/* --- Cart legal --- */
.oug34-cart-legal {
    padding: 8px 0;
    font-size: 12px;
    color: #888;
    text-align: center;
}
.oug34-cart-legal a { color: #2271b1; }

/* --- Checkout info --- */
.oug34-checkout-info {
    background: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
}
.oug34-checkout-info a { color: #2271b1; }

/* --- Thank you legal --- */
.oug34-thankyou-info {
    background: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 20px;
}
.oug34-thankyou-info h3 { margin: 0 0 8px; font-size: 16px; }

/* --- Footer legal links --- */
#oug34-footer-legal {
    text-align: center;
    padding: 9px 16px;
    font-size: 12px;
    line-height: 1.7;
    color: #5b6472;
    background: #f8fbff;
    border-top: 1px solid #dbe7f6;
    border-bottom: 1px solid #edf3fb;
    margin-top: 0;
}
#oug34-footer-legal a {
    color: #315f9f;
    text-decoration: none;
    margin: 0 6px;
}
#oug34-footer-legal a:hover { color: #0f4f95; text-decoration: underline; }

/* --- Banner drepturi --- */
.oug34-banner-drepturi {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    background: #f5f9ff;
    border: 1px solid #d0e4ff;
    border-radius: 6px;
    padding: 12px 18px;
    font-size: 13px;
}
.oug34-banner-drepturi span { color: #2a6a2a; }
.oug34-banner-drepturi a { color: #2271b1; text-decoration: none; }

/* --- Consent WooCommerce --- */
.oug34-consent-field label {
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================================
 * MY ACCOUNT — Comenzile mele (lista + vedere individuală)
 * ============================================================ */

/* Coloana Retur în tabelul comenzilor */
.woocommerce-orders-table .oug34-btn-retur-small {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    background: #2271b1;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.woocommerce-orders-table .oug34-btn-retur-small:hover { background: #135e96; }
.oug34-days-left { font-size: 11px; opacity: .85; }
.oug34-retur-expirat { font-size: 12px; color: #999; }
.oug34-retur-na { font-size: 12px; color: #bbb; }

/* Buton retur în coloana Acțiuni */
.woocommerce-orders-table__cell-order-actions .oug34-action-retur {
    background: #2271b1 !important;
    color: #fff !important;
    border-color: #2271b1 !important;
}

/* ---- Thank you page box ---- */
.oug34-thankyou-box {
    background: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 6px;
    padding: 20px 24px;
    margin-top: 30px;
}
.oug34-thankyou-box h2 { margin: 0 0 14px; font-size: 18px; }
.oug34-btn-retur {
    display: inline-block;
    margin-top: 10px;
    padding: 11px 22px;
    background: #2271b1;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.oug34-btn-retur:hover { background: #135e96; color: #fff !important; }

/* ---- View Order box (pagina individuală) ---- */
.oug34-view-order-retur {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 30px;
}
.oug34-view-order-retur h2 {
    font-size: 18px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Status container */
.oug34-retur-status { padding: 4px 0; }

.oug34-retur-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

/* Badges */
.oug34-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.oug34-badge-eligibil { background: #d1fae5; color: #065f46; }
.oug34-badge-expirat  { background: #fee2e2; color: #991b1b; }

.oug34-days-counter {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Progress bar */
.oug34-progress-wrap {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}
.oug34-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width .4s ease;
    min-width: 4px;
}

.oug34-deadline { margin: 0 0 16px; font-size: 14px; color: #444; }

/* Action buttons */
.oug34-retur-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.oug34-btn-retur-main {
    padding: 11px 22px !important;
    background: #2271b1 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-decoration: none;
    border: none !important;
    cursor: pointer;
    transition: background .2s;
}
.oug34-btn-retur-main:hover { background: #135e96 !important; color: #fff !important; }
.oug34-btn-retur-info {
    padding: 11px 18px !important;
    font-size: 14px !important;
    color: #2271b1 !important;
    border-color: #2271b1 !important;
    text-decoration: none;
}

.oug34-retur-note { font-size: 12px; color: #777; margin: 0; line-height: 1.5; }

/* Expirat / N/A states */
.oug34-retur-expirat p, .oug34-retur-na p { color: #555; font-size: 14px; }
.oug34-retur-expirat .oug34-badge-expirat { margin-bottom: 12px; display: block; width: fit-content; }

/* Mobile */
@media (max-width: 600px) {
    .oug34-retur-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .oug34-retur-actions { flex-direction: column; }
    .oug34-btn-retur-main, .oug34-btn-retur-info { text-align: center; }
}

/* --- Info firma --- */
.oug34-info-firma {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.8;
}

/* ============================================================
 * MODUL PRODUSE DIGITALE
 * ============================================================ */

/* Badge pagina de produs digital */
.oug34-digital-badge {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 12px;
    margin: 8px 0 16px;
    background: #fffbea;
    border: 1px solid #f0c040;
    border-radius: 4px;
    font-size: 13px;
}
.oug34-digital-badge span:first-child { color: #2271b1; font-weight: 600; }
.oug34-digital-badge span:last-child  { color: #7a5c00; }

/* Checkout consent digital */
.oug34-digital-consent-wrap {
    background: #fffbea;
    border: 2px solid #f0c040;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 10px 0 16px;
}
.oug34-digital-consent-wrap.oug34-mixed-cart {
    border-color: #e6a817;
}
.oug34-digital-notice {
    margin: 0 0 10px;
    font-size: 14px;
    color: #7a5c00;
}
.oug34-consent-digital label {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

/* Mixed cart checkout notice */
.oug34-mixed-notice {
    border-left-color: #f0c040 !important;
    background: #fffbea !important;
}

/* View order — digital notice */
.oug34-digital-order-notice {
    background: #fffbea;
    border: 1px solid #f0c040;
    border-radius: 8px;
    padding: 18px 22px;
    margin-top: 24px;
}
.oug34-digital-order-notice h2 {
    font-size: 17px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0e090;
    color: #7a5c00;
}
.oug34-digital-notice-inner p {
    font-size: 14px;
    color: #555;
    margin: 8px 0;
}
.oug34-digital-notice-inner a { color: #2271b1; }

/* Email confirmare digital — stiluri inline în HTML email,
   nu necesită CSS extern */
