/* Calculadora de Frete - Produto */
.ccf-product-shipping-calculator {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 16px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    box-shadow: none;
    position: relative;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.ccf-calculator-header {
    margin-bottom: 4px;
}

.ccf-calculator-header h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    position: relative;
}

.ccf-calculator-header h4::before {
    content: "🚀";
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.ccf-calculator-header h4::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 1px;
}

.ccf-calculator-form {
    margin-bottom: 8px;
}

.ccf-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.ccf-input-group::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 12px;
    pointer-events: none;
}

.ccf-postcode-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    outline: none;
    z-index: 1;
    position: relative;
}

.ccf-postcode-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.ccf-calculate-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccf-calculate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.ccf-calculate-btn:active {
    transform: translateY(0);
}

.ccf-calculate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ccf-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: ccf-spin 1s ease-in-out infinite;
}

/* Alerta integrado na calculadora */
.ccf-product-shipping-calculator .ccf-free-shipping-alert-static {
    margin: 10px 0;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.3;
    border: 1px solid #16a34a;
    background: #f0fdf4;
    color: #15803d;
}

.ccf-product-shipping-calculator .ccf-free-shipping-alert-static.ccf-free-shipping-alert-qualified {
    background: #f0fdf4;
    color: #15803d;
    border-color: #16a34a;
}

.ccf-product-shipping-calculator .ccf-free-shipping-alert-static.ccf-free-shipping-alert-potential {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

/* Estilos modernos para alerta no checkout */
.ccf-checkout-free-shipping-alert {
    margin: 0 0 24px 0;
    padding: 20px 24px;
    border-radius: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    border: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: ccf-checkout-alert-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ccf-checkout-free-shipping-alert::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    animation: ccf-checkout-shimmer 2s infinite;
    pointer-events: none;
}

.ccf-checkout-free-shipping-alert.ccf-free-shipping-alert-qualified {
    background: linear-gradient(135deg, 
        #10b981 0%, 
        #059669 50%, 
        #047857 100%
    );
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ccf-checkout-free-shipping-alert.ccf-free-shipping-alert-qualified::after {
    content: "✨";
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    animation: ccf-sparkle 1.5s ease-in-out infinite alternate;
}

.ccf-checkout-free-shipping-alert.ccf-free-shipping-alert-potential {
    background: linear-gradient(135deg, 
        #f59e0b 0%, 
        #d97706 50%, 
        #b45309 100%
    );
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ccf-checkout-free-shipping-alert.ccf-free-shipping-alert-potential::after {
    content: "🔥";
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    animation: ccf-fire-bounce 1s ease-in-out infinite alternate;
}

/* Animações */
@keyframes ccf-spin {
    to { transform: rotate(360deg); }
}

@keyframes ccf-checkout-alert-appear {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ccf-checkout-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes ccf-sparkle {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.2) rotate(10deg);
        opacity: 1;
    }
}

@keyframes ccf-fire-bounce {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-3px); }
}

/* Estilos dos resultados de frete */
.ccf-results-container {
    margin-top: 8px;
}

.ccf-results-header {
    font-weight: 700;
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 13px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ccf-results-header::before {
    content: "⚡";
    font-size: 14px;
}

.ccf-results-list {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
}

.ccf-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 10px;
    margin-bottom: 4px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.ccf-result-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.ccf-result-item::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.ccf-result-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 8px 25px -5px rgba(59, 130, 246, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.ccf-result-item:hover::before {
    opacity: 1;
}

.ccf-result-item:hover::after {
    transform: translateY(-50%) scale(1);
}

.ccf-result-item:last-child {
    margin-bottom: 0;
}

.ccf-result-service-container {
    flex: 1;
}

.ccf-result-badges {
    margin-bottom: 3px;
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.ccf-badge {
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 6px;
    font-weight: 700;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ccf-badge-price {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.ccf-badge-speed {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.ccf-badge-free {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    animation: ccf-pulse-free 2s infinite;
}

@keyframes ccf-pulse-free {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    50% { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0); }
}

.ccf-result-service {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin-left: 0;
}

.ccf-result-details {
    text-align: right;
}

.ccf-result-price {
    font-weight: 700;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 15px;
    position: relative;
}

.ccf-result-delivery {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

.ccf-result-delivery::before {
    content: "🕒";
    font-size: 10px;
}

.ccf-no-results {
    padding: 16px 12px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 6px;
    font-weight: 400;
    font-size: 13px;
    border: 1px solid #e5e7eb;
}

.ccf-no-results::before {
    content: "📭";
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
}

/* Animação de entrada dos resultados */
.ccf-results-container {
    animation: ccf-slideIn 0.3s ease-out;
}

@keyframes ccf-slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para mobile */
@media (max-width: 768px) {
    .ccf-checkout-free-shipping-alert {
        margin: 0 0 20px 0;
        padding: 16px 20px;
        border-radius: 12px;
        font-size: 14px;
    }
    
    .ccf-checkout-free-shipping-alert::after {
        font-size: 16px;
        top: 6px;
        right: 10px;
    }
    
    .ccf-product-shipping-calculator .ccf-free-shipping-alert-static {
        font-size: 12px;
        padding: 6px 12px;
        margin: 8px 0;
    }
    
    .ccf-result-item {
        padding: 8px 10px;
    }
    
    .ccf-result-service {
        font-size: 12px;
    }
    
    .ccf-result-price {
        font-size: 13px;
    }
    
    .ccf-badge {
        font-size: 7px;
        padding: 1px 3px;
    }
}

/* Mobile específico para resultados */
@media (max-width: 480px) {
    .ccf-results-container {
        margin-top: 10px;
    }
    
    .ccf-results-header {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .ccf-result-item {
        padding: 8px 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .ccf-result-service-container {
        width: 100%;
    }
    
    .ccf-result-badges {
        margin-bottom: 4px;
    }
    
    .ccf-result-service {
        font-size: 12px;
    }
    
    .ccf-result-details {
        width: 100%;
        text-align: left;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 2px;
    }
    
    .ccf-result-price {
        font-size: 13px;
    }
    
    .ccf-result-delivery {
        font-size: 10px;
    }
    
    .ccf-badge {
        font-size: 7px;
        padding: 1px 3px;
    }
    
    .ccf-no-results {
        padding: 12px 10px;
        font-size: 12px;
    }
}

/* Mobile muito pequeno para resultados */
@media (max-width: 360px) {
    .ccf-result-item {
        padding: 6px 8px;
    }
    
    .ccf-result-service {
        font-size: 11px;
    }
    
    .ccf-result-price {
        font-size: 12px;
    }
}