/**
 * FormZap Cart - Estilos do Carrinho de Orçamento (Shopping Bag Style)
 */

/* -------------------------------------------------------------------------
   1. BUTTON STYLES (Hybrid State)
   ------------------------------------------------------------------------- */

/* Standard State is handled by contact-form-public.css (.formzap-fab) */

/* Fix click targets */
.formzap-cart-item-remove svg,
.formzap-cart-item-remove path,
.qty-btn svg {
    pointer-events: none;
}

/* Active Cart State (Has Items) - Forces Pill Shape & Notifications */
.formzap-fab.has-cart-items {
    width: auto !important;
    min-width: 180px !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    /* Maintain Brand Green */
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
    overflow: visible !important;
    /* Fix Badge Cutoff */
}

/* Badge (Only visible when has items) */
.formzap-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF3B30;
    /* IOS Red */
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 20;
    /* Animation removed to prevent jumping */
}

/* Item Card */
.formzap-cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #F3F4F6;
    /* Animation removed to prevent jumping */
}

/* ... (keep other styles) ... */

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E5E7EB;
    color: #111827;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 0;
    /* Align perfectly */
    padding: 0;
}

.formzap-cart-item-remove:hover {
    opacity: 1;
    background: #FEF2F2;
    border-radius: 8px;
    color: #DC2626;
    /* Better contrast */
}

.formzap-cart-send {
    width: 100%;
    padding: 18px;
    background: #25D366;
    /* Match main button */
    color: #fff;
    border: none;
    border-radius: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.formzap-cart-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #20bd5a;
    /* Slightly darker green */
    color: #fff !important;
    /* Force white text */
}

.formzap-cart-clear:hover {
    color: #DC2626;
    /* Better contrast */
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .formzap-cart-panel {
        max-width: 100%;
    }

    .formzap-fab.has-cart-items {
        bottom: 80px !important;
        /* Avoid conflict with sticky footers if any */
    }

    .formzap-cart-header {
        padding: 20px;
    }

    .formzap-cart-items {
        padding: 0 20px 20px;
    }

    .formzap-cart-footer {
        padding: 24px 20px;
    }
}

/* -------------------------------------------------------------------------
   LAYOUT FIXES (User Requested)
   ------------------------------------------------------------------------- */

/* Align Qty and Trash Icon horizontally */
.formzap-cart-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

/* Footer Buttons Spacing */
.formzap-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Increased space between buttons */
    align-items: center;
    /* Ensure centering */
    width: 100%;
}

/* Individual Button Tweaks */
.formzap-cart-add-more,
.formzap-cart-clear {
    width: 100%;
    border: 1px solid #E5E7EB;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #4B5563;
    text-align: center;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.formzap-cart-add-more:hover {
    border-color: #25D366;
    color: #25D366;
    background: #F0FDF4;
}

.formzap-cart-clear {
    border: none;
    background: transparent;
    color: #9CA3AF;
    font-size: 12px;
    padding: 8px;
    text-decoration: underline;
    margin-top: 5px;
}

background: transparent;
text-decoration: none;
}

/* -------------------------------------------------------------------------
   PRODUCT PAGE BUTTON STYLES (Match Standard WhatsApp Button)
   ------------------------------------------------------------------------- */
.formzap-add-to-cart.button {
    background: #25D366 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
    text-transform: none !important;
    /* Avoid all caps if theme enforces it */
}

.formzap-add-to-cart.button:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
    color: #ffffff !important;
}

.formzap-add-to-cart.button svg {
    pointer-events: none;
    fill: currentColor;
}