/* =========================================
   My Account Page – WooCommerce overrides
   ========================================= */

/* Remove WooCommerce default column layout on login/register */
.woocommerce-account .u-columns:not(.addresses),
.woocommerce-account .col2-set:not(.addresses) {
    display: block;
    width: 100%;
}

/* Hide the notices wrapper when empty (WooCommerce always outputs it) */
.woocommerce-account .woocommerce-notices-wrapper:empty {
    display: none !important;
}

/* Strip WooCommerce default form-row block layout */
.woocommerce-account .woocommerce-form-row {
    margin: 0;
    padding: 0;
    float: none;
    width: auto;
}

/* Reset WooCommerce column floats (not inside addresses grid) */
.woocommerce-account .u-column1:not(.woocommerce-Address),
.woocommerce-account .u-column2:not(.woocommerce-Address) {
    float: none;
    width: 100%;
    padding: 0;
}

/* Remove WooCommerce default input borders that override theme */
.woocommerce-account .woocommerce-Input {
    border-radius: 35px;
}

/* Woo adds inline width on #customer_login columns — override */
.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Privacy policy text from WooCommerce settings */
.woocommerce-account .woocommerce-privacy-policy-text {
    margin: 15px 0 0 0;
    font-size: 12px;
    color: rgba(37, 31, 31, 0.7);
    line-height: 1.5;
}

.woocommerce-account .woocommerce-privacy-policy-text p {
    margin: 0;
    font-size: 12px;
}

.woocommerce-account .woocommerce-privacy-policy-text a {
    color: #C0080B;
    text-decoration: underline;
}

/* Password strength meter */
.woocommerce-account .woocommerce-password-strength {
    margin: 8px 0 0 0;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 35px;
    text-align: center;
}

.woocommerce-account .woocommerce-password-hint {
    display: block;
    margin: 6px 0 0 0;
    font-size: 12px;
    color: rgba(37, 31, 31, 0.6);
}

/* Edit-address form: woocommerce_form_field() renders fields as <p class="form-row">.
   The compiled SCSS rule "form.edit-account p { grid-column: 1 / -1 }" forces ALL <p>
   to span both columns, breaking the 2-column grid for form-row-first/form-row-last. */
.wc-my-account-wrapper .woocommerce-MyAccount-content form.edit-account p.form-row {
    grid-column: auto;
    margin: 0;
}
.wc-my-account-wrapper .woocommerce-MyAccount-content form.edit-account p.form-row.form-row-wide {
    grid-column: 1 / -1;
}

/* 25px gap between field rows in the edit-address form grid */
.wc-my-account-wrapper .woocommerce-MyAccount-content form.edit-account {
    gap: 25px;
}

/* woocommerce_form_field() label renders above the input — match theme style */
.wc-my-account-wrapper .woocommerce-MyAccount-content form.edit-account p.form-row > label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 400;
}
.wc-my-account-wrapper .woocommerce-MyAccount-content form.edit-account p.form-row .woocommerce-input-wrapper {
    display: block;
}
.wc-my-account-wrapper .woocommerce-MyAccount-content form.edit-account p.form-row .woocommerce-input-wrapper .input-text,
.wc-my-account-wrapper .woocommerce-MyAccount-content form.edit-account p.form-row .woocommerce-input-wrapper input[type="text"],
.wc-my-account-wrapper .woocommerce-MyAccount-content form.edit-account p.form-row .woocommerce-input-wrapper input[type="email"],
.wc-my-account-wrapper .woocommerce-MyAccount-content form.edit-account p.form-row .woocommerce-input-wrapper input[type="tel"],
.wc-my-account-wrapper .woocommerce-MyAccount-content form.edit-account p.form-row .woocommerce-input-wrapper select {
    width: 100%;
}

/* Hide the "Persona (nav obligāts)" label above the customer-type radio row */
.wc-my-account-wrapper .woocommerce-MyAccount-content form.edit-account .customer-type-row > label:first-child {
    display: none;
}
span.woocommerce-input-wrapper label[for="legal_or_natural_person_Natural person"]{
    margin-right: 20px !important;
   
}
.woocommerce-MyAccount-navigation-link.is-active a{
    pointer-events: unset !important;
}
.woocommerce-ResetPassword.lost_reset_password p.woocommerce-form-row.form-row:not(.form-row-first){
    margin-top:20px;
}

/* "Save account info" button sits above the password section – span full grid width */
form.woocommerce-EditAccountForm > button[name="save_account_details"] {
    grid-column: 1 / -1;
    justify-self: start;
    margin-bottom: 10px;
}

form.woocommerce-ResetPassword.lost_reset_password input.woocommerce-Input{
    width: 50%;
}

@media (max-width: 768px){
    
form.woocommerce-ResetPassword.lost_reset_password input.woocommerce-Input{
    width: 100%;
}

form.woocommerce-ResetPassword.lost_reset_password button.woocommerce-Button{
    width: 100%;
}

}