.account-page {
    background: #fff;
    color: #000;
    padding: 42px 0 72px;
}

.account-container {
    max-width: var(--container, 1400px) !important;
    width: min(calc(100% - 48px), var(--container, 1400px)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.account-layout {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.account-sidebar,
.account-content {
    min-width: 0;
}

.account-user-card,
.account-menu-card,
.account-title-card,
.account-profile-card {
    background: #fff;
    border: 1px solid #d6dde8;
    border-radius: 8px;
}

.account-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 62px;
    padding: 14px 24px;
    margin-bottom: 16px;
}

.account-avatar {
    align-items: center;
    background: #f5f5f5;
    border-radius: 999px;
    color: #000;
    display: inline-flex;
    flex: 0 0 26px;
    font-size: 12px;
    font-weight: 700;
    height: 26px;
    justify-content: center;
    line-height: 1;
    text-transform: uppercase;
    width: 26px;
}

.account-user-card strong {
    color: #000;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.account-menu-card {
    padding: 20px 10px 24px;
}

.account-menu-card h2 {
    color: #000;
    font-size: 18px;
    font-weight: 700;
    margin: 0 14px 16px;
    text-transform: uppercase;
}

.account-menu {
    display: grid;
}

.account-menu__item {
    align-items: center;
    border-bottom: 1px solid #edf0f4;
    border-radius: 6px;
    color: #000;
    display: grid;
    font-size: 15px;
    font-weight: 500;
    gap: 13px;
    grid-template-columns: 16px 1fr 14px;
    min-height: 48px;
    padding: 0 14px;
    text-decoration: none;
}

.account-menu__item:hover,
.account-menu__item.is-active {
    background: #f1f3f7;
    color: #000;
}

.account-menu__icon {
    border: 1.5px solid currentColor;
    border-radius: 4px;
    display: inline-block;
    height: 13px;
    position: relative;
    width: 13px;
}

.account-menu__item:nth-child(1) .account-menu__icon {
    border-radius: 999px;
}

.account-menu__item:nth-child(2) .account-menu__icon::after,
.account-menu__item:nth-child(4) .account-menu__icon::after,
.account-menu__item:nth-child(8) .account-menu__icon::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 3px;
    left: 4px;
    position: absolute;
    top: 4px;
    width: 3px;
}

.account-menu__arrow {
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    display: inline-block;
    height: 8px;
    transform: rotate(45deg);
    width: 8px;
}

.account-support {
    color: #000;
    display: grid;
    gap: 4px;
    justify-items: center;
    padding: 20px 16px 0;
    text-align: center;
}

.account-support span,
.account-support strong {
    font-size: 13px;
    font-weight: 600;
}

.account-support a {
    color: #000;
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
    text-decoration: none;
}

.account-title-card {
    align-items: center;
    display: flex;
    min-height: 62px;
    padding: 0 24px;
    margin-bottom: 16px;
}

.account-title-card h1 {
    color: #000;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.account-profile-card {
    min-height: 620px;
    padding: 64px 64px 70px;
    width: 100%;
}

.account-section h2 {
    color: #000;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 28px;
}

.account-section--contact {
    margin-top: 44px;
}

.account-form-grid {
    display: grid;
    gap: 26px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-form-grid--single {
    max-width: 520px;
    grid-template-columns: 1fr;
}

.account-field {
    color: #000;
    display: grid;
    gap: 9px;
    margin: 0;
}

.account-field > span {
    color: #333;
    font-size: 13px;
    font-weight: 500;
}

.account-field input,
.account-field select,
.account-phone {
    background: #f8f9fb;
    border: 1px solid #d6dde8;
    border-radius: 7px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
    height: 48px;
    outline: none;
    padding: 0 24px;
    width: 100%;
}

.account-date-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-date-grid select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #000 50%),
        linear-gradient(135deg, #000 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 19px,
        calc(100% - 12px) 19px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding-right: 34px;
}

.account-update-block {
    display: grid;
    gap: 16px;
}

.account-phone {
    align-items: center;
    display: grid;
    grid-template-columns: 80px 1fr;
    padding: 0;
}

.account-phone span {
    align-items: center;
    border-right: 1px solid #d6dde8;
    color: #667085;
    display: inline-flex;
    height: 100%;
    justify-content: center;
    padding: 0 12px;
}

.account-phone span::before {
    background: #000;
    border-radius: 1px;
    content: "";
    display: inline-block;
    height: 8px;
    margin-right: 8px;
    width: 12px;
}

.account-phone input {
    background: transparent;
    border: 0;
    border-radius: 0;
    height: 46px;
    padding: 0 20px;
}

.account-disabled-button {
    background: #b6c0ce;
    border: 1px solid #b6c0ce;
    border-radius: 5px;
    color: #fff;
    cursor: not-allowed;
    font-size: 16px;
    font-weight: 500;
    height: 50px;
    width: 100%;
}

.account-primary-button {
    background: #000;
    border: 1px solid #000;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    height: 50px;
    width: 100%;
}

.account-save-button {
    margin-top: 34px;
    max-width: 360px;
}

.account-primary-button:hover {
    background: #fff;
    color: #000;
}

.account-profile-card .woocommerce-notices-wrapper,
.account-profile-card .woocommerce-message,
.account-profile-card .woocommerce-error,
.account-profile-card .woocommerce-info {
    margin: 0 0 24px !important;
}

.account-profile-card .woocommerce-message,
.account-profile-card .woocommerce-info,
.account-profile-card .woocommerce-error {
    background: #f8f9fb !important;
    border: 1px solid #d6dde8 !important;
    border-radius: 8px !important;
    color: #000 !important;
    padding: 14px 18px !important;
}

.account-muted {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
    margin: -12px 0 28px;
    max-width: 640px;
}

.account-empty,
.account-address-card,
.account-preferences {
    background: #f8f9fb;
    border: 1px solid #d6dde8;
    border-radius: 8px;
    padding: 24px;
}

.account-empty h3,
.account-address-card strong {
    color: #000;
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.account-empty p,
.account-address-card p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.account-list {
    display: grid;
    gap: 12px;
}

.account-list__item {
    align-items: center;
    background: #fff;
    border: 1px solid #d6dde8;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 18px 22px;
}

.account-list__item div {
    display: grid;
    gap: 5px;
}

.account-list__item div:last-child {
    justify-items: end;
    text-align: right;
}

.account-list__item strong {
    color: #000;
    font-size: 16px;
    font-weight: 700;
}

.account-list__item span {
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
}

.account-preferences label {
    align-items: center;
    color: #000;
    display: flex;
    font-size: 15px;
    font-weight: 600;
    gap: 12px;
    margin: 0;
}

.account-preferences input {
    accent-color: #000;
    height: 18px;
    width: 18px;
}

@media (max-width: 1199px) {
    .account-layout {
        gap: 32px;
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .account-profile-card {
        padding: 48px 36px 56px;
    }
}

@media (max-width: 991px) {
    .account-layout,
    .account-form-grid {
        grid-template-columns: 1fr;
    }

    .account-layout {
        gap: 24px;
    }

    .account-profile-card {
        min-height: 0;
        padding: 34px 22px 40px;
    }

    .account-list__item {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-list__item div:last-child {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 575px) {
    .account-page {
        padding: 24px 0 48px;
    }

    .account-date-grid {
        grid-template-columns: 1fr;
    }
}
