
/* === CONFIGURAÇÕES DE FONTE === */

/* UPSELL DESKTOP - Título do produto */
.wscu-upsell-section .wscu-upsell-details h4,
.wscu-upsell-section .wscu-upsell-details h4 a {
    font-family: "Próxima Regular", sans-serif !important;
    font-size: 14px !important;
}

/* UPSELL DESKTOP - Preços */
.wscu-upsell-section .wscu-upsell-price del {
    font-family: "Próxima Regular", sans-serif !important;
    font-size: 12px !important;
}

.wscu-upsell-section .wscu-upsell-price ins,
.wscu-upsell-section .wscu-upsell-price .woocommerce-Price-amount {
    font-family: "Próxima Regular", sans-serif !important;
    font-size: 14px !important;
}

/* CARRINHO - Título do produto e preços */
.wscu-item-title {
    font-family: "Próxima Regular", sans-serif !important;
    font-size: 14px !important;
}

.wscu-item-price .wscu-current-price,
.wscu-item-price .wscu-current-price .woocommerce-Price-amount {
    font-family: "Próxima Regular", sans-serif !important;
    font-size: 14px !important;
}

.wscu-item-price .wscu-regular-price {
    font-family: "Próxima Regular", sans-serif !important;
    font-size: 12px !important;
}

/* Badge promo */
.wscu-item-price .wscu-discount-badge {
    font-family: "Próxima Regular", sans-serif !important;
    font-size: 12px !important;
}

/* Subtotal e total */
.wscu-subtotal-label,
.wscu-subtotal-amount {
    font-family: "Próxima Regular", sans-serif !important;
    font-size: 14px !important;
}

/* UPSELL MOBILE - Título do produto */
.wscu-mobile-upsell-title,
.wscu-mobile-upsell-title a {
    font-family: "Próxima Regular", sans-serif !important;
    font-size: 14px !important;
}

/* UPSELL MOBILE - Preços */
.wscu-mobile-upsell-price del {
    font-family: "Próxima Regular", sans-serif !important;
    font-size: 12px !important;
}

.wscu-mobile-upsell-price ins,
.wscu-mobile-upsell-price .woocommerce-Price-amount {
    font-family: "Próxima Regular", sans-serif !important;
    font-size: 14px !important;
}

.wscu-upsell-header,
.scu-cart-header,
.wscu-upsell-price,
.wscu-continue-shopping,
.wscu-quantity-button,
.wscu-add-product-button {
    font-family: "Próxima Regular", sans-serif !important;
}

/* === ESTILOS PARA PREÇOS PROMOCIONAIS NO CARRINHO === */

/* Container de preços do item */
.wscu-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

/* Preço regular riscado (quando há desconto) */
.wscu-item-price .wscu-regular-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    opacity: 0.7;
}

/* Preço atual (principal) */
.wscu-item-price .wscu-current-price {
    color: #000000 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.wscu-item-price .wscu-current-price .woocommerce-Price-amount {
    color: #000000 !important;
    font-size: 14px;
    font-weight: 600;
}

/* Badge de desconto */
.wscu-item-price .wscu-discount-badge {
    color: #28a745 !important;
    padding: 2px 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    margin-top: 2px;
}

/* Preço normal (sem desconto) - manter compatibilidade */
.wscu-item-price ins {
    text-decoration: none;
    font-weight: 600;
    color: #000000 !important;
}

/* === FIM ESTILOS PREÇOS PROMOCIONAIS === */



.wscu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999998; /* Um a menos que o modal */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wscu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wscu-modal {
    position: fixed;
    top: 0;
    right: -620px; /* FIXED: Largura do carrinho (420px) + upsell (200px) */
    width: 620px; /* FIXED: Largura total para acomodar carrinho + upsell */
    height: 100vh; /* Set to viewport height */
    max-height: 100vh; /* Ensure it never exceeds viewport height */
    background: transparent; /* FIXED: Transparent to show individual section backgrounds */
    z-index: 999999;
    transition: right 0.3s ease-in-out;
    box-shadow: none; /* FIXED: Remove modal shadow to prevent black bar between sections */
    overflow: hidden; /* Prevent overflow outside the modal */
}

.wscu-modal.active {
    right: 0;
}

/* FIXED: Separate containers for independent positioning */
.wscu-upsell-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through when hidden */
}

.wscu-cart-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    height: 100%;
    z-index: 2;
}

/* Cart Section Styles */
.wscu-cart-section {
    width: 100%; /* FIXED: Fill container completely */
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: none; /* FIXED: Remove all borders to eliminate visual artifacts */
    outline: none; /* FIXED: Remove outline to eliminate visual artifacts */
    position: relative; /* FIXED: Relative within its container */
    box-shadow: none; /* FIXED: Remove all shadows to eliminate visual artifacts */
}

.wscu-cart-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wscu-cart-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    font-family: 'Próxima Regular', sans-serif;
}

.wsu-close-btn-svg{
    width: 32px;
    height: 32px;
}

.wscu-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #666;
    transition: all .2s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;

}

.wscu-close-btn:hover {
    background: #fff;
    color: #333;
}

.wscu-close-btn svg {
    width: 30px;
    height: 20px;
    font-weight: 600;
    margin-right: -5px;
}

.wscu-empty-cart-button:hover,
.wscu-empty-cart-button:focus{
    background: #58757b !important;
}

.wscu-cart-body {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden; /* Prevent any overflow issues */
}

