/* Checkout em Página - Estilos Modernos e Simples */

/* Indicador de Etapas */
.smmco-checkout-steps-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 0 20px;
}

.smmco-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 200px;
    position: relative;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.smmco-step-item.active {
    opacity: 1;
}

.smmco-step-item.completed {
    opacity: 1;
}

.smmco-step-item.completed .smmco-step-number {
    background: #14B811;
    color: #fff;
}

.smmco-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    border: 3px solid #e0e0e0;
    transition: all 0.3s ease;
}

.smmco-step-item.active .smmco-step-number {
    background: linear-gradient(135deg, #2161DF 0%, #DB265C 100%);
    color: #fff;
    border-color: #2161DF;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(33, 97, 223, 0.3);
}

.smmco-step-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.smmco-step-item.active .smmco-step-label {
    color: #2161DF;
    font-weight: 600;
}

/* Linha conectora entre etapas */
.smmco-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    left: calc(50% + 25px);
    width: calc(100% - 50px);
    height: 3px;
    background: #e0e0e0;
    z-index: -1;
    transition: all 0.3s ease;
}

.smmco-step-item.completed:not(:last-child)::after {
    background: #14B811;
}

/* Conteúdo das Etapas */
.smmco-checkout-steps-wrapper {
    margin: 30px 0;
}

.smmco-step-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Campos Customizados */
.smmco-field {
    margin-bottom: 25px !important;
}

.smmco-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.smmco-field input[type="text"],
.smmco-field input[type="email"],
.smmco-field input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.smmco-field input[type="text"]:focus,
.smmco-field input[type="email"]:focus,
.smmco-field input[type="tel"]:focus {
    outline: none;
    border-color: #2161DF;
    box-shadow: 0 0 0 3px rgba(33, 97, 223, 0.1);
}

/* Campos do WooCommerce no step 2 */
.woocommerce-checkout .woocommerce-billing-fields.step-2 input,
.woocommerce-checkout .woocommerce-billing-fields.step-2 select,
.woocommerce-checkout .woocommerce-billing-fields.step-2 textarea {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.woocommerce-checkout .woocommerce-billing-fields.step-2 input:focus,
.woocommerce-checkout .woocommerce-billing-fields.step-2 select:focus,
.woocommerce-checkout .woocommerce-billing-fields.step-2 textarea:focus {
    outline: none;
    border-color: #2161DF;
    box-shadow: 0 0 0 3px rgba(33, 97, 223, 0.1);
}

/* Botões de Navegação */
.smmco-checkout-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.smmco-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.smmco-btn-primary {
    background: linear-gradient(135deg, #2161DF 0%, #DB265C 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(33, 97, 223, 0.3);
}

.smmco-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 97, 223, 0.4);
}

.smmco-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.smmco-btn-secondary:hover {
    background: #e8e8e8;
}

.smmco-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Seção de Pagamento */
#smmco-payment-section {
    margin-top: 20px;
}

/* Campo de Email na Etapa 2 - Estilo igual à Etapa 1 */
#smmco-email-field {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #f0f0f0;
}

#smmco-email-field.smmco-field {
    margin-bottom: 25px !important;
}

#smmco-email-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#smmco_billing_email {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

#smmco_billing_email:focus {
    outline: none;
    border-color: #2161DF;
    box-shadow: 0 0 0 3px rgba(33, 97, 223, 0.1);
}

/* Etapa 2 - Pagamento - Criada do Zero */
.smmco-step-content[data-step="2"] {
    max-width: 100%;
    display: none;
}

.smmco-step-content[data-step="2"] .smmco-field {
    margin-bottom: 25px !important;
}

/* Wrapper para métodos de pagamento - igual ao product-info */
.smmco-payment-methods-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #f0f0f0;
}

.smmco-payment-methods-wrapper h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* Lista de métodos de pagamento */
.smmco-payment-methods-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Item de método de pagamento - estilo igual aos campos da etapa 1 */
.smmco-payment-method-item {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.smmco-payment-method-item:hover {
    border-color: #2161DF;
    background: #f9f9ff;
}

/* Método selecionado */
.smmco-payment-method-item.wc_payment_method--selected {
    border-color: #2161DF;
    background: #f0f4ff;
    box-shadow: 0 0 0 3px rgba(33, 97, 223, 0.1);
}

.smmco-payment-method-item input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2161DF;
    flex-shrink: 0;
}

.smmco-payment-method-item label {
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 16px;
    margin: 0;
    flex: 1;
}

.smmco-payment-method-item.wc_payment_method--selected label {
    color: #2161DF;
    font-weight: 600;
}

.smmco-payment-method-item input[type="radio"]:checked + label {
    color: #2161DF;
    font-weight: 600;
}

#payment .payment_box {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

#payment .payment_box input,
#payment .payment_box select,
#payment .payment_box textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 8px;
}

#payment .payment_box input:focus,
#payment .payment_box select:focus,
#payment .payment_box textarea:focus {
    outline: none;
    border-color: #2161DF;
    box-shadow: 0 0 0 3px rgba(33, 97, 223, 0.1);
}

/* Ocultar qualquer checkout padrão do WooCommerce quando usar shortcode customizado */
.smmco-checkout-wrapper .woocommerce-checkout form.checkout {
    display: none !important;
}

.smmco-checkout-wrapper .woocommerce-billing-fields,
.smmco-checkout-wrapper .woocommerce-shipping-fields,
.smmco-checkout-wrapper .woocommerce-additional-fields,
.smmco-checkout-wrapper .woocommerce-account-fields,
.smmco-checkout-wrapper #order_review,
.smmco-checkout-wrapper #payment {
    display: none !important;
}

/* Etapa 3 - Confirmação - Criada do Zero */
.smmco-step-content[data-step="3"] {
    display: none;
    max-width: 100%;
}

.smmco-step-content[data-step="3"]:not(:empty) {
    display: block !important;
}

/* Resumo do Pedido - Estilo consistente (etapa 2) */
.smmco-order-review {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #f0f0f0;
}

.smmco-order-review h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.smmco-order-items {
    margin-bottom: 20px;
}

.smmco-order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.smmco-order-item:last-child {
    border-bottom: none;
}

.smmco-item-name {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.smmco-item-variation {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.smmco-item-total {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.smmco-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.smmco-total-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.smmco-total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #2161DF;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 20px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-checkout-review-order-table th {
    font-weight: 600;
    color: #333;
}

/* Mensagem de Sucesso */
.smmco-success-message {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.smmco-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.smmco-success-message h2 {
    color: #14B811;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
}

.smmco-success-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.smmco-order-number {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.smmco-order-number strong {
    color: #333;
}

/* Informações do Produto */
.smmco-product-info {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #f0f0f0;
}

.smmco-product-info h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.smmco-product-info p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

/* Responsivo */
@media (max-width: 768px) {
    .smmco-checkout-steps-indicator {
        gap: 10px;
        padding: 0 10px;
    }
    
    .smmco-step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .smmco-step-label {
        font-size: 12px;
    }
    
    .smmco-step-item:not(:last-child)::after {
        left: calc(50% + 20px);
        width: calc(100% - 40px);
    }
    
    .smmco-checkout-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .smmco-btn {
        width: 100%;
    }
}

/* Loading State */
.smmco-loading {
    opacity: 0.6;
    pointer-events: none;
}

.smmco-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2161DF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Carrinho Vazio */
.smmco-empty-cart {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.smmco-empty-cart p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Wrapper do Checkout */
.smmco-checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


