/**
 * Custom WooCommerce Checkout - CSS OTIMIZADO
 * Version: 11.6 - ÍCONE DENTRO DO CARD MOBILE
 *
 * ✅ v11.6 (v2.9.39): Ícone de frete DENTRO do card (não flutuando) em mobile
 * ✅ v11.5 (v2.9.38): Ícone de frete fora do card e centralizado em mobile
 * ✅ v11.4: Fix layout ao voltar do checkout (bfcache) + container sempre visível
 * ✅ v11.3: Cards sem estoque com visual desabilitado (pointer-events: none)
 * ✅ v11.1: Two-Phase Update - Estado "Calculando..." no frete
 * ✅ v11.0: Mini-spinner inline para loading localizado
 * ✅ v4.0.0: Removido código não utilizado (-29% de tamanho)
 * ✅ v4.0.0: Mantidas apenas classes realmente usadas
 * ✅ v4.0.0: Organizado por seções funcionais
 *
 * Last Update: 2025-12-17
 * Author: rhpimenta
 */

/* ====================================
   RESET & BASE
   ==================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ====================================
   CONTAINER GLOBAL
   ==================================== */

/* ✅ v11.4: Garante que página do carrinho está sempre centralizada e visível */
.woocommerce-cart .cwc-global-container,
.cwc-global-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ✅ v11.4: Reset do body/html quando está na página do carrinho */
.woocommerce-cart {
    overflow: visible !important;
    height: auto !important;
}

.woocommerce-cart body,
body.woocommerce-cart {
    overflow: visible !important;
    height: auto !important;
}

/* ====================================
   MENSAGENS WOOCOMMERCE
   ==================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px !important;
    margin: 15px 0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: none !important;
    list-style: none !important;
}

.woocommerce-message {
    background: #d4edda !important;
    color: #155724 !important;
    border-left: 4px solid #28a745 !important;
}

.woocommerce-error {
    background: #f8d7da !important;
    color: #721c24 !important;
    border-left: 4px solid #dc3545 !important;
}

.woocommerce-info {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
    border-left: 4px solid #17a2b8 !important;
}

.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    display: none !important;
}

.woocommerce-message li,
.woocommerce-error li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ====================================
   NOTICES DO SISTEMA (JS)
   ==================================== */
.cwc-notices-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 15px 20px;
    border-radius: 8px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