.wscu-cart-content {
    flex: 1;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal overflow */
    min-height: 200px; /* Minimum height to prevent collapse */
}

/* Cart Items Container */
.wscu-cart-items {
    position: relative;
    min-height: 200px;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent overflow */
    max-width: 100%;
}

/* Regular Cart Item - Ensure they stay at the top */
.wscu-cart-item {
    display: flex;
    padding: 15px;
    position: relative;
    margin-bottom: 0;
    transition: opacity 0.3s ease;
    align-self: flex-start;
    width: 100%;
    max-width: 100%;
    align-items: flex-start; /* Alinhar itens ao topo */
    box-sizing: border-box;
    overflow: hidden;
}

.wscu-cart-item.removing,
.wscu-cart-item.updating {
    opacity: 0.5;
    pointer-events: none;
}

.wscu-image-wrapper {
    width: 70px;
    min-width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
    position: relative;
}

.wscu-image-wrapper img {
    width: 60px;
    height: 60px;
    border: 1px solid #dedfea;
    object-fit: cover;
}

.wscu-remove-item {
    display: inline-flex;
    cursor: pointer;
    text-decoration: underline;
    font-size: 12px;
    position: absolute;
    top: 8px;
    left: 10px;
    background: #dedfea;
    color: #24272d;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.wscu-remove-item svg {
    width: 10px;
    height: 10px;
}

.wscu-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* Prevent flex item from overflowing */
    overflow: hidden;
}

.wscu-item-meta {
    margin-bottom: 5px;
    overflow: hidden;
    max-width: 100%;
}

.wscu-item-meta a:hover{
    color: #24272d !important;
}

.wscu-item-title {
    color: #24272d;
    font-size: 14px;
    font-weight: 600 !important;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    line-height: 1.4;
    outline: 0;
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
}

/* Variation attributes display below product title */
.wscu-variation-attributes {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-top: 2px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    word-wrap: break-word;
}

.wscu-variation-attributes .wscu-variation-attr {
    display: inline;
}
.wscu-quantity-label{
    font-size: 14px;
    color: #666;;
}
.wscu-line-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wscu-quantity-selector {
    display: flex;
    align-items: stretch;
}

.wscu-quantity-button {
    background: #fff;
    border: 1px solid #eaeaec;
    width: 28px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    padding: 0;
    transition: all 0.2s ease;
}

.wscu-quantity-button:hover {
    background: #f8f8f8;
    color: #333;
}

.wscu-quantity-button:active {
    background: #eaeaec;
}

.wscu-quantity-button.wscu-decrease-quantity {
    border-radius: 4px 0 0 4px;
}

.wscu-quantity-button.wscu-increase-quantity {
    border-radius: 0 4px 4px 0;
}

.wscu-quantity-button svg {
    width: 12px;
    height: 12px;
}

.wscu-quantity-button.wscu-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Add visual indicator for readonly inputs */
.wscu-quantity-input[readonly] {
    background-color: #f8f8f8;
    cursor: not-allowed;
}

.wscu-quantity-selector .wscu-quantity-input {
    width: 32px !important;
    height: 24px !important;
    text-align: center;
    border: 1px solid #eaeaec !important;
    font-size: 12px;
    color:#666 !important;
    padding: 0 4px!important;
    font-weight: 600 !important;
    margin: 0 -1px;
    background: #fff;
}
.wscu-quantity-input:focus{
    border: none;
    outline: none;
}

.wscu-quantity-input::-webkit-inner-spin-button,
.wscu-quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wscu-item-misc {
    min-width: 80px;
    max-width: 100px;
    text-align: right;
    flex-shrink: 0;
}

.wscu-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 5px;
    gap: 2px;
}

/* Estilos removidos - agora usamos .wscu-current-price e .wscu-discount-badge */

.wscu-discounted-text {
    display: inline-block;
    color: #28a745;
    padding: 2px 0;
    font-size: 12px;
    font-weight: 400;
}

.wscu-item-saving-percentage {
    font-weight: 400;
}

/* Empty Cart Styles */
.wscu-empty-cart {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    height: 100%;
    justify-content: center;
}

.fkcart-icon-checkout {
    width: 56px;
    height: 56px;
    color: #24272d;
}

.wscu-empty-cart-message {
    font-size: 18px;
    line-height: 1.3;
    margin:6px 0;
    font-weight: 500;
    color: #24272d;
}

.wscu-empty-cart-message-secondary {
    font-size: 14px;
    line-height: 1.3;
    color: #24272dbe;
    margin:0px;
}

.wscu-empty-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #58757b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-top: 16px;
}

.wscu-empty-cart-button:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}

/* Footer skeleton */
.wscu-cart-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 3;
    border-top: 1px solid #eaeaec;
    margin-top: auto;
    padding: 5px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wscu-cart-footer.loaded {
    opacity: 1;
}

/* Ocultar o footer quando o carrinho estiver vazio */
.wscu-cart-content:has(.wscu-empty-cart) ~ .wscu-cart-footer {
    display: none !important;
}

/* Footer skeleton loading state */
.wscu-cart-footer.loading {
    opacity: 1;
}

.wscu-cart-footer.loading .wscu-subtotal,
.wscu-cart-footer.loading .wscu-checkout-btn,
.wscu-cart-footer.loading .wscu-continue-shopping {
    visibility: hidden;
}

.wscu-cart-footer.loading::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 20px;
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: wscu-skeleton-loading 1.5s infinite linear;
    border-radius: 4px;
}

