/**
 * Carrito de Compras - AGROSOIL
 *
 * @package Agrosoil
 * @since 1.0.0
 */

/* ============================================
   VARIABLES LOCALES
   ============================================ */
:root {
    --cart-dark: #1a2226;
    --cart-dark-2: #242e33;
    --cart-green: #80bc00;
    --cart-green-dark: #6aa300;
    --cart-blue: #39a6de;
    --cart-radius: 16px;
    --cart-radius-sm: 12px;
    --cart-bg: #f6f7f0;
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.agrosoil-cart-page,
.agrosoil-cart-page * {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.agrosoil-cart-page {
    background: var(--cart-bg);
}

/* ====== RESET WRAPPERS DEL TEMA PADRE (solo carrito) ====== */
body.agrosoil-cart-body #featured-title {
    display: none !important;
}

body.agrosoil-cart-body #main-content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.agrosoil-cart-body #sidebar {
    display: none !important;
}

/* Asegurar que todo wrapper interior sea full-width */
body.agrosoil-cart-body #content-wrap,
body.agrosoil-cart-body #site-content,
body.agrosoil-cart-body #inner-content,
body.agrosoil-cart-body .inner-content-wrap,
body.agrosoil-cart-body .page-content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* El wrapper de la pagina del carrito */
.agrosoil-cart-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================================
   HERO (match service pages)
   ============================================ */
.cart-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 180px 20px 60px;
    text-align: center;
    overflow: hidden;
}

.cart-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, #242e33 0%, #0d1f1a 60%, #071510 100%);
    z-index: 0;
}

.cart-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(76, 175, 80, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 195, 74, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.cart-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cart-hero-badge {
    /* Tamaños gestionados por components/typography.css (estándar unificado) */
    border: 1px solid rgba(128, 188, 0, 0.3);
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out;
}

.cart-hero-badge svg {
    opacity: 0.9;
}

.cart-hero-title {
    font-size: clamp(36px, 7vw, 48px);
    font-weight: 800;
    color: #fff !important;
    margin: 0;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cart-hero-title span {
    color: var(--cart-green);
}

/* Animaciones: fadeInDown, fadeInUp → core/animations.css */

/* ============================================
   CONTENIDO
   ============================================ */
.cart-content-section {
    padding: 50px 0 80px;
}

.cart-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ============================================
   ESTADO VACIO
   ============================================ */
.cart-empty {
    display: none;
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.cart-empty-icon {
    color: #ccc;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.cart-empty-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--cart-dark);
    margin: 0 0 12px;
}

.cart-empty-text {
    font-size: 18px;
    color: #777;
    margin: 0 0 30px;
    line-height: 1.6;
}

.cart-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cart-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-empty-btn-primary {
    background: var(--cart-green);
    color: #fff;
    box-shadow: 0 4px 15px rgba(128,188,0,0.3);
}

.cart-empty-btn-primary:hover {
    background: var(--cart-green-dark);
    transform: translateY(-2px);
    color: #fff;
}

.cart-empty-btn-secondary {
    background: #fff;
    color: var(--cart-dark);
    border: 2px solid #e0e0e0;
}

.cart-empty-btn-secondary:hover {
    border-color: var(--cart-green);
    color: var(--cart-green-dark);
    transform: translateY(-2px);
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */
.cart-layout {
    display: none;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* ============================================
   ITEMS COLUMN
   ============================================ */
.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-items-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--cart-dark);
    margin: 0;
}

.cart-clear-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cart-clear-btn:hover {
    color: #e53935;
    background: rgba(229,57,53,0.08);
}

/* Cart Item */
.cart-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--cart-radius);
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.cart-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cart-item-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(128,188,0,0.1), rgba(128,188,0,0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cart-green);
}

.cart-item-icon svg {
    width: 20px;
    height: 20px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--cart-dark);
    margin: 0 0 4px;
    line-height: 1.3;
}

.cart-item-category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-qty-btn {
    width: 44px;
    height: 44px;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-family: inherit;
}

.cart-qty-btn:hover {
    background: var(--cart-green);
    color: #fff;
}

.cart-qty-value {
    width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--cart-dark);
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    line-height: 44px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--cart-dark);
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    color: #ccc;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    color: #e53935;
    background: rgba(229,57,53,0.08);
}

