.wc-step-checkout-header {
    background: transparent;
    padding: 30px 0;
    margin-bottom: 40px;
    margin-top: 0;
    padding-top: 0;
    border: none;
}

.wc-steps-progress {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.wc-steps-progress::before {
    content: "";
    position: absolute;
    top: 20px;
    left: calc(12.5% + 20px);
    right: calc(12.5% + 20px);
    height: 3px;
    background: #e5e7eb;
    z-index: 0;
}

.woocommerce-notices-wrapper{
    position: fixed;
    bottom: 0;
    max-width: 1200px;
    display: table;
    margin: 0 auto;
    z-index: 999;
}

.woocommerce-account-fields .create-account{
    display: none;
}

.wc-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wc-step.active .step-number {
    background: #00a8ff;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.wc-step.active .step-label {
    color: #00a8ff;
    font-weight: 600;
}

.wc-step.completed .step-number {
    background: #00a8ff;
    color: #fff;
}

/* .wc-step.completed .step-number::after {
    content: "✓";
    font-size: 18px;
} */

.wc-step.completed .step-label {
    color: #374151;
}

/* Checkout Form Steps */
.wc-checkout-step {
    display: none;
}

.wc-checkout-step.active {
    display: block;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-row label .required {
    color: #ef4444;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #00a8ff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-row-first,
.form-row-last {
    width: 48%;
    display: inline-block;
}

.form-row-first {
    margin-right: 4%;
}

/* Buttons */
.wc-step-buttons {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    gap: 15px;
}

.button,
.wc-step-btn {
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    width: auto;
}



.wc-step-btn-primary {
    background: #00a8ff;
    color: #fff;
}

.wc-step-btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.wc-step-btn-secondary {
    background: #fff;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.wc-step-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Estilos de validación y errores */
.woocommerce-invalid input,
.woocommerce-invalid select,
.woocommerce-invalid .select2-container,
.woocommerce-invalid .select2-container .select2-selection--single,
input.error,
select.error {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

.woocommerce-invalid label{
    color: #dc2626 !important;
}

.woocommerce-error {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 4px;
    font-size: 13px;
    display: block;
    border-left: 3px solid #dc2626;
}

.wc-step-error-notice {
    margin-bottom: 20px;
}

.woocommerce-NoticeGroup {
    margin-bottom: 20px;
}

.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
    margin-bottom: 2.617924em;
    background-color: #0f834d;
    margin-left: 0;
    border-radius: 2px;
    color: #fff;
    clear: both;
    border-left: .6180469716em solid rgba(0, 0, 0, .15);
    padding: 1em 2em 1em 3.5em;
    position: relative;
    list-style: none outside;
}

.woocommerce-error {
    background-color: #e2401c;
}

.woocommerce-info, .woocommerce-noreviews, p.no-comments {
    background-color: #3d9cd2;
}

/* Responsive */
@media (max-width: 767.98px) {
    .wc-step-checkout-header{
        margin-bottom: 0px;
    }
    .wc-steps-progress {
        flex-wrap: wrap;
    }

    .wc-step {
        flex: 0 0 25%;
        margin-bottom: 20px;
    }

    .wc-steps-progress::before {
        display: none;
    }

    .form-row-first,
    .form-row-last {
        width: 100%;
        margin-right: 0;
    }

    .step-label {
        font-size: 12px;
    }
}
@media (max-width: 576.98px) {
    .woocommerce-billing-fields #billing_phone_code_field{
        width: 21% !important;
    }
    .woocommerce-billing-fields #billing_phone_field {
        width: 72% !important;
    }

    .woocommerce-billing-fields #billing_address_1_field {
        width: 100% !important;
        float: left;
        clear: none;
    }

    .woocommerce-checkout .type-natural #billing_document_type_field {
        width: 100% !important;
        float: left;
    }
    .woocommerce-checkout .type-natural #billing_document_number_field {
        width: 100% !important;
        float: left;
    }

    .woocommerce-checkout .type-natural #billing_gender_field {
        width: 100% !important;
        float: left;
    }
}