.wscu-cart-footer.loading::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    height: 45px;
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: wscu-skeleton-loading 1.5s infinite linear;
    border-radius: 4px;
}

/* Cart Footer Styles */
.wscu-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.wsu-checkout--text{
    margin: 0 8px;
}

.wscu-subtotal-label {
    font-size: 14px;
    font-weight: 600;
    color: #24272d;
}

.wscu-subtotal-amount {
    font-size: 14px;
    font-weight: 600;
    color: #24272d;
}

.wscu-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wscu-checkout-btn {
    display: flex;
    justify-content: center;
    font-size: 17px;
    font-weight: 500;
    padding: 12px 14px;
    text-align: center;
    line-height: 20px;
    background: #00ae24;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-family: "Próxima Regular", sans-serif !important;
    margin-top: 5px;
    transition: all .2s ease-out;
}

.wscu-checkout-btn:hover {
    background: #00ae24;;
    opacity: .9;
    color: #fff;
}

/* NOVO: Loading state for checkout button */
.wscu-checkout-btn.loading {
    background: #58757b;
    opacity: 0.8;
    cursor: wait;
    pointer-events: none;
}

.wscu-checkout-btn.loading .wsu-checkout--text {
    opacity: 0.7;
}

.wscu-checkout-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: wscu-spin 1s linear infinite;
}

@keyframes wscu-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wscu-checkout-btn svg {
    width: 20px;
    height: 20px;
    color: currentColor;
}

.wscu-continue-shopping {
    display: block;
    font-size: 14px;
    text-align: center;
    color: #24272dbe;
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 0px;
}

.wscu-continue-shopping:hover {
    color: #24272dbe;
    background: none;
    text-decoration: none;
}

/* Upsell Section Styles */
.wscu-upsell-section {
    width: 100%; /* FIXED: Fill container completely */
    height: 100%;
    background: #f1fcf2;
    display: flex;
    flex-direction: column;
    position: relative; /* FIXED: Relative within its container */
    transition: opacity 0.3s ease; /* FIXED: Only animate opacity */
    transform: none; /* FIXED: Remove transforms completely */
    border: none; /* FIXED: Remove all borders to eliminate visual artifacts */
    outline: none; /* FIXED: Remove outline to eliminate visual artifacts */
    opacity: 0;
    box-shadow: none; /* FIXED: Remove upsell shadow to prevent visual conflicts */
    will-change: opacity; /* FIXED: Only opacity changes */
    overflow: hidden; /* CRITICAL: Ocultar barra de rolagem desktop */
    pointer-events: auto; /* FIXED: Enable clicks when visible */
}

/* When modal is active and cart has items - show upsell container and section */
.wscu-modal.active .wscu-upsell-container {
    pointer-events: auto; /* FIXED: Enable interactions */
}

.wscu-modal.active .wscu-upsell-section {
    opacity: 1; /* FIXED: Show upsell section */
}

/* Keep upsell hidden when cart is empty or modal is closed */
.wscu-modal:not(.active) .wscu-upsell-container,
.wscu-modal.empty-cart .wscu-upsell-container {
    pointer-events: none; /* FIXED: Disable interactions */
}

.wscu-modal:not(.active) .wscu-upsell-section,
.wscu-modal.empty-cart .wscu-upsell-section {
    opacity: 0; /* FIXED: Hide upsell section */
}

/* REMOVED: Duplicate rule - now handled above */

.wscu-upsell-section .wscu-upsell-header {
    padding: 12px !important;
    background: #f1fcf2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.4s;
}

.wscu-modal.active .wscu-upsell-section .wscu-upsell-header {
    opacity: 1;
    transform: translateY(0);
}

.wscu-upsell-section .wscu-upsell-header h3 {
    margin: 8px 0;
    font-size: 14px;
    color: #24272d;
    font-weight: 400;
    text-align: center;
}

.wscu-upsell-section .wscu-upsell-body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    overflow-x: hidden; /* CRITICAL: Esconder overflow horizontal */
    scrollbar-width: none; /* CRITICAL: Firefox - ocultar scrollbar */
    -ms-overflow-style: none; /* CRITICAL: IE/Edge - ocultar scrollbar */
}

/* CRITICAL: Webkit browsers - ocultar scrollbar */
.wscu-upsell-section .wscu-upsell-body::-webkit-scrollbar {
    display: none;
}

.wscu-upsell-section .wscu-upsell-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 16px;
    position: relative;
    margin-bottom: 10px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wscu-upsell-section .wscu-upsell-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

.wscu-upsell-section .wscu-upsell-image {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wscu-upsell-section .wscu-upsell-image img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    border: none;
    border-radius: 0;
}

.wscu-upsell-section .wscu-upsell-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
}

.wscu-upsell-section .wscu-upsell-details h4 {
    margin: 0;
    display: block;
    line-height: 1.43 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #24272d;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.wscu-upsell-section .wscu-upsell-details h4 a {
    color: #24272d;
    text-decoration: none;
}

.wscu-upsell-section .wscu-upsell-details h4 a:hover {
    color: #24272d;
    text-decoration: none;
}

.wscu-upsell-section .wscu-upsell-price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    color: #666 !important;
    gap: 4px;
    font-size: 13px !important;
    width: 100%;
}

.wscu-upsell-section .wscu-upsell-price del {
    color: #24272d;
    font-size: 12px !important;
    line-height: 1.2;
    font-weight: 400;
    text-decoration-color: #24272dbe;
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 3px;
}

.wscu-upsell-section .wscu-upsell-price .woocommerce-Price-amount {
    font-size: 13px !important;
}