.cart-item-remove svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.cart-sidebar-sticky {
    position: sticky;
    top: 100px;
}

.cart-summary-card,
.cart-checkout-card {
    background: #fff;
    border-radius: var(--cart-radius);
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.cart-checkout-card {
    margin-top: 16px;
}

.cart-summary-title,
.cart-checkout-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--cart-dark);
    margin: 0 0 20px;
}

/* Summary Lines */
.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.cart-summary-line:last-child {
    border-bottom: none;
}

.cart-summary-line .line-name {
    flex: 1;
    min-width: 0;
    padding-right: 16px;
    line-height: 1.4;
}

.cart-summary-line .line-total {
    font-weight: 600;
    color: var(--cart-dark);
    white-space: nowrap;
}

.cart-summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 12px 0;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--cart-dark);
}

.cart-total-amount {
    color: var(--cart-green);
    font-size: 24px;
}

/* ============================================
   CHECKOUT FORM
   ============================================ */
.cart-form-group {
    margin-bottom: 16px;
}

.cart-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.cart-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: var(--cart-radius-sm);
    padding: 0 14px;
    height: 44px;
    transition: all 0.2s ease;
}

.cart-input-wrap:focus-within {
    border-color: var(--cart-green);
    box-shadow: 0 0 0 3px rgba(128,188,0,0.1);
    background: #fff;
}

.cart-input-wrap svg {
    color: #aaa;
    flex-shrink: 0;
}

.cart-input-wrap input,
.cart-input-wrap input[type="text"],
.cart-input-wrap input[type="email"],
.cart-input-wrap input[type="tel"],
.cart-input-wrap input[type="number"] {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: var(--cart-dark);
    font-family: inherit;
    outline: none;
    border-radius: 0;
    box-shadow: none !important;
}

.cart-input-wrap input::placeholder {
    color: #bbb;
}

.cart-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cart-form-row .cart-form-group {
    min-width: 0;
}

.cart-checkout-form textarea {
    width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: var(--cart-radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--cart-dark);
    background: #f8f9fa;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}

.cart-checkout-form textarea:focus {
    border-color: var(--cart-green);
    box-shadow: 0 0 0 3px rgba(128,188,0,0.1);
    background: #fff;
}

/* Checkbox */
.cart-form-check {
    margin: 16px 0;
}

.cart-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

.cart-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--cart-green);
    cursor: pointer;
}

/* Pay Button */
.cart-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139,195,74,0.3);
    margin-top: 20px;
}

.cart-pay-btn:hover {
    opacity: 0.85;
}

.cart-pay-btn:active {
    transform: translateY(0);
}

.cart-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cart-pay-btn.loading span {
    display: none;
}

.cart-pay-btn.loading::after {
    content: 'Procesando...';
}

/* Security Info */
.cart-security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    color: #999;
}

.cart-security-info svg {
    color: var(--cart-green);
}

/* ============================================
   FORM VALIDATION
   ============================================ */
.cart-form-group.error .cart-input-wrap {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}

.cart-form-group .error-msg {
    font-size: 12px;
    color: #e53935;
    margin-top: 4px;
    display: none;
}

.cart-form-group.error .error-msg {
    display: block;
}

/* ============================================
   CONFIRM MODAL (vaciar carrito)
   ============================================ */
.cart-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-confirm-overlay.active {
    display: flex;
    opacity: 1;
}

.cart-confirm-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cart-confirm-overlay.active .cart-confirm-modal {
    transform: scale(1);
}

.cart-confirm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.cart-confirm-close:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: scale(1.05) rotate(90deg);
}

.cart-confirm-close:active {
    transform: scale(0.95);
}

.cart-confirm-close svg {
    width: 16px !important;
    height: 16px !important;
    color: #555;
    fill: none;
    flex-shrink: 0;
}

.cart-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(229, 57, 53, 0.1);
    color: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cart-confirm-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--cart-dark);
    margin: 0 0 8px;
}

.cart-confirm-text {
    font-size: 18px;
    color: #777;
    line-height: 1.5;
    margin: 0 0 28px;
}

.cart-confirm-actions {
    display: flex;
    gap: 12px;
}

.cart-confirm-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cart-confirm-cancel {
    background: #f5f5f5;
    color: #555;
}

