/*
 * Woocart CSS — v1.1 — Fiel à imagem de referência
 */

/* ============================================================
   WRAPPER & LAYOUT
   ============================================================ */
.csl-woocart-wrapper {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

.csl-woocart-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.csl-woocart-items-section {
    flex: 1 1 62%;
    min-width: 0;
}

.csl-woocart-summary-section {
    flex: 0 1 320px;
    min-width: 280px;
}

.csl-woocart-box {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   TABELA DE ITENS
   ============================================================ */
.csl-woocart-items table.cart {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 20px !important;
    border: none !important;
    background: transparent !important;
}

.csl-woocart-items table.cart thead tr {
    border-bottom: 2px solid #eeeeee !important;
    background: transparent !important;
}

.csl-woocart-items table.cart th {
    text-align: left !important;
    padding: 12px 10px !important;
    border: none !important;
    color: #666 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    background: transparent !important;
}

.csl-woocart-items table.cart th.product-price,
.csl-woocart-items table.cart th.product-subtotal {
    text-align: right !important;
}

.csl-woocart-items table.cart th.product-quantity {
    text-align: center !important;
}

.csl-woocart-items table.cart td {
    padding: 18px 10px !important;
    border: none !important;
    border-bottom: 1px solid #f2f2f2 !important;
    vertical-align: middle !important;
    background: transparent !important;
    color: #333 !important;
    font-size: 14px !important;
}

/* Remover qualquer fundo cinza herdado do tema */
.csl-woocart-items table.cart tr,
.csl-woocart-items table.cart tbody tr,
.csl-woocart-items table.cart tr:nth-child(odd),
.csl-woocart-items table.cart tr:nth-child(even) {
    background: transparent !important;
    background-color: transparent !important;
}

.csl-woocart-items table.cart tbody tr:last-child td {
    border-bottom: none !important;
}

.csl-woocart-items table.cart td.product-price,
.csl-woocart-items table.cart td.product-subtotal {
    text-align: right !important;
}

.csl-woocart-items table.cart td.product-quantity {
    text-align: center !important;
}

.csl-woocart-items table.cart td.product-subtotal {
    font-weight: 700 !important;
    color: #222 !important;
}

/* ============================================================
   IMAGEM DO PRODUTO
   ============================================================ */
.csl-woocart-items .product-thumbnail img {
    width: 60px !important;
    height: auto !important;
    border-radius: 6px !important;
    display: block !important;
}

/* ============================================================
   NOME DO PRODUTO
   ============================================================ */
.csl-woocart-items .product-name a {
    color: #2271b1 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.csl-woocart-items .product-name a:hover {
    text-decoration: underline !important;
}

.csl-woocart-items .product-name .variation dd,
.csl-woocart-items .product-name .variation dt,
.csl-woocart-items .product-name .wc-item-meta,
.csl-woocart-items .product-name .wc-item-meta li,
.csl-woocart-items .product-name p.wc-item-meta {
    font-size: 13px !important;
    color: #777 !important;
    margin: 2px 0 !important;
}

/* ============================================================
   BOTAO REMOVER
   ============================================================ */
.csl-woocart-items td.product-remove {
    width: 36px !important;
    padding: 18px 4px !important;
}

.csl-woocart-items .product-remove a.remove {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 1px solid #ddd !important;
    color: #999 !important;
    text-decoration: none !important;
    font-size: 18px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
}

.csl-woocart-items .product-remove a.remove:hover {
    background: #ff4d4d !important;
    border-color: #ff4d4d !important;
    color: #fff !important;
}

/* ============================================================
   CONTROLE DE QUANTIDADE [-] N [+]
   ============================================================ */
.csl-woocart-items .quantity {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    width: auto !important;
    height: 36px !important;
    margin: 0 auto !important;
    background: #fff !important;
    box-shadow: none !important;
}

.csl-woocart-items .quantity input.qty,
.csl-woocart-items .quantity input[type="number"] {
    width: 44px !important;
    height: 36px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    box-shadow: none !important;
    outline: none !important;
    min-height: auto !important;
}

.csl-woocart-items .quantity input.qty::-webkit-inner-spin-button,
.csl-woocart-items .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
}

.csl-qty-btn {
    width: 32px !important;
    height: 36px !important;
    background: #fff !important;
    border: none !important;
    color: #555 !important;
    font-size: 17px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    transition: background 0.15s ease !important;
    flex-shrink: 0 !important;
}

.csl-qty-btn:hover {
    background: #f5f5f5 !important;
    color: #111 !important;
}

/* ============================================================
   BOTAO ATUALIZAR CARRINHO
   ============================================================ */
.csl-woocart-actions {
    margin-top: 5px;
}

.csl-woocart-update-btn {
    background: var(--csl-wc-btn-bg, #2271b1) !important;
    color: var(--csl-wc-btn-text, #ffffff) !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    display: inline-block !important;
}

.csl-woocart-update-btn:hover {
    background: var(--csl-wc-btn-bg-hover, #135e96) !important;
    color: var(--csl-wc-btn-text-hover, #fff) !important;
}

/* ============================================================
   RESUMO (lado direito) — SEM fundos cinza
   ============================================================ */
.csl-woocart-summary h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #eee !important;
    text-transform: none !important;
    background: transparent !important;
}

.csl-woocart-summary table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 0 !important;
    background: transparent !important;
}

/* Zerar TODOS os fundos e bordas da tabela de totais */
.csl-woocart-summary table.shop_table tr,
.csl-woocart-summary table.shop_table thead,
.csl-woocart-summary table.shop_table tbody,
.csl-woocart-summary table.shop_table tr:nth-child(odd),
.csl-woocart-summary table.shop_table tr:nth-child(even) {
    background: transparent !important;
    background-color: transparent !important;
}

.csl-woocart-summary table.shop_table tr {
    border: none !important;
}

.csl-woocart-summary table.shop_table th {
    text-align: left !important;
    padding: 14px 0 !important;
    color: #555 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    border: none !important;
    background: transparent !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.csl-woocart-summary table.shop_table td {
    text-align: right !important;
    padding: 14px 0 !important;
    color: #222 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    background: transparent !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Linha de Subtotal — separador abaixo */
.csl-woocart-summary tr.cart-subtotal th,
.csl-woocart-summary tr.cart-subtotal td {
    padding-bottom: 16px !important;
}

/* ============================================================
   OPCOES DE FRETE — Estilo idêntico ao woocheckout
   ============================================================ */

/* ============================================================
   CARDS DE FRETE CUSTOMIZADOS (render_shipping_cards)
   ============================================================ */
.csl-woocart-shipping-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Cada card — label é o container flex */
.csl-woocart-shipping-cards .csl-shipping-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border: 2px solid #e0e5eb !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    background: #fff !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    line-height: 1.4 !important;
}

.csl-woocart-shipping-cards .csl-shipping-card:hover {
    border-color: var(--csl-wc-btn-bg, #2271b1) !important;
    background: #f0f7ff !important;
}

.csl-woocart-shipping-cards .csl-shipping-card.selected {
    border-color: var(--csl-wc-btn-bg, #2271b1) !important;
    background: #f0f7ff !important;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1) !important;
}

.csl-woocart-shipping-cards .csl-shipping-card input[type="radio"] {
    accent-color: var(--csl-wc-btn-bg, #2271b1) !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
width: auto !important;
    height: 36px !important;
    margin: 0 auto !important;
    background: #fff !important;
    box-shadow: none !important;
}

.csl-woocart-items .quantity input.qty,
.csl-woocart-items .quantity input[type="number"] {
    width: 44px !important;
    height: 36px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    box-shadow: none !important;
    outline: none !important;
    min-height: auto !important;
}

.csl-woocart-items .quantity input.qty::-webkit-inner-spin-button,
.csl-woocart-items .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
}

.csl-qty-btn {
    width: 32px !important;
    height: 36px !important;
    background: #fff !important;
    border: none !important;
    color: #555 !important;
    font-size: 17px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    transition: background 0.15s ease !important;
    flex-shrink: 0 !important;
}

.csl-qty-btn:hover {
    background: #f5f5f5 !important;
    color: #111 !important;
}

/* ============================================================
   BOTAO ATUALIZAR CARRINHO
   ============================================================ */
.csl-woocart-actions {
    margin-top: 5px;
}

.csl-woocart-update-btn {
    background: var(--csl-wc-btn-bg, #2271b1) !important;
    color: var(--csl-wc-btn-text, #ffffff) !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    display: inline-block !important;
}

.csl-woocart-update-btn:hover {
    background: var(--csl-wc-btn-bg-hover, #135e96) !important;
    color: var(--csl-wc-btn-text-hover, #fff) !important;
}

/* ============================================================
   RESUMO (lado direito) — SEM fundos cinza
   ============================================================ */
.csl-woocart-summary h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #eee !important;
    text-transform: none !important;
    background: transparent !important;
}

.csl-woocart-summary table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 0 !important;
    background: transparent !important;
}

/* Zerar TODOS os fundos e bordas da tabela de totais */
.csl-woocart-summary table.shop_table tr,
.csl-woocart-summary table.shop_table thead,
.csl-woocart-summary table.shop_table tbody,
.csl-woocart-summary table.shop_table tr:nth-child(odd),
.csl-woocart-summary table.shop_table tr:nth-child(even) {
    background: transparent !important;
    background-color: transparent !important;
}

.csl-woocart-summary table.shop_table tr {
    border: none !important;
}

.csl-woocart-summary table.shop_table th {
    text-align: left !important;
    padding: 14px 0 !important;
    color: #555 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    border: none !important;
    background: transparent !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.csl-woocart-summary table.shop_table td {
    text-align: right !important;
    padding: 14px 0 !important;
    color: #222 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    background: transparent !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Linha de Subtotal — separador abaixo */
.csl-woocart-summary tr.cart-subtotal th,
.csl-woocart-summary tr.cart-subtotal td {
    padding-bottom: 16px !important;
}

/* ============================================================
   OPCOES DE FRETE — Estilo idêntico ao woocheckout
   ============================================================ */

/* ============================================================
   CARDS DE FRETE CUSTOMIZADOS (render_shipping_cards)
   ============================================================ */
.csl-woocart-shipping-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Cada card — label é o container flex */
.csl-woocart-shipping-cards .csl-shipping-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border: 2px solid #e0e5eb !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    background: #fff !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    line-height: 1.4 !important;
}

.csl-woocart-shipping-cards .csl-shipping-card:hover {
    border-color: var(--csl-wc-btn-bg, #2271b1) !important;
    background: #f0f7ff !important;
}

.csl-woocart-shipping-cards .csl-shipping-card.selected {
    border-color: var(--csl-wc-btn-bg, #2271b1) !important;
    background: #f0f7ff !important;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1) !important;
}

.csl-woocart-shipping-cards .csl-shipping-card input[type="radio"] {
    accent-color: var(--csl-wc-btn-bg, #2271b1) !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

.csl-woocart-shipping-cards .csl-shipping-name {
    /* flex: none !important; */
}

    width: 44px !important;
    height: 36px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    box-shadow: none !important;
    outline: none !important;
    min-height: auto !important;
}

.csl-woocart-items .quantity input.qty::-webkit-inner-spin-button,
.csl-woocart-items .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
}

.csl-qty-btn {
    width: 32px !important;
    height: 36px !important;
    background: #fff !important;
    border: none !important;
    color: #555 !important;
    font-size: 17px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    transition: background 0.15s ease !important;
    flex-shrink: 0 !important;
}

.csl-qty-btn:hover {
    background: #f5f5f5 !important;
    color: #111 !important;
}

/* ============================================================
   BOTAO ATUALIZAR CARRINHO
   ============================================================ */
.csl-woocart-actions {
    margin-top: 5px;
}

.csl-woocart-update-btn {
    background: var(--csl-wc-btn-bg, #2271b1) !important;
    color: var(--csl-wc-btn-text, #ffffff) !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    display: inline-block !important;
}

.csl-woocart-update-btn:hover {
    background: var(--csl-wc-btn-bg-hover, #135e96) !important;
    color: var(--csl-wc-btn-text-hover, #fff) !important;
}

/* ============================================================
   RESUMO (lado direito) — SEM fundos cinza
   ============================================================ */
.csl-woocart-summary h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #eee !important;
    text-transform: none !important;
    background: transparent !important;
}

.csl-woocart-summary table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 0 !important;
    background: transparent !important;
}

/* Zerar TODOS os fundos e bordas da tabela de totais */
.csl-woocart-summary table.shop_table tr,
.csl-woocart-summary table.shop_table thead,
.csl-woocart-summary table.shop_table tbody,
.csl-woocart-summary table.shop_table tr:nth-child(odd),
.csl-woocart-summary table.shop_table tr:nth-child(even) {
    background: transparent !important;
    background-color: transparent !important;
}

.csl-woocart-summary table.shop_table tr {
    border: none !important;
}

.csl-woocart-summary table.shop_table th {
    text-align: left !important;
    padding: 14px 0 !important;
    color: #555 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    border: none !important;
    background: transparent !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.csl-woocart-summary table.shop_table td {
    text-align: right !important;
    padding: 14px 0 !important;
    color: #222 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    background: transparent !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Linha de Subtotal — separador abaixo */
.csl-woocart-summary tr.cart-subtotal th,
.csl-woocart-summary tr.cart-subtotal td {
    padding-bottom: 16px !important;
}

/* ============================================================
   OPCOES DE FRETE — Estilo idêntico ao woocheckout
   ============================================================ */

/* ============================================================
   CARDS DE FRETE CUSTOMIZADOS (render_shipping_cards)
   ============================================================ */
.csl-woocart-shipping-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.csl-shipping-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s;
    background: #fff;
    width: 100% !important;
    box-sizing: border-box !important;
}

.csl-shipping-card:hover {
    border-color: var(--csl-wc-btn-bg, #2271b1);
    background: #f8fbff;
}

.csl-shipping-card.selected {
    border-color: var(--csl-wc-btn-bg, #2271b1);
    background: #f0f7ff;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.csl-shipping-card input[type="radio"] {
    margin: 0 !important;
    flex-shrink: 0;
}

.csl-shipping-name {
    font-size: 11px;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
    flex: 1;
    word-break: break-word;
}

.csl-shipping-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--csl-wc-btn-bg, #2271b1);
    white-space: nowrap;
    margin-left: auto;
}

.csl-woocart-shipping-dest {
    font-size: 11px;
    color: #888;
    margin: 10px 0 0 0 !important;
    line-height: 1.5 !important;
}

/* Avisos de Frete */
.csl-woocart-shipping-notice {
    background: #f0f7ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.csl-woocart-shipping-notice i {
    font-size: 24px;
    color: #3182ce;
    margin-bottom: 10px;
    display: block !important;
}

.csl-woocart-shipping-notice p {
    font-size: 14px;
    font-weight: 600;
    color: #2c5282;
    margin: 0 0 12px 0 !important;
    line-height: 1.4 !important;
}

.csl-woocart-shipping-notice.warning {
    background: #fff5f5;
    border-color: #feb2b2;
}

.csl-woocart-shipping-notice.warning i {
    color: #e53e3e;
}

.csl-woocart-shipping-notice.warning p {
    color: #9b2c2c;
}

.csl-woocart-no-shipping {
    font-size: 13px;
    color: #888;
    padding: 10px 0;
}

/* Calculador de Frete */
.csl-woocart-shipping-calculator-wrapper {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.csl-woocart-shipping-calculator-wrapper .shipping-calculator-button {
    color: var(--csl-wc-btn-bg, #2271b1);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 10px;
}

.csl-woocart-shipping-calculator-wrapper .shipping-calculator-form {
    display: block !important; /* Forçar exibição se necessário */
    margin-top: 10px;
}

.csl-woocart-shipping-calculator-wrapper input[type="text"],
.csl-woocart-shipping-calculator-wrapper select {
    width: 100% !important;
    height: 38px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 0 10px !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
}

.csl-woocart-shipping-calculator-wrapper button[name="calc_shipping"] {
    width: 100% !important;
    background: #333 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

/* ============================================================
   LINHA DE TOTAL — Destaque, sem fundo
   ============================================================ */
.csl-woocart-summary tr.order-total th,
.csl-woocart-summary tr.order-total td {
    border: none !important;
    border-top: 2px solid #eee !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    color: var(--csl-wc-btn-bg, #2271b1) !important;
    background: transparent !important;
}

.csl-woocart-summary tr.order-total th {
    color: #222 !important;
    font-size: 16px !important;
}

/* ============================================================
   CUPOM
   ============================================================ */
.csl-woocart-coupon {
    margin: 4px 0 18px 0;
}

.csl-woocart-coupon .coupon {
    display: flex;
    gap: 8px;
}

.csl-coupon-input {
    flex: 1 !important;
    height: 42px !important;
    padding: 0 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
    background: #fff !important;
    color: #555 !important;
}

.csl-coupon-input::placeholder {
    color: #aaa !important;
}

.csl-coupon-input:focus {
    border-color: var(--csl-wc-btn-bg, #2271b1) !important;
}

.csl-apply-coupon {
    height: 42px !important;
    padding: 0 18px !important;
    background: #333 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background 0.2s ease !important;
}

.csl-apply-coupon:hover {
    background: #111 !important;
}

/* ============================================================
   BOTAO CHECKOUT
   ============================================================ */
.wc-proceed-to-checkout a.checkout-button,
.wc-proceed-to-checkout .checkout-button {
    display: block !important;
    width: 100% !important;
    background: var(--csl-wc-btn-bg, #2271b1) !important;
    color: var(--csl-wc-btn-text, #ffffff) !important;
    text-align: center !important;
    padding: 16px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
    box-sizing: border-box !important;
    margin-top: 8px !important;
    border: none !important;
    cursor: pointer !important;
    letter-spacing: 0.02em !important;
}

.wc-proceed-to-checkout a.checkout-button:hover,
.wc-proceed-to-checkout .checkout-button:hover {
    background: var(--csl-wc-btn-bg-hover, #135e96) !important;
    color: var(--csl-wc-btn-text-hover, #ffffff) !important;
}

/* ============================================================
   ICONE DO CARRINHO FLUTUANTE — usar variaveis do painel
   ============================================================ */
.csl-woocart-floating-trigger {
    color: var(--csl-fl-icon-color, #333333) !important;
    font-size: var(--csl-fl-icon-size, 24px) !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.csl-woocart-floating-trigger:hover {
    color: var(--csl-fl-icon-hover, #2271b1) !important;
}

.csl-woocart-floating-trigger i {
    font-size: var(--csl-fl-icon-size, 24px) !important;
    color: inherit !important;
}

.csl-woocart-floating-badge {
    position: absolute !important;
    top: -8px !important;
    right: -10px !important;
    background: var(--csl-fl-badge-bg, #b81c23) !important;
    color: var(--csl-fl-badge-color, #ffffff) !important;
    border-radius: 50% !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* ============================================================
   CARRINHO FLUTUANTE (sidebar)
   ============================================================ */
.csl-woocart-floating-sidebar .quantity {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    height: 34px !important;
    background: #fff !important;
}

.csl-woocart-floating-sidebar .quantity input.qty {
    width: 40px !important;
    height: 34px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    font-weight: 600 !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}



/* Estados internos do botão AJAX */

/* O wrapper precisa de position relative para ancorar a badge */
.csl-btn-buy-ajax {
    position: relative !important;
}

.csl-ajax-badge {
    display: none;
    /* oculto por padrão — JS faz fadeIn no sucesso */
    position: absolute;
    top: -8px;
    right: -8px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 10;
    pointer-events: none;
}

.csl-ajax-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: csl-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.csl-btn-buy-ajax.csl-loading .csl-ajax-spinner {
    display: block;
}

.csl-btn-buy-ajax.csl-loading .csl-ajax-btn-icon,
.csl-btn-buy-ajax.csl-loading .csl-ajax-btn-label {
    opacity: 0.4;
}

@keyframes csl-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Qty wrapper ao lado do botão */
.csl-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 38px;
    background: #fff;
    width: 80px;
    flex-shrink: 0;
}

.csl-qty-wrapper .csl-qty-btn {
    width: 24px !important;
    height: 36px !important;
    background: #fdfdfd !important;
    border: none !important;
    color: #444 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.csl-qty-wrapper .csl-qty-btn:hover {
    background: #f0f0f0 !important;
}

.csl-btn-qty {
    width: 32px !important;
    height: 36px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    background: #fff !important;
    outline: none !important;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================================
   OVERLAY (fundo escuro ao abrir sidebar)
   ============================================================ */
.csl-woocart-floating-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99998;
}

.csl-woocart-floating-overlay.csl-is-visible {
    display: block;
}

/* ============================================================
   SIDEBAR FLUTUANTE
   ============================================================ */
.csl-woocart-floating-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    overflow: hidden;
}

.csl-woocart-floating-sidebar.csl-is-open {
    right: 0;
}

/* Header */
.csl-woocart-floating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.csl-woocart-floating-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.csl-woocart-floating-close {
    font-size: 24px;
    color: #999;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s;
}

.csl-woocart-floating-close:hover {
    color: #333;
}

/* Body — área com scroll */
.csl-woocart-floating-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

/* Footer */
.csl-woocart-floating-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.csl-woocart-floating-footer .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.csl-woocart-floating-footer .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csl-floating-btn-checkout {
    display: block !important;
    background: var(--csl-fl-btn-check-bg, #2271b1) !important;
    color: var(--csl-fl-btn-check-text, #fff) !important;
    text-align: center !important;
    padding: 13px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
}

.csl-floating-btn-checkout:hover {
    background: var(--csl-fl-btn-check-bg-hover, #135e96) !important;
    color: var(--csl-fl-btn-check-text-hover, #fff) !important;
}

.csl-floating-btn-cart {
    display: block !important;
    background: var(--csl-fl-btn-cart-bg, #eee) !important;
    color: var(--csl-fl-btn-cart-text, #333) !important;
    text-align: center !important;
    padding: 11px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
}

.csl-floating-item-top {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.csl-floating-item-thumb img {
    width: 60px;
    height: auto;
    border-radius: 6px;
}

.csl-floating-item-name a {
    color: var(--csl-fl-link-color, #2271b1) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
}

.csl-floating-qty-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.csl-floating-price {
    font-weight: 600;
    font-size: 14px;
    color: var(--csl-fl-text-color, #333);
}

.csl-fl-remove {
    position: absolute !important;
    top: 10px !important;
    right: 0 !important;
    color: #bbb !important;
    font-size: 18px !important;
    text-decoration: none !important;
    line-height: 1 !important;
    transition: color 0.2s !important;
}

.csl-fl-remove:hover {
    color: #ff4d4d !important;
}

/* ============================================================
   BOTAO AJAX
   ============================================================ */
.csl-buy-ajax-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    margin-top: 10px;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.csl-buy-ajax-wrapper button.csl-btn-buy-ajax {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    background: var(--csl-ajax-btn-bg, #FFCC00) !important;
    color: var(--csl-ajax-btn-color, #111111) !important;
    border: none !important;
    height: 32px !important;
    min-width: 80px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    transition: opacity 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 10px !important;
}

.csl-btn-buy-ajax:hover {
    opacity: 0.88 !important;
}

a.added_to_cart {
    display: none !important;
}

/* ============================================================
   CARRINHO VAZIO
   ============================================================ */
.csl-woocart-empty {
    text-align: center;
    padding: 40px 20px;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 768px) {
    .csl-woocart-layout {
        flex-direction: column;
    }

    .csl-woocart-items-section,
    .csl-woocart-summary-section {
        flex: 1 1 100%;
        min-width: 0;
    }

    .csl-woocart-items table.cart th.product-price,
    .csl-woocart-items table.cart th.product-subtotal {
        display: none !important;
    }
}

body.csl-woocart-noscroll {
    overflow: hidden !important;
}

/* ============================================================
   CARRINHO FLUTUANTE VAZIO E CARRINHO VAZIO GLOBAL
   ============================================================ */
.csl-woocart-floating-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    height: 100%;
}

.csl-woocart-empty-icon {
    font-size: 56px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.csl-woocart-empty-title {
    font-size: 17px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 28px;
}

.csl-woocart-empty-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--csl-fl-btn-check-bg, #2271b1) !important;
    color: var(--csl-fl-btn-check-text, #fff) !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
    width: 100%;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.csl-woocart-floating-footer .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csl-floating-btn-checkout {
    display: block !important;
    background: var(--csl-fl-btn-check-bg, #2271b1) !important;
    color: var(--csl-fl-btn-check-text, #fff) !important;
    text-align: center !important;
    padding: 13px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
}

.csl-floating-btn-checkout:hover {
    background: var(--csl-fl-btn-check-bg-hover, #135e96) !important;
    color: var(--csl-fl-btn-check-text-hover, #fff) !important;
}

.csl-floating-btn-cart {
    display: block !important;
    background: var(--csl-fl-btn-cart-bg, #eee) !important;
    color: var(--csl-fl-btn-cart-text, #333) !important;
    text-align: center !important;
    padding: 11px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
}

.csl-floating-item-top {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.csl-floating-item-thumb img {
    width: 60px;
    height: auto;
    border-radius: 6px;
}

.csl-floating-item-name a {
    color: var(--csl-fl-link-color, #2271b1) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
}

.csl-floating-qty-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.csl-floating-price {
    font-weight: 600;
    font-size: 14px;
    color: var(--csl-fl-text-color, #333);
}

.csl-fl-remove {
    position: absolute !important;
    top: 10px !important;
    right: 0 !important;
    color: #bbb !important;
    font-size: 18px !important;
    text-decoration: none !important;
    line-height: 1 !important;
    transition: color 0.2s !important;
}

.csl-fl-remove:hover {
    color: #ff4d4d !important;
}

/* ============================================================
   BOTAO AJAX
   ============================================================ */
.csl-buy-ajax-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    margin-top: 10px;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.csl-btn-buy-ajax {
    flex: none !important;
    width: 100% !important;
    background: var(--csl-ajax-btn-bg, #FFCC00) !important;
    color: var(--csl-ajax-btn-color, #111111) !important;
    border: none !important;
    height: 36px !important;
    min-width: 80px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: normal !important;
    transition: opacity 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
}

.csl-btn-buy-ajax:hover {
    opacity: 0.88 !important;
}

a.added_to_cart {
    display: none !important;
}

/* ============================================================
   CARRINHO VAZIO
   ============================================================ */
.csl-woocart-empty {
    text-align: center;
    padding: 40px 20px;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 768px) {
    .csl-woocart-layout {
        flex-direction: column;
    }

    .csl-woocart-items-section,
    .csl-woocart-summary-section {
        flex: 1 1 100%;
        min-width: 0;
    }

    .csl-woocart-items table.cart th.product-price,
    .csl-woocart-items table.cart th.product-subtotal {
        display: none !important;
    }
}

body.csl-woocart-noscroll {
    overflow: hidden !important;
}

/* ============================================================
   CARRINHO FLUTUANTE VAZIO E CARRINHO VAZIO GLOBAL
   ============================================================ */
.csl-woocart-floating-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    height: 100%;
}

.csl-woocart-empty-icon {
    font-size: 56px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.csl-woocart-empty-title {
    font-size: 17px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 28px;
}

.csl-woocart-empty-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--csl-fl-btn-check-bg, #2271b1) !important;
    color: var(--csl-fl-btn-check-text, #fff) !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
    width: 100%;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.csl-woocart-empty-btn:hover {
    background: var(--csl-fl-btn-check-bg-hover, #135e96) !important;
    color: var(--csl-fl-btn-check-text-hover, #fff) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

.csl-floating-btn-cart:hover {
    background: var(--csl-fl-btn-cart-bg-hover, #ddd) !important;
    color: var(--csl-fl-btn-cart-text-hover, #2271b1) !important;
}

/* Items no floating cart */
.csl-woocart-floating-body .woocommerce-mini-cart {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.csl-floating-item-card {
    position: relative;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
}

/* ============================================================
   PRODUTOS VARIÁVEIS (SWATCHES) E BOTAO AJAX
   ============================================================ */
.csl-buy-ajax-container {
    margin-bottom: 20px;
    width: 100% !important;
}

.csl-variations-wrapper {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.csl-variation-row {
    margin-bottom: 15px;
}

.csl-variation-row:last-child {
    margin-bottom: 0;
}

.csl-variation-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.csl-variation-selected-label {
    font-weight: 500;
    color: #64748b;
    font-size: 12px;
}

.csl-swatches {
    display: grid;
    /* Usa a variável de colunas do painel (padrão 4) */
    grid-template-columns: repeat(var(--csl-var-cols, 4), 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .csl-swatches {
        /* No celular, 3 colunas ou minmax */
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

.csl-swatch {
    background: var(--csl-var-bg, #ffffff) !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--csl-var-text, #334155) !important;
    padding: 0 !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    position: relative;
    outline: none !important;
}

.csl-swatch:hover {
    border-color: var(--csl-var-active, #f97316) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.csl-swatch.csl-selected {
    border-color: var(--csl-var-active, #f97316) !important;
    box-shadow: 0 0 0 1px var(--csl-var-active, #f97316) !important;
}

.csl-swatch-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
    min-height: 40px; /* Fallback de segurança para não sumir */
}

.csl-swatch-text {
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 8px 6px 6px;
    display: block;
    line-height: 1.2;
}

/* Sem imagem: mais padding */
.csl-swatch:not(.csl-swatch-has-img) .csl-swatch-text {
    padding: 14px 6px;
}

.csl-swatch-price {
    font-size: 13px !important;
    font-weight: 800 !important;
    background: #475569;
    color: #ffffff !important;
    padding: 4px 0;
    margin-top: auto;
    /* Empurra pro rodapé */
    display: block;
    transition: background 0.2s ease;
}

.csl-swatch-price .woocommerce-Price-currencySymbol {
    font-size: 10px;
    font-weight: 600;
}

.csl-swatch.csl-selected .csl-swatch-price {
    background: var(--csl-var-active, #f97316) !important;
}

.csl-swatch.csl-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: #e2e8f0;
}

/* ============================================================
   CUSTOM SELECT DE VARIAÇÕES
   ============================================================ */
.csl-custom-select-wrapper {
    position: relative;
    width: 100%;
    margin-top: 8px;
    font-family: inherit;
}

.csl-custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--csl-var-bg, #ffffff);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: none;
    min-height: 48px;
}

.csl-custom-select-trigger:hover,
.csl-custom-select-wrapper.csl-open .csl-custom-select-trigger {
    border-color: var(--csl-var-active, #f97316);
}

.csl-custom-select-wrapper.csl-open .csl-custom-select-trigger {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15); /* Orange glow by default */
}

.csl-custom-select-trigger i {
    font-size: 14px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.csl-custom-select-wrapper.csl-open .csl-custom-select-trigger i {
    transform: rotate(180deg);
}

.csl-cs-trigger-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.csl-cs-placeholder {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

/* Opções (Dropdown) */
.csl-custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.csl-custom-select-wrapper.csl-open .csl-custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.csl-cs-option {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.csl-cs-option:last-child {
    border-bottom: none;
}

.csl-cs-option:hover {
    background: #f8fafc;
}

.csl-cs-option.csl-selected {
    background: rgba(249, 115, 22, 0.08); /* Fundo sutil para selecionado */
}

.csl-cs-opt-img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    margin-right: 12px;
    border: 1px solid #e2e8f0;
}

.csl-cs-opt-text {
    flex: 1;
    color: var(--csl-var-text, #334155);
    font-size: 14px;
    font-weight: 600;
}

.csl-cs-opt-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--csl-var-active, #f97316);
    background: rgba(249, 115, 22, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.csl-cs-opt-price .woocommerce-Price-currencySymbol {
    font-size: 10px;
    font-weight: 600;
}

/* Quando renderizado dentro do Trigger, remover background do preço e alinhar */
.csl-cs-trigger-content .csl-cs-opt-img {
    margin-right: 8px;
}
.csl-cs-trigger-content .csl-cs-opt-price {
    background: transparent;
    padding: 0;
    font-size: 15px;
}

/* ============================================================
   SHORTCODE DE IMAGEM DO PRODUTO
   ============================================================ */
.csl-produto-imagens-wrapper .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.csl-produto-imagens-wrapper .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
}

.csl-variation-price-wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #cbd5e1;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

/* ============================================================
   MINICARDS (PÍLULA) DE VARIAÇÕES
   ============================================================ */
.csl-var-style-minicards .csl-swatch {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-radius: 50px !important;
    padding: 4px 12px 4px 4px !important;
    height: 44px !important;
    text-align: left !important;
}

.csl-var-style-minicards .csl-swatch-img {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 50% !important;
    aspect-ratio: auto;
    border-bottom: none !important;
    margin-right: 10px;
}

.csl-var-style-minicards .csl-swatch-text {
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: none !important;
    display: block !important;
}

.csl-var-style-minicards .csl-swatch-price {
    display: none !important; /* Ocultar o preço no minicard para manter compacto */
}

/* Fallback de padding quando não tem imagem no minicard */
.csl-var-style-minicards .csl-swatch:not(.csl-swatch-has-img) {
    padding: 4px 14px !important;
    justify-content: flex-start !important;
    text-align: center;
}

.csl-btn-buy-ajax.csl-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(100%);
}

/* ============================================================
   OCULTAR TÍTULOS DE VARIAÇÃO
   ============================================================ */
.csl-var-hide-title .csl-swatch-text,
.csl-var-hide-title .csl-cs-opt-text {
    display: none !important;
}

/* Ajustes de padding para cards/minicards sem texto */
.csl-var-hide-title.csl-var-style-cards .csl-swatch,
.csl-var-hide-title.csl-var-style-minicards .csl-swatch {
    padding: 6px !important;
    justify-content: flex-start !important;
}

.csl-var-hide-title.csl-var-style-minicards .csl-swatch-img {
    margin-right: 0 !important;
}

.csl-var-hide-title.csl-var-style-select .csl-cs-option {
    justify-content: center;
}
.csl-var-hide-title.csl-var-style-select .csl-cs-opt-img {
    margin-right: 0 !important;
}

.csl-buy-ajax-custom-html {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* ============================================================
   SHORTCODE DE PREÇO DINÂMICO
   ============================================================ */
.csl-preco-produto-container {
    margin-bottom: 20px;
    font-family: inherit;
}

.csl-preco-html-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* Força a cor principal e tamanho no preço de venda e no preço normal */
.csl-preco-html-wrapper ins,
.csl-preco-html-wrapper ins .amount,
.csl-preco-html-wrapper > .amount,
.csl-preco-html-wrapper > span.amount,
.csl-preco-html-wrapper .price > .amount,
.csl-preco-html-wrapper .price > span {
    text-decoration: none !important;
    background: transparent !important;
    color: var(--csl-price-color, #334155) !important;
    font-size: var(--csl-price-size, 32px) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

/* Força a cor e tamanho do preço riscado (antigo) */
.csl-preco-html-wrapper del,
.csl-preco-html-wrapper del .amount {
    color: var(--csl-price-strike, #94a3b8) !important;
    font-size: var(--csl-price-strike-size, 16px) !important;
    font-weight: 600 !important;
    opacity: 0.8 !important;
}
/* SWATCHES */
.csl-swatch-color { display: block; width: 32px; height: 32px; border-radius: 50%; margin: 10px auto 4px; border: 2px solid #fff; box-shadow: 0 0 0 1px #e2e8f0; transition: transform 0.2s; }
.csl-selected .csl-swatch-color { transform: scale(1.1); box-shadow: 0 0 0 1px var(--csl-var-active, #f97316); }
.csl-swatch-checkbox { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 4px; border: 2px solid #cbd5e1; margin: 10px auto 4px; background: #fff; color: #fff; }
.csl-selected .csl-swatch-checkbox { background: var(--csl-var-active, #f97316); border-color: var(--csl-var-active, #f97316); }
.csl-swatch-type-text .csl-swatch-text { padding: 15px 10px !important; }
.csl-cs-opt-color { width: 20px; height: 20px; border-radius: 50%; margin-right: 12px; border: 1px solid #e2e8f0; }
.csl-cs-opt-checkbox { width: 18px; height: 18px; border-radius: 3px; border: 1px solid #cbd5e1; margin-right: 12px; display: flex; align-items: center; justify-content: center; }
.csl-cs-option.csl-selected .csl-cs-opt-checkbox { background: var(--csl-var-active, #f97316); border-color: var(--csl-var-active, #f97316); }

.csl-swatch-color { display: block; width: 24px; height: 24px; border-radius: 50%; margin: 12px auto 0; border: 1px solid rgba(0,0,0,0.1); flex-shrink: 0; } .csl-swatch-checkbox { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 4px; margin: 12px auto 0; border: 1px solid #e2e8f0; background: #f8fafc; color: transparent; transition: all 0.2s ease; flex-shrink: 0; font-size: 10px; } .csl-swatch.csl-selected .csl-swatch-checkbox { background: var(--csl-var-active, #f97316); border-color: var(--csl-var-active, #f97316); color: #ffffff; } .csl-var-style-minicards .csl-swatch-color, .csl-var-style-minicards .csl-swatch-checkbox { width: 34px !important; height: 34px !important; margin: 0 10px 0 0 !important; border: 1px solid rgba(0,0,0,0.1) !important; }

/* OVERRIDE FOR BUTTON SIZE */
.csl-buy-ajax-wrapper { justify-content: flex-start !important; gap: 12px !important; margin-top: 15px !important; }
.csl-btn-buy-ajax { flex: 0 0 auto !important; width: auto !important; min-width: 160px !important; height: 36px !important; padding: 0 25px !important; font-size: 12px !important; }
