.woocommerce form.checkout {
    display: flex;
    flex-direction: column;
}

.woocommerce-checkout .place-order .button {
    background: var(--oma-accent);
    position: sticky;
    align-self: center;
    line-height: normal;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
    margin-top: 20px;
    border: 1px solid black;
    border-radius: 400px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4em 4em;
    min-height: auto;
    transition: all 0.2s ease-in-out;
}

.woocommerce-checkout .place-order .button:hover {
    background: white;
}

/* Ocultar el título h3 de Detalles de facturación */
.oma-checkout-form-wrapper .woocommerce-billing-fields h3 {
    display: none !important;
}

/* Ocultar el título h3 de Información Adicional (y el contenedor entero si está vacío) */
.oma-checkout-form-wrapper .woocommerce-additional-fields h3 {
    display: none !important;
}

/* Ocultar el título h3 de Tu Pedido */
.oma-checkout-form-wrapper h3#order_review_heading {
    display: none !important;
}

/* (Opcional) Ajustar el espacio que dejan los títulos al desaparecer */
.oma-checkout-form-wrapper .woocommerce-billing-fields {
    padding-top: 0 !important;
}

.woocommerce-billing-fields__field-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.woocommerce-billing-fields__field-wrapper > * {
    min-width: 250px;
    width: auto;
    margin: 0;
    flex: 1;
}

#customer_details > div.col-2 {
    display: none;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-checkout #payment ul.payment_methods input[type="radio"] {
    display: none; 
}

.woocommerce-checkout #payment div.payment_box {
    background: transparent;
    padding: 0;
    margin: 0;
}

.woocommerce fieldset {
    border: none;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    background-color: var(--oma-bg-accent);
}

.woocommerce-account form label {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #585858;
}

.woocommerce-account .woocommerce-ResetPassword {
    margin-top: 40px;
}
.woocommerce-account .woocommerce-ResetPassword input {
    border-style: solid;
    border-width: 1px;
    box-shadow: none;
    color: currentcolor;
    border-radius: 5px;
}

.woocommerce-Button, .woocommerce-button, .woocommerce a.button {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    color: black;
    background-color: #ffffff;
    border: 1px solid var(--bricks-color-grey-900);
    border-radius: 50px;
    padding: 0 18px;
    text-align: center;
    min-height: 25px;
}

.woocommerce-account .woocommerce {
    padding-bottom: 40px;
}

.woocommerce-account h2 {
    margin-bottom: 20px;
}

.woocommerce-account input {
    border: none;
    background: transparent;
    padding: 0;
    line-height: normal;
    font-weight: 500;
}

.woocommerce-address-fields, .mis-datos-personales-wrapper {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 3px 0px #00000036;
}

.woocommerce-account > #brx-content.wordpress {
    background: #faf6ed;
    width: 100%;
}

.woocommerce-account > #brx-content.wordpress .woocommerce-MyAccount-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    width: 1100px;
    padding: 40px;
}

.woocommerce .woocommerce-MyAccount-content .form-row {
    border-bottom: 1px solid var(--oma-bg-accent);
    padding: 20px 0;
    margin-block: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
}

.input, input:not([type=submit]), select, textarea {
    line-height: normal;
    padding: 11px;
}

.woocommerce .woocommerce-MyAccount-content .select2-selection {
    border: none;
    border-bottom: 1px solid var(--oma-bg-accent);
}

.woocommerce .select2-selection {
    border: none;
    height: auto;
    line-height: normal;
}

.woocommerce .select2-selection .select2-selection__rendered {
    padding: 0 12px;
    font-weight: 500;
    line-height: 40px; 
    border: 1px solid var(--bricks-border-color);
}

.perfil-header-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 30px;
}

.perfil-avatar-acf .acf-label {
    display: none !important;
}
.perfil-avatar-acf .acf-field {
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
}

#toggle-password-fields {
    background: transparent;
    border: none;
    padding: 0;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 20px 0;
}

#toggle-password-fields > span {
    text-decoration: underline;
}

#toggle-password-fields > #toggle-password-icon {
    text-decoration: none;
}

.perfil-avatar-acf .acf-image-uploader {
    width: 80px;
    height: 80px;
    position: relative;
}

.perfil-avatar-acf .acf-image-uploader .view.show-if-value, .perfil-avatar-acf .acf-image-uploader .image-wrap.show-if-value {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: none !important;
}

.perfil-avatar-acf .acf-image-uploader img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.acf-icon.dark {
    color: black !important;
}

.acf-icon.dark:hover {
    background: white !important;
}

.perfil-avatar-acf .acf-image-uploader .hide-if-value,
.perfil-avatar-acf .acf-image-uploader .acf-basic-uploader {
    width: 80px;
    height: 80px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background-color: #ea4c26; /* Color rojo */
    position: relative;
    cursor: pointer;
    border: none;
}

/* Ocultamos visualmente el feo input de Windows/Mac, pero lo hacemos ocupar el 100% 
   para que al hacer clic en cualquier parte de la bola roja, se abra el explorador de archivos */
.perfil-avatar-acf .acf-image-uploader .acf-basic-uploader input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; 
    cursor: pointer;
    z-index: 10;
}

/* Dibujamos el botón flotante "+" arriba a la derecha */
.perfil-avatar-acf .acf-image-uploader .acf-basic-uploader::after {
    content: "+";
    position: absolute;
    top: 0px;
    right: 0px;
    width: 30px;
    height: 30px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    border: 1px solid #e2e8f0;
    z-index: 5; /* Queda por debajo del input invisible, así que también es clicable */
}

/* Botones Editar/Borrar en estado lleno (Los movemos arriba a la derecha también) */
.perfil-avatar-acf .acf-image-uploader .acf-actions {
    position: absolute;
    top: 0;
    right: -10px; /* Un poco desplazados para no tapar toda la foto */
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column; /* Apilados verticalmente si son dos (editar y borrar) */
    gap: 8px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Diseño de cada botón individual de ACF cuando hay foto */
.perfil-avatar-acf .acf-image-uploader .acf-actions a {
    background: #ffffff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.perfil-avatar-acf .acf-image-uploader .acf-actions a:hover {
    transform: scale(1.1);
}

.perfil-avatar-acf .acf-image-uploader .acf-actions a.acf-icon.-pencil {
    display: none;
}

.perfil-avatar-acf > #message {
    display: none;
}

.perfil-info {
    display: flex;
    flex-direction: column;
}

.perfil-info h2 {
    margin: 0 0 4px 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
}
.perfil-info p {
    margin: 0;
    font-size: 15px;
    color: #64748b;
}

/* Responsividad para móviles */
@media (max-width: 500px) {
    .perfil-header-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

p.order-again {
    display: none;
}

.woocommerce-privacy-policy-text {
    margin: 0 0 10px 0;
}

.woocommerce-order {
    padding: 40px;
}

form.woocommerce-checkout label .optional {
    display: none !important;
}