.woocommerce-account {
    #page-content-wrapper .row:first-of-type {
        background-color: var(--giallo-peck);
        padding-block: var(--gap80-to-56);

        nav {
            padding: 16px 0px;
            background-color: rgba(255, 255, 255, 0);
            margin-bottom: 40px;
            border-bottom: 1px solid black;

            ul {
                list-style: none;
                margin: 0;
                padding: 0;
                display: flex;
                gap: 20px;

                a,
                a:visited,
                a:hover {
                    color: var(--marrone-peck);
                    text-decoration: none;
                    font-weight: 500;
                    font-size: 1rem;
                    font-weight: 600;
                    line-height: 1.5;
                    /* 150% */
                    letter-spacing: 0.02rem;
                }

                li:last-child {
                    margin-left: auto;
                }

                .woocommerce-MyAccount-navigation-link--downloads {
                    display: none;
                }
            }
        }
    }

    color: var(--marrone-peck);

    h1 {
        font-size: 2.5rem;
        font-style: normal;
        font-weight: 600;
        line-height: 1.2;
    }

    .woocommerce {
        gap: 20px;
        font-size: 0.875rem;
        font-style: normal;
        font-weight: 600;
        line-height: 1.43;
        /* 142.857% */
        letter-spacing: 0.0175rem;

        a,
        a:visited,
        a:hover {
            color: var(--marrone-peck);
            text-decoration: underline;

        }

        p {
            font-size: 0.875rem;
            font-style: normal;
            font-weight: 600;
            line-height: 1.43;
            /* 142.857% */
            letter-spacing: 0.0175rem;
        }

        .woocommerce-info {
            background-color: transparent;
        }

        /* Stili per il form di login (utente non loggato) */
        .woocommerce-form-login {
            max-width: 536px;

            h2 {
                font-size: 1.5rem;
                font-weight: 600;
                line-height: 1.33;
                color: var(--marrone-peck);
                margin-top: 0;
                margin-bottom: 24px;
            }

            label {
                font-size: 14px;
                font-weight: 600;
                line-height: 1.42857;
                letter-spacing: 0.28px;
                margin-bottom: 4px;
                color: var(--marrone-peck);
            }

            .woocommerce-form-row {
                display: flex;
                flex-direction: column;
                gap: 4px;
            }

            input[type="text"],
            input[type="email"],
            input[type="password"] {
                width: 100%;
                padding: 16px;
                border: none;
                border-radius: 0;
                border-bottom: 1px solid var(--marrone-peck);
                color: var(--black, #000);
                font-size: 16px;
                font-style: normal;
                font-weight: 600;
                line-height: 24px;
                min-height: 56px;
                background-color: white;
            }

            input[type="text"]:focus,
            input[type="email"]:focus,
            input[type="password"]:focus {
                border: none !important;
                border-bottom: 2px solid var(--marrone-peck) !important;
                outline: none !important;
                box-shadow: none !important;
            }

            .woocommerce-form__label-for-checkbox {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: 12px;
                font-weight: 600;
                line-height: 16px;
                letter-spacing: 0.36px;
                cursor: pointer;
            }

            .woocommerce-form__input-checkbox,
            input[type="checkbox"] {
                width: 20px;
                height: 20px;
                flex-shrink: 0;
                border-radius: 2px;
                border: 1px solid var(--marrone-peck);
                background: var(--white, #FFF);
                appearance: auto;
                cursor: pointer;
            }

            button[type="submit"] {
                background: var(--marrone-peck);
                border: none;
                border-radius: 0;
                cursor: pointer;
                color: var(--white, #FFF);
                font-size: 16px;
                font-style: normal;
                font-weight: 500;
                line-height: 24px;
                letter-spacing: 0.48px;
                text-transform: uppercase;
                display: block;
                padding: 20px 48px;
                text-decoration: none;
                margin-top: 24px;
            }

            .password-input .show-password-input {
                display: block;
                background-image: none;
                background-color: transparent;
                width: auto;
                height: auto;
                text-indent: 0;
                font-size: 0;
                cursor: pointer;
                border: none;
                padding: 0;
                margin-top: 8px;
            }

            .password-input .show-password-input::after {
                content: "Mostra password";
                font-size: 12px;
                font-weight: 600;
                line-height: 16px;
                letter-spacing: 0.36px;
                color: var(--marrone-peck);
                text-decoration: underline;
            }

            .password-input .show-password-input.display-password::after {
                content: "Nascondi password";
            }

            .lost_password {
                margin-top: 16px;

                a,
                a:visited {
                    color: var(--marrone-peck);
                    font-size: 14px;
                    font-weight: 600;
                    text-decoration: underline;
                }
            }
        }

        .woocommerce-MyAccount-content {
            flex: 1 1 80%;

            fieldset {
                border: 1px solid black;
            }

            label {
                font-size: 14px;
                font-weight: 600;
                line-height: 1.42857;
                letter-spacing: 0.28px;
                margin-bottom: 4px;
                color: var(--marrone-peck);
            }

            button[type="submit"] {
                background: var(--marrone-peck);
                border: none;
                border-radius: 0;
                cursor: pointer;
                color: var(--white, #FFF);
                font-size: 16px;
                font-style: normal;
                font-weight: 500;
                line-height: 24px;
                letter-spacing: 0.48px;
                text-transform: uppercase;
                display: inline-block;
                padding: 20px 48px;
                justify-content: center;
                text-decoration: none;
                margin-top: 24px;
            }

            input[type="text"],
            input[type="email"],
            input[type="password"],
            input[type="tel"],
            input[type="number"],
            input[type="search"],
            textarea,
            select {
                width: 100%;
                padding: 16px;
                border: none;
                border-radius: 0;
                border-bottom: 1px solid var(--marrone-peck);
                color: var(--black, #000);
                font-size: 16px;
                font-style: normal;
                font-weight: 600;
                line-height: 24px;
                min-height: 56px;
                background-color: transparent;
            }

            input[type="text"]:focus,
            input[type="email"]:focus,
            input[type="password"]:focus,
            input[type="tel"]:focus,
            input[type="number"]:focus,
            input[type="search"]:focus,
            textarea:focus,
            select,
            select:focus {
                border: none !important;
                border-bottom: 2px solid var(--marrone-peck) !important;
                outline: none !important;
                box-shadow: none !important;
            }

            .woocommerce-form-row {
                display: flex;
                flex-direction: column;
                gap: 4px;
            }

            .woocommerce-form__label-for-checkbox {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: 12px;
                font-style: normal;
                font-weight: 600;
                line-height: 16px;
                letter-spacing: 0.36px;
                text-transform: none;
                padding: 0;
                margin-bottom: 0;
            }

            .woocommerce-form__input-checkbox,
            input[type="checkbox"] {
                width: 20px;
                height: 20px;
                flex-shrink: 0;
                border-radius: 2px;
                border: 1px solid var(--marrone-peck);
                background: var(--white, #FFF);
                appearance: auto;
                cursor: pointer;
            }

            .password-input .show-password-input {
                display: block;
                background-image: none;
                background-color: transparent;
                width: auto;
                height: auto;
                text-indent: 0;
                font-size: 0;
                cursor: pointer;
                border: none;
                padding: 0;
                margin-top: 8px;
            }

            .password-input .show-password-input::after {
                content: "Mostra password";
                font-size: 12px;
                font-weight: 600;
                line-height: 16px;
                letter-spacing: 0.36px;
                color: var(--marrone-peck);
                text-decoration: underline;
            }

            .password-input .show-password-input.display-password::after {
                content: "Nascondi password";
            }

            #password_strength {
                text-align: left;
            }


            .entry-footer {
                display: none;
            }
        }
    }

    .registrazione-login-link {
        margin-top: 16px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.42857;
        letter-spacing: 0.28px;
        color: var(--marrone-peck);

        a,
        a:visited {
            color: var(--marrone-peck);
            text-decoration: underline;
        }
    }
}

/* Pagina di registrazione custom */
.row-registrazione {
    background-color: var(--giallo-peck);
    padding-block: var(--gap80-to-56);

    .registrazione-container {
        max-width: 536px;
        color: var(--marrone-peck);

        h1 {
            margin-top: 0;
            margin-bottom: 8px;
        }

        > p.caption-M {
            font-size: 16px;
            font-style: italic;
            font-weight: 500;
            line-height: 24px;
            letter-spacing: 0.32px;
            margin-top: 0;
            margin-bottom: 32px;
        }

        .form-section {
            border: none;
            padding: 0;
            margin: 0 0 32px 0;

            legend {
                font-size: 14px;
                font-weight: 600;
                line-height: 1.42857;
                letter-spacing: 0.28px;
                color: var(--marrone-peck);
                padding: 0;
                margin-bottom: 16px;
                border-bottom: 1px solid var(--marrone-peck);
                width: 100%;
                padding-bottom: 8px;
            }
        }

        .form-row {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-bottom: 0;

            label {
                font-size: 14px;
                font-weight: 600;
                line-height: 1.42857;
                letter-spacing: 0.28px;
                margin-bottom: 4px;
                color: var(--marrone-peck);
            }
        }

        .form-row-half {
            display: flex;
            gap: 16px;

            .form-row {
                flex: 1;
            }
        }

        input[type="text"],
        input[type="email"],
        input[type="password"],
        input[type="tel"] {
            width: 100%;
            padding: 16px;
            border: none;
            border-radius: 0;
            border-bottom: 1px solid var(--marrone-peck);
            color: var(--black, #000);
            font-size: 16px;
            font-style: normal;
            font-weight: 600;
            line-height: 24px;
            min-height: 56px;
            background-color: white;
        }

        input[type="text"]:focus,
        input[type="email"]:focus,
        input[type="password"]:focus,
        input[type="tel"]:focus {
            border: none !important;
            border-bottom: 2px solid var(--marrone-peck) !important;
            outline: none !important;
            box-shadow: none !important;
        }

        .shipping-toggle-label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 0;

            input[type="checkbox"] {
                width: 20px;
                height: 20px;
                flex-shrink: 0;
                border-radius: 2px;
                border: 1px solid var(--marrone-peck);
                background: var(--white, #FFF);
                cursor: pointer;
            }
        }

        button[type="submit"] {
            background: var(--marrone-peck);
            border: none;
            border-radius: 0;
            cursor: pointer;
            color: var(--white, #FFF);
            font-size: 16px;
            font-style: normal;
            font-weight: 500;
            line-height: 24px;
            letter-spacing: 0.48px;
            text-transform: uppercase;
            display: inline-block;
            padding: 20px 48px;
            text-decoration: none;
            margin-top: 24px;
        }

        button[type="submit"]:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .registrazione-messages {
            padding: 16px;
            margin-bottom: 24px;
            font-size: 14px;
            font-weight: 600;
            line-height: 1.42857;
            letter-spacing: 0.28px;
        }

        .registrazione-messages--error {
            background-color: #fce4e4;
            color: #dc3545;
            border: 1px solid #dc3545;
        }

        .registrazione-messages--success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #155724;
        }

        .registrazione-login-link {
            margin-top: 16px;
            font-size: 14px;
            font-weight: 600;
            line-height: 1.42857;
            letter-spacing: 0.28px;

            a,
            a:visited {
                color: var(--marrone-peck);
                text-decoration: underline;
            }
        }
    }
}

@media (max-width: 640px) {
    .row-registrazione .registrazione-container .form-row-half {
        flex-direction: column;
        gap: 0;
    }
}