.cart-confirm-cancel:hover {
    background: #eee;
}

.cart-confirm-yes {
    background: #e53935;
    color: #fff;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.cart-confirm-yes:hover {
    background: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.4);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr 320px;
        gap: 20px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .cart-hero {
        min-height: 60vh;
    }

    .cart-content-section {
        padding: 30px 0 60px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-item {
        position: relative;
        padding: 16px 44px 16px 16px;
    }

    .cart-item-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cart-item-icon {
        width: 40px;
        height: 40px;
    }

    .cart-item-info {
        flex: 1;
        min-width: calc(100% - 60px);
    }

    .cart-item-remove {
        position: absolute;
        top: 8px;
        right: 4px;
        padding: 8px;
        min-width: 36px;
        min-height: 36px;
    }

    .cart-item-qty {
        margin-left: 0;
    }

    .cart-item-price {
        min-width: auto;
        font-size: 15px;
    }

    .cart-item-adicionales .cart-adicional-row {
        box-shadow: none;
    }

    .cart-form-row {
        grid-template-columns: 1fr;
    }

    .cart-sidebar-sticky {
        position: static;
    }

    .cart-summary-card,
    .cart-checkout-card {
        padding: 20px;
    }

    .cart-empty-actions {
        flex-direction: column;
    }

    .cart-empty-btn {
        justify-content: center;
    }
}

/* ============================================
   FORMULARIO DE SOLICITUD (full-width below cart)
   ============================================ */
.cart-request-section {
    display: none;
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.cart-request-section.active {
    display: block;
}

/* Single-column form layout */
.cart-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-request-pay {
    margin-top: 8px;
}

.cart-request-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--cart-dark);
    margin: 0 0 8px;
    text-align: center;
}

.cart-request-subtitle {
    font-size: 18px;
    color: #777;
    text-align: center;
    margin: 0 0 30px;
    line-height: 1.5;
}

/* Form Sections (accordion) */
.cart-form-section {
    background: #fff;
    border-radius: var(--cart-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.cart-form-section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cart-form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.cart-form-section-header:hover {
    background: rgba(128,188,0,0.03);
}

.cart-form-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(128,188,0,0.1), rgba(128,188,0,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cart-green);
}

.cart-form-section-icon svg {
    width: 18px;
    height: 18px;
}

.cart-form-section-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--cart-dark);
    margin: 0;
}

.cart-form-section-chevron {
    width: 20px;
    height: 20px;
    color: #aaa;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.cart-form-section.collapsed .cart-form-section-chevron {
    transform: rotate(-90deg);
}

.cart-form-section-body {
    padding: 0 24px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cart-form-section.collapsed .cart-form-section-body {
    display: none;
}

.cart-form-row-full {
    grid-column: 1 / -1;
}

/* Hidden conditional groups */
.cart-conditional-group {
    display: none;
}

.cart-conditional-group.visible {
    display: contents;
}

/* Select Wrap */
.cart-select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: var(--cart-radius-sm);
    padding: 0 14px;
    height: 44px;
    transition: all 0.2s ease;
}

.cart-select-wrap:focus-within {
    border-color: var(--cart-green);
    box-shadow: 0 0 0 3px rgba(128,188,0,0.1);
    background: #fff;
}

.cart-select-wrap svg {
    color: #aaa;
    flex-shrink: 0;
}

.cart-select-wrap select {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: var(--cart-dark);
    font-family: inherit;
    outline: none;
    cursor: pointer;
    border-radius: 0;
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Radio Group (pill style) */
.cart-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cart-radio-pill {
    position: relative;
}

.cart-radio-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cart-radio-pill label {
    display: inline-block;
    padding: 12px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 !important;
}

.cart-radio-pill input[type="radio"]:checked + label {
    background: var(--cart-green);
    border-color: var(--cart-green);
    color: #fff;
    box-shadow: 0 2px 8px rgba(128,188,0,0.3);
}

.cart-radio-pill label:hover {
    border-color: var(--cart-green);
    color: var(--cart-green-dark);
}

/* Checkbox Group */
.cart-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.cart-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--cart-green);
    cursor: pointer;
    flex-shrink: 0;
}

.cart-checkbox-item span {
    font-size: 14px;
    color: #555;
}