.wscu-upsell-section .wscu-upsell-price span,
.wscu-upsell-section .wscu-upsell-price bdi {
    font-size: 12px !important;
    line-height: 1.4;
}

.wscu-upsell-section .wscu-upsell-price ins {
    font-size: 14px !important;
    text-decoration: none;
    font-weight: normal;
    color: #000;
}

.wscu-upsell-section .wscu-upsell-price .woo-custom-installments-group {
    justify-items: center !important;
}

.wscu-upsell-section .wscu-add-product-button.wscu-button {
    padding: 8px 16px;
    font-size: 12px;
    background: transparent;
    border: 1px solid #4CAF50;
    border-radius: 2px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 4px auto 0;
    color: #4CAF50;
    width: 80px;
    text-decoration: none;
    text-transform: none;
    user-select: none;
}

/* Highlight items from upsell */
.wscu-upsell-section .wscu-upsell-product-in-cart {
    background-color: rgba(245, 247, 250, 0.5);
    border-left: 3px solid #4CAF50;
}

/* Upsell Skeleton Styles */
.wscu-upsell-section .wscu-upsell-skeleton-wrapper {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #f1fcf2;
    z-index: 10;
    height: 100%;
    padding: 12px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.wscu-upsell-section .wscu-upsell-skeleton-wrapper.loading {
    display: block;
    opacity: 1;
}

.wscu-upsell-section .wscu-upsell-skeleton-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 20px;
    align-items: center;
}

.wscu-upsell-section .wscu-upsell-skeleton-image {
    width: 70px;
    height: 70px;
    margin: 0 auto;
}

.wscu-upsell-section .wscu-upsell-skeleton-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wscu-upsell-section .wscu-upsell-skeleton-title {
    height: 14px;
    width: 85%;
}

.wscu-upsell-section .wscu-upsell-skeleton-price {
    height: 12px;
    width: 40%;
}

.wscu-upsell-section .wscu-upsell-skeleton-button {
    height: 32px;
    width: 80px;
    margin-top: 4px;
}

/* Animation for items in the upsell section */
@keyframes wscu-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wscu-modal.active .wscu-upsell-section .wscu-upsell-item {
    animation: wscu-slide-up 0.5s forwards;
    opacity: 0;
}

.wscu-modal.active .wscu-upsell-section .wscu-upsell-item:nth-child(1) {
    animation-delay: 0.5s;
}

.wscu-modal.active .wscu-upsell-section .wscu-upsell-item:nth-child(2) {
    animation-delay: 0.6s;
}

.wscu-modal.active .wscu-upsell-section .wscu-upsell-item:nth-child(3) {
    animation-delay: 0.7s;
}