.cwc-notices-wrapper.cwc-notices-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.cwc-notices-wrapper.cwc-notices-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.cwc-notices-wrapper .woocommerce-error,
.cwc-notices-wrapper .woocommerce-message {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    list-style: none;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ====================================
   CONTAINER DO CHECKOUT
   ==================================== */
.cwc-checkout-container {
    display: flex;
    gap: 30px;
    width: 100%;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ====================================
   COLUNA DE PRODUTOS
   ==================================== */
.cwc-products-column {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.cwc-header {
    display: grid;
    grid-template-columns: 1fr 150px 150px 50px;
    gap: 20px;
    padding: 0 0 15px 100px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
    align-items: center;
}

.cwc-header > div {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cwc-header-product,
.cwc-header-quantity,
.cwc-header-price,
.cwc-header-actions {
    /* Existem no HTML */
}

/* ====================================
   ITEM DO PRODUTO
   ==================================== */
.cwc-product-item {
    display: grid;
    grid-template-columns: 80px 1fr 150px 150px 50px;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.cwc-product-item:hover {
    background-color: #fafafa;
}

.cwc-product-item:last-child {
    border-bottom: none;
}

.cwc-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
}

.cwc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cwc-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.cwc-product-info {
    min-width: 0;
}

.cwc-product-name {
    font-size: 15px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 500;
    line-height: 1.4;
}

.cwc-product-name a {
    color: inherit;
    text-decoration: none;
}

.cwc-product-name a:hover {
    color: #0066cc;
}

.cwc-selected-variations {
    margin-top: 5px;
}

.cwc-variation-item {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
    color: #666;
    font-weight: 500;
}

/* ====================================
   CONTROLE DE QUANTIDADE
   ==================================== */
.cwc-quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.cwc-qty-minus,
.cwc-qty-plus {
    width: 36px;
    height: 36px;
    border: none;
    background: #fafafa;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cwc-qty-minus:hover,
.cwc-qty-plus:hover {
    background: #0066cc;
    color: #fff;
}

.cwc-qty-input {
    width: 60px;
    height: 36px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    -moz-appearance: textfield;
}

.cwc-qty-input::-webkit-outer-spin-button,
.cwc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cwc-qty-input:focus {
    outline: none;
    background: #f0f7ff;
}

/* ====================================
   PREÇOS
   ==================================== */
.cwc-product-price {
    text-align: right;
}

.cwc-original-price {
    display: block;
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-bottom: 4px;
}

.cwc-sale-price {
    display: block;
    color: #333;
    font-size: 17px;
    font-weight: 600;
}

.cwc-remove-item {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s;
    border-radius: 4px;
}

.cwc-remove-item:hover {
    background: #fee;
    color: #e74c3c;
}

.cwc-remove-item svg {
    width: 18px;
    height: 18px;
}

/* ====================================
   COLUNA DE RESUMO
   ==================================== */
.cwc-summary-column {
    width: 380px;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.cwc-summary-title {
    font-size: 20px;
    margin: 0 0 20px 0;
    color: #333;
    font-weight: 600;
}

/* ====================================
   BOTÕES DE ENTREGA
   ==================================== */
.cwc-delivery-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.cwc-delivery-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cwc-delivery-btn:hover {
    border-color: #0066cc;
}

.cwc-delivery-btn.active {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.cwc-btn-icon {
    font-size: 18px;
}

/* ====================================
   CALCULADORA DE FRETE
   ==================================== */
.cwc-shipping-calculator {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cwc-shipping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cwc-shipping-header label {
    font-size: 14px;
    color: #666;
}

.cwc-item-count {
    font-weight: 600;
    color: #333;
}

.cwc-cep-display {
    font-weight: 600;
    color: #0066cc;
}

.cwc-change-cep {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
}

.cwc-cep-input-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.cwc-cep-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.cwc-cep-apply {
    padding: 8px 20px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
}

.cwc-cep-apply:hover:not(.c2p-btn-loading) {
    background: #0052a3;
}

.cwc-cep-apply:active:not(.c2p-btn-loading) {
    transform: scale(0.98);
}

/* ✅ v3.0.8: Spinner mais visível no botão Aplicar */
.cwc-cep-apply.c2p-btn-loading {
    background: #5a8dc9;
}

.cwc-cep-apply .c2p-mini-spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
}

.cwc-shipping-select-wrapper {
    margin-top: 15px;
}

/* ====================================
   ESTADO CEP REQUERIDO
   ==================================== */
.cwc-cep-required-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.cwc-cep-required-state:hover {
    border-color: #6c757d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cwc-cep-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.cwc-cep-required-state h3 {
    margin: 0 0 10px;
    color: #212529;
    font-size: 20px;
    font-weight: 600;
}

.cwc-cep-required-state p {
    margin: 0 0 20px;
    color: #6c757d;
    font-size: 14px;
}

.cwc-cep-input-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto 15px;
}

.cwc-cep-input-large {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cwc-cep-input-large:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.cwc-cep-input-large::placeholder {
    color: #adb5bd;
}

.cwc-cep-calculate-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cwc-cep-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.cwc-cep-calculate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cwc-cep-link {
    color: #6c757d;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 5px;
}

.cwc-cep-link:hover {
    color: #007bff;
    text-decoration: underline;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cwc-calculate-first {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* ====================================
   CARDS DE ENVIO (JS)
   ==================================== */
.c2p-ship-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 10px 0 4px;
}

.c2p-ship-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 1px 0 rgba(16,24,40,.02);
    transition: all .15s ease;
}

.c2p-ship-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(16,24,40,.06);
}

.c2p-ship-card.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ✅ v11.3: Cards desabilitados (sem estoque) - NÃO clicáveis */
.c2p-ship-card.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #e5e7eb;
    pointer-events: none !important; /* ✅ Garante que não seja clicável */
    position: relative;
}

.c2p-ship-card.is-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.c2p-ship-card.is-disabled:hover {
    border-color: #e5e7eb;
    box-shadow: none;
    transform: none; /* ✅ Remove qualquer efeito de hover */
}

.c2p-ship-card.is-disabled .c2p-ship-card__title {
    color: #9ca3af;
    /* ✅ v11.3.1: Nome legível, sem tachado */
}

.c2p-ship-card.is-disabled .c2p-ship-card__icon {
    opacity: 0.4;
    filter: grayscale(100%);
}

/* ✅ v11.3: Badge de estoque indisponível mais visível */
.c2p-ship-card.is-disabled .c2p-ship-card__stock.stock-none {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
    font-weight: 600;
}

.c2p-ship-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex: 0 0 36px;
}

.c2p-ship-card__icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.c2p-ship-card__icon.store-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.c2p-ship-card__body {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.c2p-ship-card__badge {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    letter-spacing: .2px;
    width: fit-content;
}

.c2p-ship-card__title {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    line-height: 1.3;
}

.c2p-ship-card__price {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-top: 2px;
}

.c2p-ship-card__price.is-free {
    color: #16a34a;
    font-size: 14px;
}

.c2p-ship-card__eta {
    font-size: 13px;
    color: #16a34a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.c2p-ship-card__eta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.c2p-ship-card__prep {
    font-size: 12px;
    color: #059669;
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    cursor: help;
    width: fit-content;
}

.c2p-ship-card__prep svg {
    width: 14px;
    height: 14px;
}

.c2p-ship-card__prep:hover .c2p-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.c2p-tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 220px;
    background: #1f2937;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px 12px;
    position: absolute;
    z-index: 9999;
    bottom: 140%;
    left: 50%;
    margin-left: -110px;
    transition: opacity 0.3s;
    font-size: 11px;
    line-height: 1.5;
    white-space: pre-line;
}

.c2p-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.c2p-ship-card__stock {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    width: fit-content;
}

.c2p-ship-card__stock.stock-full {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.c2p-ship-card__stock.stock-partial {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.c2p-ship-card__stock.stock-none {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.c2p-ship-card__stock svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.c2p-ship-placeholder {
    padding: 14px;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    color: #6b7280;
    text-align: center;
}

/* ====================================
   MODAL DE ESTOQUE (v8.6.1)
   ==================================== */
.c2p-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999998;
    display: none;
    animation: fadeIn 0.2s;
}

.c2p-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    max-width: 550px;
    width: calc(100% - 40px);
    max-height: 85vh;
    overflow: hidden;
    display: none;
    animation: slideUp 0.3s;
}

.c2p-modal-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    padding: 24px;
    position: relative;
}

.c2p-modal-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.c2p-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s;
}

.c2p-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.c2p-modal-body {
    padding: 24px;
    max-height: calc(85vh - 200px);
    overflow-y: auto;
}

.c2p-modal-message {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.c2p-modal-message strong {
    color: #111827;
    font-weight: 600;
}

.c2p-modal-items {
    /* Container renderizado via JS */
}

.c2p-stock-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 2px solid #fee2e2;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.c2p-stock-item:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.c2p-stock-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.c2p-stock-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c2p-stock-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.c2p-stock-item-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    line-height: 1.3;
}

.c2p-stock-item-qty {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.c2p-stock-item-qty strong {
    font-weight: 700;
    color: #374151;
}

.c2p-modal-footer {
    padding: 20px 24px;
    background: #f9fafb;
    display: flex;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
}

.c2p-modal-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.c2p-modal-btn-secondary {
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.c2p-modal-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.c2p-modal-btn-primary {
    background: #2563eb;
    color: #fff;
}

.c2p-modal-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.c2p-modal-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ====================================
   CUPOM
   ==================================== */
.cwc-coupon-section {
    margin-bottom: 20px;
}

.cwc-coupon-section label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.cwc-coupon-input-group {
    display: flex;
    gap: 10px;
}

.cwc-coupon-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.cwc-coupon-input:focus {
    outline: none;
    border-color: #0066cc;
}

.cwc-coupon-btn {
    padding: 10px 24px;
    background: #fff;
    border: 2px solid #0066cc;
    color: #0066cc;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cwc-coupon-btn:hover {
    background: #0066cc;
    color: #fff;
}

.cwc-applied-coupons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.cwc-coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e8f4fd;
    border-radius: 4px;
    font-size: 13px;
    color: #0066cc;
}

.cwc-remove-coupon {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

/* ====================================
   RESUMO DE PREÇOS
   ==================================== */
.cwc-price-summary {
    border-top: 2px solid #f0f0f0;
    padding-top: 15px;
    margin-bottom: 20px;
}

.cwc-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.cwc-price-row.cwc-discount {
    color: #4caf50;
}

.cwc-discount-value {
    color: #4caf50;
    font-weight: 500;
}

.cwc-price-row.cwc-total {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.cwc-subtotal,
.cwc-shipping,
.cwc-total-value {
    /* Renderizados via JS */
}

.cwc-total-value {
    color: #0066cc;
    font-size: 24px;
    font-weight: 700;
}

.cwc-free-shipping {
    color: #4caf50;
    font-weight: 600;
}

/* ====================================
   BOTÕES
   ==================================== */
.cwc-checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(76, 175, 80, 0.2);
}

.cwc-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
}

.cwc-checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cwc-continue-shopping {
    display: block;
    text-align: center;
    color: #0066cc !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: transparent !important;
}

.cwc-continue-shopping:hover,
.cwc-continue-shopping:focus,
.cwc-continue-shopping:active {
    color: #004499 !important;
    text-decoration: underline;
    background: transparent !important;
}

/* ====================================
   CARRINHO VAZIO
   ==================================== */
.cwc-empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 0 auto;
}

.cwc-empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cwc-empty-cart h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.cwc-empty-cart p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.cwc-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.cwc-btn-primary:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
}

/* ====================================
   LOADING OVERLAY
   ==================================== */
.cwc-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cwc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ✅ Classe de animação spin para ícones */
.c2p-spin {
    animation: spin 1s linear infinite;
}

/* ====================================
   RESPONSIVIDADE
   ==================================== */

/* Desktop grande */
@media (max-width: 1640px) {
    .cwc-global-container {
        max-width: 100%;
        padding: 0 24px;
    }
}

/* ✅ Responsivo a partir de 1100px - Layout do carrinho */
@media screen and (max-width: 1100px) {
    /* Container principal em coluna */
    body .cwc-checkout-container,
    .woocommerce-cart .cwc-checkout-container,
    .cwc-global-container .cwc-checkout-container,
    .cwc-checkout-container {
        flex-direction: column !important;
        gap: 20px !important;
    }

    body .cwc-products-column,
    .cwc-products-column {
        width: 100% !important;
        max-width: 100% !important;
    }

    body .cwc-summary-column,
    .cwc-summary-column {
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        top: 0 !important;
    }

    /* Esconde o cabeçalho PRODUTO | QUANTIDADE | PREÇO */
    body .cwc-header,
    .woocommerce-cart .cwc-header,
    .cwc-checkout-container .cwc-header,
    .cwc-products-column .cwc-header,
    .cwc-header {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Cards de entrega em grid 2 colunas (apenas tablets, não mobile) */
    body .c2p-ship-cards,
    .c2p-ship-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Layout do produto em 3 colunas: imagem | info | remover */
    body .cwc-product-item,
    .woocommerce-cart .cwc-product-item,
    .cwc-checkout-container .cwc-product-item,
    .cwc-products-column .cwc-product-item,
    .cwc-products-list .cwc-product-item,
    .cwc-product-item {
        display: grid !important;
        grid-template-columns: 80px 1fr 40px !important;
        grid-template-rows: auto auto auto !important;
        gap: 10px !important;
        padding: 15px 0 !important;
        align-items: start !important;
    }

    /* Imagem do produto */
    body .cwc-product-image,
    .cwc-product-item .cwc-product-image,
    .cwc-product-image {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        grid-row: 1 / span 3 !important;
        grid-column: 1 !important;
        align-self: start !important;
    }

    /* Info do produto (nome + SKU) */
    body .cwc-product-info,
    .cwc-product-item .cwc-product-info,
    .cwc-product-info {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Nome do produto */
    body .cwc-product-name,
    .cwc-product-item .cwc-product-name,
    .cwc-product-info .cwc-product-name,
    .cwc-product-name {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin: 0 0 4px 0 !important;
        word-break: normal !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    body .cwc-product-name a,
    .cwc-product-name a {
        display: block !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    /* SKU */
    body .cwc-product-sku,
    .cwc-product-item .cwc-product-sku,
    .cwc-product-info .cwc-product-sku,
    .cwc-product-sku {
        font-size: 12px !important;
        color: #666 !important;
        margin-top: 2px !important;
        display: block !important;
    }

    /* Controle de quantidade */
    body .cwc-quantity-control,
    .cwc-product-item .cwc-quantity-control,
    .cwc-quantity-control {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: start !important;
        margin-top: 8px !important;
    }

    /* Preço */
    body .cwc-product-price,
    .cwc-product-item .cwc-product-price,
    .cwc-product-price {
        grid-column: 2 !important;
        grid-row: 3 !important;
        text-align: left !important;
        margin-top: 8px !important;
    }

    /* Botão remover */
    body .cwc-remove-item,
    .cwc-product-item .cwc-remove-item,
    .cwc-remove-item {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        align-self: start !important;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .cwc-global-container {
        padding: 0 10px;
    }

    .cwc-products-column,
    .cwc-summary-column {
        padding: 15px;
        border-radius: 8px;
    }

    .cwc-header {
        display: none;
    }

    /* Layout mobile do produto */
    .cwc-product-item {
        display: grid;
        grid-template-columns: 70px 1fr 36px;
        grid-template-rows: auto auto auto;
        gap: 8px;
        padding: 15px 0;
        align-items: start;
    }

    .cwc-product-image {
        width: 70px;
        height: 70px;
        grid-row: span 3;
        align-self: start;
    }

    .cwc-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

    .cwc-product-info {
        grid-column: 2;
        grid-row: 1;
    }

    .cwc-product-name {
        font-size: 14px;
        line-height: 1.3;
    }

    .cwc-product-name a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .cwc-product-sku {
        font-size: 11px;
        margin-top: 2px;
    }

    .cwc-quantity-control {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        height: 36px;
    }

    .cwc-qty-minus,
    .cwc-qty-plus {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .cwc-qty-input {
        width: 40px;
        height: 32px;
        font-size: 14px;
    }

    .cwc-product-price {
        grid-column: 2;
        grid-row: 3;
        text-align: left;
    }

    .cwc-sale-price {
        font-size: 15px;
    }

    .cwc-original-price {
        font-size: 12px;
    }

    .cwc-remove-item {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: start;
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    /* Botões de entrega empilhados */
    .cwc-delivery-options {
        flex-direction: row;
        gap: 8px;
    }

    .cwc-delivery-btn {
        flex: 1;
        padding: 12px 8px;
        font-size: 13px;
    }

    .cwc-delivery-btn .cwc-btn-icon {
        font-size: 16px;
    }

    .cwc-summary-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* ✅ v2.9.39: Cards de entrega em 1 coluna + ícone DENTRO do card centralizado */
    .c2p-ship-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .c2p-ship-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 16px 14px !important;
        position: relative !important;
        margin-top: 0 !important;
    }

    .c2p-ship-card__icon {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 8px !important;
        width: 44px !important;
        height: 44px !important;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35) !important;
        border-radius: 12px !important;
    }

    .c2p-ship-card__icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    .c2p-ship-card__body {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .c2p-ship-card__title {
        font-size: 14px !important;
    }

    .c2p-ship-card__badge {
        font-size: 11px !important;
        padding: 4px 10px !important;
        margin: 0 auto !important;
    }

    .c2p-ship-card__price {
        font-size: 15px !important;
    }

    .c2p-ship-card__prep,
    .c2p-ship-card__eta {
        font-size: 12px !important;
        justify-content: center !important;
    }

    .c2p-ship-card__stock {
        font-size: 11px !important;
        padding: 4px 8px !important;
        justify-content: center !important;
    }

    .c2p-ship-card__change {
        margin-top: 10px !important;
    }

    /* Resumo de preços */
    .cwc-price-summary {
        padding: 15px;
    }

    .cwc-price-row {
        font-size: 14px;
        padding: 8px 0;
    }

    .cwc-price-row.cwc-total {
        font-size: 16px;
        padding-top: 12px;
        margin-top: 8px;
    }

    /* Botão finalizar */
    .cwc-checkout-btn {
        padding: 14px;
        font-size: 15px;
        border-radius: 8px;
    }

    .cwc-continue-shopping {
        font-size: 13px;
        padding: 10px;
    }

    /* Seção CEP */
    .cwc-shipping-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .cwc-shipping-header label {
        font-size: 13px;
    }

    /* Cupom */
    .cwc-coupon-section label {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .cwc-global-container {
        padding: 0 8px;
    }

    .cwc-products-column,
    .cwc-summary-column {
        padding: 12px;
        border-radius: 6px;
    }

    /* Produto mobile compacto */
    .cwc-product-item {
        grid-template-columns: 60px 1fr 32px;
        gap: 6px;
        padding: 12px 0;
    }

    .cwc-product-image {
        width: 60px;
        height: 60px;
    }

    .cwc-product-name {
        font-size: 13px;
    }

    .cwc-qty-minus,
    .cwc-qty-plus {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .cwc-qty-input {
        width: 36px;
        height: 28px;
        font-size: 13px;
    }

    .cwc-sale-price {
        font-size: 14px;
    }

    .cwc-remove-item {
        width: 28px;
        height: 28px;
        padding: 4px;
    }

    /* Botões de entrega empilhados no mobile pequeno */
    .cwc-delivery-options {
        flex-direction: column;
        gap: 8px;
    }

    .cwc-delivery-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    /* Cupom */
    .cwc-coupon-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .cwc-coupon-input {
        width: 100%;
    }

    .cwc-coupon-btn {
        width: 100%;
    }

    /* CEP */
    .cwc-cep-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .cwc-cep-apply {
        width: 100%;
    }

    .cwc-cep-required-state {
        padding: 16px;
    }

    .cwc-cep-required-state h3 {
        font-size: 16px;
    }

    .cwc-cep-required-state p {
        font-size: 13px;
    }

    .cwc-cep-icon {
        font-size: 32px;
    }

    .cwc-cep-input-main {
        flex-direction: column;
        gap: 10px;
    }

    .cwc-cep-input-large {
        width: 100%;
    }

    .cwc-cep-calculate-btn {
        width: 100%;
    }

    /* ✅ v2.9.38: Cards compactos - mantém ícone fora */
    .c2p-ship-cards {
        gap: 14px !important;
    }

    .c2p-ship-card {
        padding: 14px 12px !important;
        margin-top: 0 !important;
    }

    .c2p-ship-card__body {
        gap: 4px !important;
    }

    .c2p-ship-card__icon {
        top: 0 !important;
        margin-bottom: 6px !important;
        width: 40px !important;
        height: 40px !important;
    }

    .c2p-ship-card__icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .c2p-ship-card__title {
        font-size: 13px !important;
    }

    .c2p-ship-card__price {
        font-size: 13px;
    }

    .c2p-ship-card__stock {
        font-size: 10px;
        padding: 3px 6px;
    }

    /* Notices */
    .cwc-notices-wrapper {
        margin: 0 8px 15px;
        width: calc(100% - 16px);
        padding: 12px;
        font-size: 13px;
    }

    /* Modal de estoque */
    .c2p-modal {
        width: calc(100% - 16px);
        max-height: 90vh;
        margin: 8px;
    }

    .c2p-modal-header {
        padding: 14px 12px;
    }

    .c2p-modal-header h3 {
        font-size: 15px;
        gap: 8px;
    }

    .c2p-modal-header h3 svg {
        width: 22px;
        height: 22px;
    }

    .c2p-modal-body {
        padding: 12px;
        max-height: calc(90vh - 160px);
    }

    .c2p-modal-message {
        font-size: 12px;
    }

    .c2p-modal-message > div {
        padding: 10px !important;
        font-size: 12px;
    }

    .c2p-modal-message p {
        font-size: 12px !important;
    }

    .c2p-modal-footer {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }

    .c2p-modal-btn {
        width: 100%;
        padding: 12px;
        font-size: 13px;
    }

    .c2p-stock-item {
        padding: 10px;
        gap: 8px;
    }

    .c2p-stock-item-image {
        width: 45px;
        height: 45px;
    }

    .c2p-stock-item-name {
        font-size: 12px;
    }

    .c2p-stock-item-qty {
        font-size: 11px;
    }

    /* Preços */
    .cwc-price-row {
        font-size: 13px;
    }

    .cwc-price-row.cwc-total {
        font-size: 15px;
    }

    /* Botão finalizar */
    .cwc-checkout-btn {
        padding: 12px;
        font-size: 14px;
    }

    .cwc-continue-shopping {
        font-size: 12px;
    }
}

/* Mobile muito pequeno */
@media (max-width: 360px) {
    .cwc-product-item {
        grid-template-columns: 50px 1fr 28px;
    }

    .cwc-product-image {
        width: 50px;
        height: 50px;
    }

    .cwc-product-name {
        font-size: 12px;
    }

    .cwc-qty-minus,
    .cwc-qty-plus {
        width: 26px;
        height: 26px;
    }

    .cwc-qty-input {
        width: 32px;
        height: 26px;
        font-size: 12px;
    }

    .cwc-delivery-btn {
        padding: 10px;
        font-size: 13px;
    }

    /* ✅ v2.9.39: Cards extra compactos - ícone DENTRO do card */
    .c2p-ship-cards {
        gap: 12px !important;
    }

    .c2p-ship-card {
        padding: 12px 10px !important;
        margin-top: 0 !important;
    }

    .c2p-ship-card__icon {
        top: 0 !important;
        margin-bottom: 6px !important;
        width: 36px !important;
        height: 36px !important;
    }

    .c2p-ship-card__icon svg {
        width: 18px !important;
        height: 18px !important;
    }
}

@media print {
    .cwc-checkout-container {
        display: block;
    }

    .cwc-remove-item,
    .cwc-quantity-control,
    .cwc-delivery-options,
    .cwc-change-cep,
    .cwc-coupon-section,
    .cwc-checkout-btn,
    .cwc-continue-shopping {
        display: none !important;
    }

    .cwc-products-column,
    .cwc-summary-column {
        box-shadow: none;
        border: 1px solid #ddd;
    }

/* ====================================
   REORDENAÇÃO: CUPOM ANTES DO FRETE
   ==================================== */
.cwc-summary-column {
    display: flex;
    flex-direction: column;
}

.cwc-summary-title { order: 1; }
.cwc-delivery-options { order: 2; }
.cwc-coupon-section { order: 3; }
.cwc-shipping-calculator { order: 4; }
#cwc-pickup-container { order: 5; }
.cwc-price-summary { order: 6; }
.cwc-checkout-btn { order: 7; }
.cwc-continue-shopping { order: 8; }

}

/* ====================================
   MINI-SPINNER INLINE v11.0
   Spinner pequeno ao lado do elemento
   ==================================== */

/* Keyframe para rotação */
@keyframes c2p-mini-spin {
    to { transform: rotate(360deg); }
}

/* Mini-spinner base */
.c2p-mini-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: c2p-mini-spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* Spinner maior para seções */
.c2p-mini-spinner.c2p-spinner-lg {
    width: 18px;
    height: 18px;
}

/* Container com loading ativo - apenas opacidade leve */
.c2p-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* Botão com loading */
.c2p-btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.c2p-btn-loading .c2p-mini-spinner {
    margin-left: 6px;
}

/* v11.1: Two-Phase - Estado "Calculando..." no frete */
.c2p-shipping-updating {
    position: relative;
}

.c2p-shipping-pending {
    color: #6b7280;
    font-style: italic;
    animation: c2p-pulse 1.5s ease-in-out infinite;
}

@keyframes c2p-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* v11.1: Estado "Calculando..." nos totais */
.c2p-calculating {
    color: #6b7280;
    font-style: italic;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.c2p-calculating .c2p-mini-spinner {
    width: 12px;
    height: 12px;
}

/* ====================================
   v11.1: CARDS PLACEHOLDER (LOADING)
   ==================================== */

/* Card em estado de loading */
.c2p-ship-card--loading {
    pointer-events: none;
    cursor: wait;
}

.c2p-ship-card--loading .c2p-ship-card__title {
    color: #9ca3af;
}

/* Shimmer effect para "Calculando frete..." */
.c2p-loading-shimmer {
    display: inline-block;
    color: #6b7280;
    font-style: italic;
    font-size: 0.9em;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: c2p-shimmer 1.5s ease-in-out infinite;
}

@keyframes c2p-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Erro nos cards */
.c2p-ship-error {
    text-align: center;
    padding: 30px 20px;
    color: #991b1b;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.c2p-ship-error p {
    margin: 0 0 15px 0;
}

.c2p-retry-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.c2p-retry-btn:hover {
    background: #b91c1c;
}

/* ====================================
   v11.2: CARDS EM ATUALIZAÇÃO
   ==================================== */

/* Card atualizando frete */
.c2p-ship-card--updating {
    opacity: 0.7;
    pointer-events: none;
}

.c2p-ship-card--updating .c2p-ship-card__price {
    min-width: 100px;
}

/* ====================================
   v2.9.6: AUTO-PREENCHIMENTO CEP/CNPJ
   ==================================== */

/* Campo com loading (buscando dados) */
.c2p-field-loading {
    background: linear-gradient(90deg, #f9fafb 0%, #e5e7eb 50%, #f9fafb 100%) !important;
    background-size: 200% 100%;
    animation: c2p-pulse-bg 1.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes c2p-pulse-bg {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Campo auto-preenchido (feedback visual) */
.c2p-autofilled {
    background-color: #ecfdf5 !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.c2p-autofilled:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