/* Adicionales per-item (dropdown en cada item de suelos) */
.cart-item-adicionales {
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
}

.cart-adicionales-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--cart-green);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}

.cart-adicionales-toggle svg {
    transition: transform 0.2s;
}

.cart-adicionales-toggle.open svg {
    transform: rotate(45deg);
}

.cart-adicionales-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.cart-adicionales-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 6px;
    padding: 0 2px;
}

.cart-adicional-row {
    border-radius: 8px;
    background: #f9faf5;
    border: 1px solid #e8ecd8;
    padding: 8px 10px;
    transition: border-color 0.2s, background 0.2s;
}

.cart-adicional-row.active {
    border-color: var(--cart-green);
    background: #f0f7e6;
}

.cart-adicional-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cart-adicional-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--cart-green);
    cursor: pointer;
    flex-shrink: 0;
}

.cart-adicional-label {
    flex: 1;
    font-size: 13px;
    color: #333;
    min-width: 0;
}

.cart-adicional-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--cart-green);
    white-space: nowrap;
}

.cart-adicional-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(128,188,0,0.15);
}

.cart-adicional-qty-label {
    font-size: 12px;
    color: #888;
}

.cart-adicional-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: border-color 0.2s;
    padding: 0;
}

.cart-adicional-qty-btn:hover {
    border-color: var(--cart-green);
    color: var(--cart-green);
}

.cart-adicional-qty-value {
    font-size: 14px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.cart-adicional-qty-max {
    font-size: 11px;
    color: #aaa;
}

.cart-adicional-subtotal {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--cart-green);
    white-space: nowrap;
}

.cart-adicionales-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cart-green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}

.cart-summary-adicional .line-name {
    font-style: italic;
    color: #888;
    font-size: 13px;
}

/* Info Note */
.cart-form-note {
    grid-column: 1 / -1;
    background: rgba(57, 166, 222, 0.08);
    border: 1px solid rgba(57, 166, 222, 0.2);
    border-radius: var(--cart-radius-sm);
    padding: 14px 18px;
    font-size: 13px;
    color: #2980b9;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cart-form-note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Analysis Type Badges */
.cart-analysis-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-column: 1 / -1;
}

.cart-analysis-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.cart-analysis-badge.badge-suelos {
    background: rgba(128,188,0,0.12);
    color: #5a8a00;
    border: 1px solid rgba(128,188,0,0.25);
}

.cart-analysis-badge.badge-foliar {
    background: rgba(76,175,80,0.12);
    color: #2e7d32;
    border: 1px solid rgba(76,175,80,0.25);
}

.cart-analysis-badge.badge-aguas {
    background: rgba(57,166,222,0.12);
    color: #1565c0;
    border: 1px solid rgba(57,166,222,0.25);
}

/* Terms Wrap */
.cart-terms-wrap {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: var(--cart-radius-sm);
    border: 1px solid #e8e8e8;
}

.cart-terms-wrap input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--cart-green);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.cart-terms-wrap span {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.cart-terms-wrap a {
    color: var(--cart-green-dark);
    text-decoration: underline;
    font-weight: 500;
}

.cart-terms-wrap a:hover {
    color: var(--cart-green);
}

.cart-terms-wrap.error {
    border-color: #e53935;
    background: rgba(229,57,53,0.04);
}

/* Pay Button in request section */
.cart-request-pay {
    text-align: center;
    margin-top: 24px;
    padding-bottom: 20px;
}

.cart-request-pay .cart-pay-btn {
    max-width: 400px;
    margin: 0 auto;
}

/* Validation for new fields */
.cart-form-section .cart-form-group.error .cart-select-wrap {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}

.cart-form-section .cart-form-group.error .cart-radio-group {
    padding: 6px;
    border-radius: 8px;
    background: rgba(229,57,53,0.04);
    border: 1px solid rgba(229,57,53,0.2);
}

/* Responsive - Request Form */
@media (max-width: 768px) {
    .cart-request-section {
        margin-top: 24px;
    }

    .cart-form-section-body {
        grid-template-columns: 1fr;
        padding: 0 16px 16px;
    }

    .cart-form-section-header {
        padding: 14px 16px;
    }

    .cart-radio-group {
        flex-direction: column;
    }

    .cart-radio-pill label {
        display: block;
        text-align: center;
    }
}