/* Animation for upsell section recreation */
@keyframes wscu-upsell-section-appear {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* When restoring the upsell section after removal */
.wscu-upsell-section.wscu-restoring {
    /* FIXED: Disable animation to prevent visual artifacts */
    animation: none;
}

/* Hide desktop upsell section on mobile */
@media (max-width: 768px) {
    .wscu-upsell-section {
        display: none !important;
    }
}

/* Floating Cart Button */
.wscu-cart-floating-button {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    padding: 0;
}

.wscu-cart-floating-button:hover,
.wscu-cart-floating-button:focus {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.wscu-cart-floating-button-inner {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wscu-cart-floating-button svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.wscu-cart-count {
    position: absolute;
    top: -20px;
    left: -20px;
    background: #debc58;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    height: 20px;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translate(0, 0);
}

/* Hide cart in editor environments */
body.elementor-editor-active .wscu-cart-floating-button,
body.elementor-editor-preview .wscu-cart-floating-button,
body.block-editor-page .wscu-cart-floating-button,
body.customize-preview .wscu-cart-floating-button,
.elementor-editor-active .wscu-cart-floating-button,
.elementor-editor-preview .wscu-cart-floating-button {
    display: none !important;
}

/* Hide modal in editor environments */
body.elementor-editor-active .wscu-modal,
body.elementor-editor-preview .wscu-modal,
body.block-editor-page .wscu-modal,
body.customize-preview .wscu-modal,
.elementor-editor-active .wscu-modal,
.elementor-editor-preview .wscu-modal,
body.elementor-editor-active .wscu-overlay,
body.elementor-editor-preview .wscu-overlay,
body.block-editor-page .wscu-overlay,
body.customize-preview .wscu-overlay,
.elementor-editor-active .wscu-overlay,
.elementor-editor-preview .wscu-overlay {
    display: none !important;
}

/* Skeleton Loading Styles */
@keyframes wscu-skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.wscu-skeleton-wrapper {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.wscu-skeleton-wrapper.loading {
    display: block;
    opacity: 1;
}

.wscu-skeleton-item {
    display: flex;
    padding: 15px;
    gap: 12px;
    position: relative;
    border-bottom: 1px solid #eaeaec;
    animation: wscu-fade-in 0.3s ease-in-out;
}

@keyframes wscu-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wscu-skeleton-base {
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: wscu-skeleton-loading 1.5s infinite linear;
    border-radius: 4px;
}

.wscu-skeleton-image {
    width: 60px;
    height: 60px;
    min-width: 60px;
}

.wscu-skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wscu-skeleton-title {
    height: 16px;
    width: 70%;
}

.wscu-skeleton-price {
    height: 14px;
    width: 40%;
    margin-left: auto; /* Align to the right */
}

.wscu-skeleton-quantity {
    height: 24px;
    width: 72px;
}

/* Cart items loading state */
.wscu-cart-items {
    position: relative;
    min-height: 100%; /* Match minimum height */
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.wscu-cart-items.loading {
    opacity: 0;
}

/* Mobile upsell section - DESKTOP STYLES (hide on desktop) */
.wscu-mobile-upsell-section {
    display: none;
    visibility: hidden; /* Garantir que nunca seja visível em desktop */
}

/* Esconder a seção mobile durante o carregamento */
.wscu-cart-items.loading ~ .wscu-mobile-upsell-section,
.wscu-loading .wscu-mobile-upsell-section {
    display: none !important;
    visibility: hidden !important;
}

/* Estado de loading específico para mobile upsell */
.wscu-mobile-upsell-section.loading {
    display: none !important;
    visibility: hidden !important;
}

/* Esconder a seção mobile quando o carrinho estiver vazio */
.wscu-empty-cart ~ .wscu-mobile-upsell-section,
.wscu-cart-items:empty ~ .wscu-mobile-upsell-section,
.wscu-cart-content:has(.wscu-empty-cart) .wscu-mobile-upsell-section {
    display: none;
    visibility: hidden;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

.wscu-mobile-upsell-header h3 {
    margin: 0; /* Maior espaço abaixo do título */
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding: 0 10px;
}

.wscu-mobile-upsell-items-container {
    display: flex;
    overflow: hidden; /* Esconder completamente o overflow */
    width: 100%;
    margin: 0 auto;
    position: relative;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
}

.wscu-mobile-upsell-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 8px 15px;
    gap: 12px;
    box-shadow: none;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    overflow: hidden;
    height: 90px;
    position: relative;
}

/* Container para imagem */
.wscu-mobile-upsell-image-container {
    width: 70px;
    min-width: 70px;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.wscu-mobile-upsell-image-link {
    width: 70px;
    height: 70px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wscu-mobile-upsell-image-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Container para título e botão */
.wscu-mobile-upsell-content-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 70px;
    overflow: hidden;
    padding-right: 8px; /* Adicionar espaço entre o conteúdo e os preços */
}

.wscu-mobile-upsell-title {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #24272d;
    line-height: 1.4;
    max-height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wscu-mobile-upsell-title a {
    color: #24272d;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
    line-height: 1.4;
    outline: 0;
}

/* Container para preços */
.wscu-mobile-upsell-price-container {
    margin-right: 5px;
}

.wscu-mobile-upsell-price {
    font-size: 14px;
    font-weight: 500;
    color: #24272d;
    font-size: 14px !important;
    font-family: "Próxima Regular", sans-serif !important;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wscu-mobile-upsell-price del {
    font-size: 12px;
    color: #24272d;
    opacity: 0.7;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.wscu-mobile-upsell-price ins {
    font-weight: 600;
    text-decoration: none;
    color: #24272d;
}

.wscu-mobile-add-button {
    padding: 8px 16px !important;
    font-size: 13px !important;
    margin-top: auto; /* Push button to bottom of container */
    margin-bottom: 4px; /* Small space at bottom */
    background: transparent !important;
    border: 1px solid #4CAF50 !important;
    border-radius: 3px;
    color: #4CAF50 !important;
    cursor: pointer;
    font-weight: 600 !important;
    line-height: 1;
    text-transform: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    align-self: flex-start; /* Alinhamento à esquerda */
}

.wscu-mobile-add-button:hover {
    background-color: #4CAF50 !important;
    color: #fff !important;
}

/* Ajustes nos botões de navegação */
.wscu-mobile-upsell-nav-prev, 
.wscu-mobile-upsell-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
}

.wscu-mobile-upsell-nav-prev {
    left: 0;
}

.wscu-mobile-upsell-nav-next {
    right: 0;
}

/* Restaurando os estilos para os ícones SVG */
.wscu-mobile-upsell-nav-prev svg,
.wscu-mobile-upsell-nav-next svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

/* Estilo para botões de navegação desabilitados */
.wscu-mobile-upsell-nav-prev.disabled, 
.wscu-mobile-upsell-nav-next.disabled {
    opacity: 0.3;
    cursor: default;
}

/* Indicadores de navegação em forma de traços */
.wscu-mobile-upsell-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0 0;
    padding: 2px 0;
    min-height: 34px;
    gap: 6px; /* Reduzir o espaço entre os indicadores */
    bottom: 4px;
    left: 0;
    right: 0;
}

.wscu-mobile-upsell-indicator {
    width: 16px; /* Reduzido para ficar mais proporcional */
    height: 3px;
    background-color: #ccc;
    opacity: 0.5;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.wscu-mobile-upsell-indicator.active {
    background-color: #4CAF50;
    opacity: 1;
}

/* Estilo para o texto de desconto nos upsells móveis - removido 'Promo' */
.wscu-mobile-upsell-price .wscu-discounted-text {
    display: none; /* Ocultar o texto "Promo" */
}

/* Estilo para a porcentagem de desconto nos upsells móveis */
.wscu-mobile-upsell-price .wscu-item-saving-percentage {
    display: none; /* Ocultar a porcentagem de desconto */
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .wscu-mobile-upsell-price .wscu-discounted-text {
        display: none; /* Garantir que esteja oculto também em mobile */
    }
    
    /* Ajustar cores dos preços no mobile upsell */
    .wscu-mobile-upsell-price del {
        color: #24272d; /* Cor do preço original (riscado) */
        opacity: 0.7; /* Manter um pouco mais claro para diferenciar */
    }
    
    .wscu-mobile-upsell-price ins {
        color: #24272d; /* Cor do preço final */
        font-weight: 600;
    }


    .wscu-cart-floating-button{
        right: 30px;
        bottom: 30px;
        width: 60px;
        height: 60px;
    }

    .wscu-modal {
        right: -100%; /* Start fully off-screen */
        width: 100%;
        height: 100%; /* Use 100% instead of 100vh */
        max-height: 100%; /* Use 100% instead of 100vh */
        overflow: hidden; /* Prevent overflow */
        transition: right 0.3s ease-in-out; /* Ensure transition is smooth */
        top: 0;
        bottom: 0;
        position: fixed;
        background: #fff; /* FIXED: Restore white background for mobile */
    }

    .wscu-modal.active {
        right: 0; /* Slide in to fill the screen */
    }

    .wscu-upsell-container {
        display: none !important; /* FIXED: Hide upsell container completely on mobile */
    }
    
    .wscu-cart-container {
        width: 100%; /* FIXED: Full width on mobile */
        position: relative; /* FIXED: Relative positioning on mobile */
        right: auto; /* FIXED: Reset positioning */
        top: auto; /* FIXED: Reset positioning */
    }

    /* Improve mobile layout with proper flex structure */
    .wscu-cart-section {
        width: 100%;
        border-left: none; /* Remove border on mobile */
        height: 100%; /* Use 100% instead of 100vh */
        max-height: 100%; /* Use 100% instead of 100vh */
        display: flex;
        flex-direction: column;
        overflow: hidden; /* Prevent overflow */
        flex: 1;
        position: relative; /* FIXED: Override absolute positioning on mobile */
        right: auto; /* FIXED: Reset positioning */
        top: auto; /* FIXED: Reset positioning */
        z-index: auto; /* FIXED: Reset z-index */
        box-shadow: none; /* FIXED: Remove shadow on mobile */
    }

    /* Keep the cart header at the top */
    .wscu-cart-header {
        flex-shrink: 0;
        height: auto; /* Allow header to size naturally */
    }

    /* Make cart body fill available space with proper overflow */
    .wscu-cart-body {
        flex: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: 0; /* Allow flex to determine the height */
        min-height: 0; /* Allow flex to determine the height */
    }

    /* Allow only cart content to scroll */
    .wscu-cart-content {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        min-height: 0; /* Important for flex children with overflow */
    }

    /* Fix footer at the bottom */

    .wscu-upsell-section {
        display: none !important; /* Hide DESKTOP upsell section on mobile */
    }

    /* CRITICAL: Mobile Upsell Styles - show on mobile devices only */
    .wscu-mobile-upsell-section {
        display: block; /* Override the desktop hiding */
        visibility: visible; /* Garantir que seja sempre visível em mobile */
        padding: 10px 0; /* Remove horizontal padding from section */
        background-color: #f1fcf2; /* Cor de fundo corrigida para verde claro */
        margin-top: 0; /* Remove top margin to avoid gap */
        border-top: 1px solid #eee;
        position: relative; /* Change from sticky to relative */
        bottom: auto; /* Let it flow naturally */
        z-index: 9; /* Just under the footer z-index */
        min-height: auto; /* Allow it to be as small as needed */
        max-height: none; /* Remove max-height restriction */
        flex-shrink: 0; /* Prevent shrinking */
        overflow: hidden; /* Ensure container doesn't show overflow */
    }
    
    /* Esconder a seção mobile durante o carregamento mesmo no mobile */
    .wscu-cart-items.loading ~ .wscu-mobile-upsell-section,
    .wscu-loading .wscu-mobile-upsell-section,
    .wscu-mobile-upsell-section.loading {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }
    
    .wscu-mobile-upsell-header h3 {

        font-size: 14px;
        font-weight: 600;
        color: #333;
        text-align: center;
        padding: 0 10px;
    }
    
    .wscu-mobile-upsell-items-container {
        display: flex;
        overflow: hidden; /* Esconder completamente o overflow */
        width: 100%;
        margin: 0 auto;
        position: relative;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        gap: 0;
        padding: 0; /* Remove container padding */
        box-sizing: border-box;
    }
    
    .wscu-mobile-upsell-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        flex-shrink: 0;
        scroll-snap-align: start;
        background-color: transparent;
        border: none;
        border-radius: 0;
        padding: 8px 15px;
        gap: 12px;
        box-shadow: none;
        box-sizing: border-box;
        transition: transform 0.3s ease;
        overflow: hidden;
        height: 90px;
        position: relative;
    }
    
    /* Container para imagem */
    .wscu-mobile-upsell-image-container {
        width: 70px;
        min-width: 70px;
        flex-shrink: 0;
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .wscu-mobile-upsell-image-link {
        width: 70px;
        height: 70px;
        border: 1px solid #f0f0f0;
        border-radius: 4px;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .wscu-mobile-upsell-image-link img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    /* Container para título e botão */
    .wscu-mobile-upsell-content-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
        min-height: 70px;
        overflow: hidden;
        padding-right: 8px; /* Adicionar espaço entre o conteúdo e os preços */
    }
    
    .wscu-mobile-upsell-title {
        font-size: 14px;
        margin-bottom: 6px;
                  font-weight: 600;
          color: #24272d;
          line-height: 1.4;
        max-height: 36px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .wscu-mobile-upsell-title a {
        color: #24272d;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        display: block;
        margin-bottom: 2px;
                  line-height: 1.4;
          outline: 0;
      }

    
    .wscu-mobile-upsell-price {
        font-size: 14px;
        font-weight: 500;
        color: #24272d;
        margin-top: 8px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .wscu-mobile-upsell-price del {
        font-size: 12px;
        color: #24272d;
        opacity: 0.7;
        text-decoration: line-through;
        margin-bottom: 2px;
    }
    
    .wscu-mobile-upsell-price ins {
        font-weight: 600;
        text-decoration: none;
        color: #24272d;
    }
    
    .wscu-mobile-add-button {
        padding: 8px 16px !important;
        font-size: 13px !important;
        margin-top: auto; /* Push button to bottom of container */
        margin-bottom: 4px; /* Small space at bottom */
        background: transparent !important;
        border: 1px solid #4CAF50 !important;
        border-radius: 3px;
        color: #4CAF50 !important;
        cursor: pointer;
        font-weight: 600 !important;
        line-height: 1;
        text-transform: none;
        transition: background-color 0.2s ease, color 0.2s ease;
        align-self: flex-start; /* Alinhamento à esquerda */
    }
    
    .wscu-mobile-add-button:hover {
        background-color: #4CAF50 !important;
        color: #fff !important;
    }
    
    /* Ajustes nos botões de navegação */
    .wscu-mobile-upsell-nav-prev, 
    .wscu-mobile-upsell-nav-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        background: transparent;
        border: none;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0.7;
        padding: 0;
        transition: opacity 0.3s ease; /* Adicionar transição suave */
    }

    /* CRITICAL: Ocultar botões laterais quando há apenas um produto */
    .wscu-mobile-upsell-section.single-item .wscu-mobile-upsell-nav-prev,
    .wscu-mobile-upsell-section.single-item .wscu-mobile-upsell-nav-next {
        display: none !important;
    }
    
    .wscu-mobile-upsell-nav-prev {
        left: 0;
    }
    
    .wscu-mobile-upsell-nav-next {
        right: 0;
    }
    
    /* Restaurando os estilos para os ícones SVG */
    .wscu-mobile-upsell-nav-prev svg,
    .wscu-mobile-upsell-nav-next svg {
        width: 20px;
        height: 20px;
        fill: #333;
    }
    
    /* Estilo para botões de navegação desabilitados */
    .wscu-mobile-upsell-nav-prev.disabled, 
    .wscu-mobile-upsell-nav-next.disabled {
        opacity: 0.3;
        cursor: default;
    }
    
    /* Indicadores de navegação em forma de traços */
    .wscu-mobile-upsell-indicators {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 12px 0 0;
        padding: 2px 0;
        min-height: 34px;
        gap: 6px; /* Reduzir o espaço entre os indicadores */
        bottom: 4px;
        left: 0;
        right: 0;
    }
    
    .wscu-mobile-upsell-indicator {
        width: 16px; /* Reduzido para ficar mais proporcional */
        height: 3px;
        background-color: #ccc;
        opacity: 0.5;
        transition: opacity 0.3s ease, background-color 0.3s ease;
    }
    
    .wscu-mobile-upsell-indicator.active {
        background-color: #4CAF50;
        opacity: 1;
    }
    
    /* CRITICAL: Sempre exibir indicadores mesmo com um produto único */
    .wscu-mobile-upsell-section.single-item .wscu-mobile-upsell-indicators {
        display: flex !important;
    }
    
    .wscu-mobile-upsell-section.single-item .wscu-mobile-upsell-indicator {
        background-color: #4CAF50;
        opacity: 1;
    }
}

/* Estilos para o widget do mini carrinho */
.wscu-mini-cart-widget {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.wscu-mini-cart-widget-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wscu-mini-cart-widget-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #debc58;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    height: 20px;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.wscu-mini-cart-widget-text {
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #f9f9f9;
    text-align: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Responsivo para o widget do mini carrinho */
@media (max-width: 768px) {
    .wscu-mini-cart-widget {
        justify-content: center;
    }
    
    .wscu-mini-cart-widget-text {
        font-size: 10px;
    }
    
    .wscu-mini-cart-widget-icon {
        margin: 0; /* Centraliza o ícone quando sozinho */
    }
    
    .wscu-cart-floating-button {
        width: 60px;
        height: 60px;
        right: 30px;
        bottom: 30px;
    }
}

/* Estilos para telas muito pequenas (menos de 480px) */
@media (max-width: 480px) {
    .wscu-mini-cart-widget {
        padding: 8px;
    }
    
    .wscu-mini-cart-widget-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .wscu-mini-cart-widget-count {
        height: 18px;
        min-width: 18px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }
}

/* Auto-slider enhancement styles */
.wscu-mobile-upsell-items-container {
    transition: all 0.3s ease;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
}

.wscu-mobile-upsell-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Slide focus effect */
.wscu-mobile-upsell-item.active {
    transform: scale(1.02);
    z-index: 2;
}

/* Auto-sliding indicator animation */
@keyframes wscu-autoslide-progress {
    from { width: 0; }
    to { width: 100%; }
}

.wscu-mobile-upsell-indicator {
    position: relative;
    overflow: hidden;
    background-color: #ccc;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.wscu-mobile-upsell-indicator.active {
    opacity: 1;
    background-color: #ccc;
}

.wscu-mobile-upsell-indicator.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #4CAF50;
    animation: wscu-autoslide-progress 5s linear;
    z-index: -1;
}

/* Pause animation when hovered */
.wscu-mobile-upsell-section:hover .wscu-mobile-upsell-indicator.active::before {
    animation-play-state: paused;
}

/* Auto-sliding indicator state */
.wscu-mobile-upsell-indicators.auto-sliding {
    position: relative;
}

/* Mobile upsell skeleton loading */
.wscu-mobile-upsell-skeleton {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f1fcf2;
    z-index: 50;
    padding: 10px 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.wscu-mobile-upsell-skeleton.loading {
    display: block;
    opacity: 1;
}

.wscu-mobile-upsell-skeleton-header {
    padding: 6px 0;
    text-align: center;
}

.wscu-mobile-upsell-skeleton-title {
    height: 16px;
    width: 150px;
    margin: 0 auto;
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: wscu-skeleton-loading 1.5s infinite linear;
    border-radius: 4px;
}

.wscu-mobile-upsell-skeleton-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 8px 15px;
    gap: 12px;
    height: 90px;
}

.wscu-mobile-upsell-skeleton-image {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 4px;
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: wscu-skeleton-loading 1.5s infinite linear;
}

.wscu-mobile-upsell-skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 70px;
}

.wscu-mobile-upsell-skeleton-text {
    height: 14px;
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: wscu-skeleton-loading 1.5s infinite linear;
    border-radius: 4px;
    margin-bottom: 4px;
}

.wscu-mobile-upsell-skeleton-title-text {
    width: 80%;
}

.wscu-mobile-upsell-skeleton-title-text:nth-child(2) {
    width: 60%;
}

.wscu-mobile-upsell-skeleton-price-text {
    width: 50px;
    height: 12px;
    margin-left: auto;
}

.wscu-mobile-upsell-skeleton-button {
    width: 80px;
    height: 32px;
    margin-top: auto;
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: wscu-skeleton-loading 1.5s infinite linear;
    border-radius: 3px;
}

.wscu-mobile-upsell-skeleton-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0 0;
    padding: 2px 0;
    min-height: 34px;
    gap: 6px;
}

.wscu-mobile-upsell-skeleton-indicator {
    width: 16px;
    height: 3px;
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: wscu-skeleton-loading 1.5s infinite linear;
    border-radius: 2px;
}

/* === VARIATION ATTRIBUTES STYLES === */
/* Styles for displaying variation attributes in cart items */
/* Requirements: 1.3 - Show product name with variation attributes */

.wscu-variation-attributes {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.wscu-variation-attr {
    display: inline;
    color: #666;
}

.wscu-variation-attr:not(:last-child)::after {
    content: ', ';
}

/* Ensure variation name displays properly */
.wscu-item-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mobile responsive adjustments for variation attributes */
@media (max-width: 768px) {
    .wscu-variation-attributes {
        font-size: 11px;
    }
}

/* === END VARIATION ATTRIBUTES STYLES === */

/* === REWARD PROGRESS BAR STYLES === */

.wscu-reward-panel {
    padding: 12px 15px;
}

.wscu-reward-title {
    font-size: 12px;
    color: #374151;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.5;
}

.wscu-reward-title span {
    color: #24272dbe;
}

.wscu-reward-title .wscu-reward-remaining {
    font-weight: bold;
    color: #24272dbe;
}

.wscu-reward-title .wscu-reward-next {
    font-weight: bold;
    color: #24272dbe;
}

.wscu-reward-title .wscu-reward-achieved {
    color: #24272dbe;
    font-weight: 600;
}

.wscu-reward-bar {
    position: relative;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: visible;
    margin-bottom: 30px;
}

.wscu-reward-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    background-image: 
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, .15),
            rgba(255, 255, 255, .15) 10px,
            transparent 10px,
            transparent 20px
        ),
        linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    background-size: 28px 28px, 100% 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
    animation: wscu-progress-stripes 1s linear infinite;
    z-index: 1;
}

@keyframes wscu-progress-stripes {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 28px 0, 0 0;
    }
}

.wscu-reward-milestones {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 2;
}

.wscu-reward-milestone {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.wscu-milestone-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wscu-milestone-icon svg {
    width: 18px;
    height: 18px;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.wscu-milestone-icon svg path {
    fill: currentColor;
}

.wscu-milestone-label {
    position: absolute;
    top: 40px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.3s ease;
}

/* Milestone achieved state */
.wscu-reward-milestone.wscu-milestone-achieved .wscu-milestone-icon {
    background: #2DA815;
    border-color: #fff;
}

.wscu-reward-milestone.wscu-milestone-achieved .wscu-milestone-icon svg {
    color: #fff;
}

.wscu-reward-milestone.wscu-milestone-achieved .wscu-milestone-label {
    color: #16a34a;
}

/* Animation for milestone achievement */
@keyframes wscu-milestone-pulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.15);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

.wscu-reward-milestone.wscu-just-achieved {
    animation: wscu-milestone-pulse 0.5s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wscu-reward-panel {
        padding: 10px 12px;
    }

    .wscu-reward-title {
        font-size: 12px;
    }

    .wscu-milestone-icon {
        width: 32px;
        height: 32px;
    }

    .wscu-milestone-icon svg {
        width: 16px;
        height: 16px;
    }

    .wscu-milestone-label {
        font-size: 10px;
        top: 36px;
    }

    .wscu-reward-bar {
        margin-bottom: 28px;
    }
}

/* === END REWARD PROGRESS BAR STYLES === */

/* Hide reward panel when cart is empty */
.wscu-reward-panel.wscu-reward-hidden {
    display: none !important;
}
