.woocommerce-account .entry-content {
    margin-top: 0;
}


.woocommerce-account .ct-container-full {
    padding-block: 0;
}

.cg-account-page,
.cg-account-auth {
    --cg-account-brand: var(--wp--preset--color--brand, #3f5948);
    --cg-account-brand-dark: var(--wp--preset--color--brand-dark, #2f4437);
    --cg-account-ink: var(--wp--preset--color--ink, #1f211f);
    --cg-account-muted: #687069;
    --cg-account-canvas: var(--wp--preset--color--canvas, #f7f5f0);
    --cg-account-surface: #fff;
    --cg-account-line: rgba(31, 33, 31, 0.12);
    --cg-account-soft-line: rgba(31, 33, 31, 0.08);
    --cg-account-focus: rgba(63, 89, 72, 0.24);
    color: var(--cg-account-ink);
}

.cg-account-page {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: clamp(34px, 5vw, 64px) 0 clamp(44px, 6vw, 76px);
    scroll-margin-top: calc(var(--cg-site-header-height, 72px) + 24px);
}

.cg-account-auth {
    width: min(100% - 32px, 980px);
    margin: 0 auto;
    padding: clamp(34px, 6vw, 70px) 0 clamp(44px, 7vw, 80px);
    scroll-margin-top: calc(var(--cg-site-header-height, 72px) + 24px);
}

.admin-bar .cg-account-page,
.admin-bar .cg-account-auth {
    scroll-margin-top: calc(var(--cg-site-header-height, 72px) + 56px);
}

.cg-account-header {
    margin-bottom: clamp(28px, 4vw, 40px);
}

.cg-account-header * {
    margin: 0;
}

.cg-account-header__eyebrow,
.cg-account-auth__intro p {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cg-account-muted);
}

.cg-account-header h1,
.cg-account-auth__intro h1,
.cg-account-auth__card > h1 {
    margin-top: 8px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.06;
    font-weight: 650;
    letter-spacing: 0;
    color: var(--cg-account-ink);
}

.cg-account-header__hello {
    margin-top: 12px;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.35;
    font-weight: 650;
}

.cg-account-header__copy,
.cg-account-auth__intro span,
.cg-account-lost-password__intro,
.cg-account-section-head p,
.cg-account-fieldset__copy,
.cg-account-help {
    color: var(--cg-account-muted);
    font-size: 15px;
    line-height: 1.6;
}

.cg-account-header__copy,
.cg-account-auth__intro span {
    display: block;
    max-width: 640px;
    margin-top: 8px;
}

.cg-account-shell {
    display: grid;
    grid-template-columns: minmax(230px, 260px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 40px);
    align-items: start;
}

.cg-account-nav {
    position: sticky;
    top: calc(var(--cg-site-header-height, 72px) + 20px);
    z-index: 5;
}

.admin-bar .cg-account-nav {
    top: calc(var(--cg-site-header-height, 72px) + 52px);
}

.cg-account-nav__toggle {
    display: none;
}

.cg-account-nav__list {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: #faf9f6;
    border: 1px solid var(--cg-account-line);
    border-radius: 8px;
}

.cg-account-nav__item {
    margin: 0;
    list-style: none;
}

.cg-account-nav__item--customer-logout,
.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--cg-account-soft-line);
}

.cg-account-nav__item::before,
.cg-account-nav__item::after,
.cg-account-nav__link::before,
.cg-account-nav__link::after,
.woocommerce-MyAccount-navigation-link::before,
.woocommerce-MyAccount-navigation-link::after,
.woocommerce-MyAccount-navigation-link a::before,
.woocommerce-MyAccount-navigation-link a::after {
    content: none;
    display: none;
}

.cg-account-nav__link,
.woocommerce-MyAccount-navigation .cg-account-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 10px 12px;
    border-radius: 7px;
    color: var(--cg-account-ink);
    background: transparent;
    border: 0;
    box-shadow: none;
    text-decoration: none;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.cg-account-nav__link svg,
.cg-account-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    stroke: currentColor;
}

.cg-account-nav__link:hover,
.cg-account-nav__link:focus-visible {
    background: rgba(63, 89, 72, 0.1);
    color: var(--cg-account-brand-dark);
    outline: none;
    text-decoration: none;
}

.cg-account-nav__item.is-active .cg-account-nav__link,
.cg-account-nav__link[aria-current="page"] {
    background: var(--cg-account-brand-dark);
    color: #fff;
    text-decoration: none;
}

.cg-account-nav__item.is-active .cg-account-nav__link:hover,
.cg-account-nav__item.is-active .cg-account-nav__link:focus-visible {
    background: var(--cg-account-brand-dark);
    color: #fff;
    box-shadow: 0 0 0 3px var(--cg-account-focus);
}

.cg-account-content {
    min-width: 0;
}

.cg-account-dashboard,
.cg-account-orders,
.cg-account-addresses,
.cg-account-edit-account,
.cg-account-edit-address,
.cg-account-view-order {
    display: grid;
    gap: 24px;
}

.cg-account-section-head {
    display: grid;
    gap: 6px;
}

.cg-account-section-head h2,
.cg-account-panel h2,
.cg-account-card h2,
.cg-account-card h3,
.cg-account-auth__card h2,
.cg-account-fieldset legend {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: 0;
    color: var(--cg-account-ink);
}

.cg-account-section-head p,
.cg-account-fieldset__copy {
    margin: 0;
}

.cg-account-panel,
.cg-account-card,
.cg-account-auth__card,
.cg-account-fieldset {
    background: var(--cg-account-surface);
    border: 1px solid var(--cg-account-line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(31, 33, 31, 0.04);
}

.cg-account-panel,
.cg-account-card,
.cg-account-auth__card,
.cg-account-fieldset {
    padding: clamp(20px, 3vw, 28px);
}

.cg-account-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

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

.cg-account-quick-card,
.cg-account-quick-card:hover,
.cg-account-quick-card:focus-visible {
    text-decoration: none;
}

.cg-account-quick-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px 12px;
    align-items: center;
    min-height: 148px;
    color: var(--cg-account-ink);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cg-account-quick-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(63, 89, 72, 0.1);
    color: var(--cg-account-brand-dark);
}

.cg-account-quick-card__title {
    font-size: 18px;
    font-weight: 700;
}

.cg-account-quick-card__copy {
    grid-column: 1 / -1;
    color: var(--cg-account-muted);
    font-size: 14px;
    line-height: 1.55;
}

.cg-account-quick-card__arrow {
    justify-self: end;
    color: var(--cg-account-brand-dark);
    font-size: 20px;
}

.cg-account-quick-card:hover,
.cg-account-quick-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(63, 89, 72, 0.34);
    box-shadow: 0 18px 34px rgba(31, 33, 31, 0.08);
    outline: none;
}

.cg-account-quick-card:focus-visible,
.cg-account-button:focus-visible,
.cg-account-page a:focus-visible,
.cg-account-auth a:focus-visible,
.cg-account-password-toggle:focus-visible,
.cg-account-nav__toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--cg-account-focus);
}

.cg-account-empty {
    display: grid;
    justify-items: start;
    gap: 12px;
    max-width: 620px;
    padding: clamp(22px, 4vw, 32px);
    background: #faf9f6;
    border: 1px dashed rgba(31, 33, 31, 0.18);
    border-radius: 8px;
}

.cg-account-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #fff;
    color: var(--cg-account-brand-dark);
}

.cg-account-empty h2,
.cg-account-empty p {
    margin: 0;
}

.cg-account-empty h2 {
    font-size: 22px;
    line-height: 1.2;
}

.cg-account-empty p {
    color: var(--cg-account-muted);
    line-height: 1.6;
}

.cg-account-dashboard__columns,
.cg-account-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cg-account-address-mini {
    display: grid;
    gap: 14px;
}

.cg-account-address-mini__item,
.cg-account-contact-list div,
.cg-account-summary-list div,
.cg-account-totals div {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--cg-account-soft-line);
}

.cg-account-address-mini__item:first-child,
.cg-account-contact-list div:first-child,
.cg-account-summary-list div:first-child,
.cg-account-totals div:first-child {
    border-top: 0;
    padding-top: 0;
}

.cg-account-address-mini h3,
.cg-account-address-mini p,
.cg-account-contact-list,
.cg-account-contact-list dd,
.cg-account-summary-list,
.cg-account-summary-list dd,
.cg-account-totals,
.cg-account-totals dd,
.cg-account-card p,
.cg-account-card address {
    margin: 0;
}

.cg-account-address-mini h3,
.cg-account-contact-list dt,
.cg-account-summary-list dt,
.cg-account-totals dt {
    font-size: 14px;
    font-weight: 700;
    color: var(--cg-account-ink);
}

.cg-account-address-mini p,
.cg-account-contact-list dd,
.cg-account-summary-list dd,
.cg-account-totals dd,
.cg-account-card address,
.cg-account-card p,
.cg-account-order-card__payment {
    color: var(--cg-account-muted);
    font-size: 14px;
    line-height: 1.55;
}

.cg-account-card address,
.cg-account-panel address {
    font-style: normal;
}

.cg-account-address-card {
    display: grid;
    gap: 16px;
}

.cg-account-address-card__head {
    display: grid;
    gap: 10px;
}

.cg-account-address-card__state,
.cg-account-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf4f0;
    color: var(--cg-account-brand-dark);
    font-size: 13px;
    font-weight: 700;
}

.cg-account-status--cancelled,
.cg-account-status--failed {
    background: #f8e9e6;
    color: #8a2f22;
}

.cg-account-status--completed,
.cg-account-status--processing {
    background: #e8f3ec;
    color: #23613f;
}

.cg-account-status--pending,
.cg-account-status--on-hold {
    background: #fff3d7;
    color: #7a5514;
}

.cg-account-order-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    align-items: start;
}

.cg-account-order-card__number {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--cg-account-ink);
}

.cg-account-order-card time,
.cg-account-order-card__meta,
.cg-account-order-card__payment {
    color: var(--cg-account-muted);
    font-size: 14px;
    line-height: 1.55;
}

.cg-account-order-card__meta,
.cg-account-order-card__payment,
.cg-account-order-card__actions {
    grid-column: 1 / -1;
    margin: 0;
}

.cg-account-order-card__actions,
.cg-account-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cg-account-button,
.cg-account-page .button,
.cg-account-auth .button,
.cg-account-page button[type="submit"],
.cg-account-auth button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 7px;
    box-shadow: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.cg-account-button--primary,
.cg-account-page .button,
.cg-account-auth .button,
.cg-account-page button[type="submit"],
.cg-account-auth button[type="submit"] {
    background: var(--cg-account-brand-dark);
    color: #fff;
    border-color: var(--cg-account-brand-dark);
}

.cg-account-button--secondary,
.cg-account-page .cg-account-button--secondary,
.cg-account-auth .cg-account-button--secondary {
    background: #fff;
    color: var(--cg-account-brand-dark);
    border-color: rgba(63, 89, 72, 0.28);
}

.cg-account-button:hover,
.cg-account-page .button:hover,
.cg-account-auth .button:hover,
.cg-account-page button[type="submit"]:hover,
.cg-account-auth button[type="submit"]:hover {
    text-decoration: none;
    box-shadow: 0 0 0 3px var(--cg-account-focus);
}

.cg-account-back {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 40px;
    color: var(--cg-account-brand-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cg-account-order-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.cg-account-order-hero p,
.cg-account-order-hero h2 {
    margin: 0;
}

.cg-account-order-hero h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.cg-account-order-hero time {
    display: block;
    margin-top: 6px;
    color: var(--cg-account-muted);
}

.cg-account-order-items {
    display: grid;
    gap: 12px;
}

.cg-account-order-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--cg-account-soft-line);
    border-radius: 8px;
}

.cg-account-order-item__image {
    display: grid;
    place-items: center;
    width: 76px;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f3ef;
    border-radius: 6px;
}

.cg-account-order-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cg-account-form,
.cg-account-auth form,
.cg-account-page form {
    display: grid;
    gap: 18px;
}

.cg-account-fieldset {
    display: grid;
    gap: 16px;
    margin: 0;
}

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

.cg-account-field--full,
.cg-account-form-grid .form-row-wide {
    grid-column: 1 / -1;
}

.cg-account-form-row,
.cg-account-page .form-row,
.cg-account-auth .form-row {
    display: grid;
    gap: 7px;
    margin: 0;
}

.cg-account-page label,
.cg-account-auth label {
    font-size: 14px;
    font-weight: 700;
    color: #303630;
}

.cg-account-page input[type="text"],
.cg-account-page input[type="email"],
.cg-account-page input[type="password"],
.cg-account-page input[type="tel"],
.cg-account-page input[type="number"],
.cg-account-auth input[type="text"],
.cg-account-auth input[type="email"],
.cg-account-auth input[type="password"],
.cg-account-page select,
.cg-account-page textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid rgba(31, 33, 31, 0.18);
    border-radius: 7px;
    background: #fff;
    color: var(--cg-account-ink);
    font-size: 16px;
    line-height: 1.3;
    box-shadow: none;
}

.cg-account-page input:focus,
.cg-account-auth input:focus,
.cg-account-page select:focus,
.cg-account-page textarea:focus {
    outline: none;
    border-color: var(--cg-account-brand);
    box-shadow: 0 0 0 3px var(--cg-account-focus);
}

.cg-account-page .required,
.cg-account-auth .required {
    color: #8a2f22;
}

.cg-account-form-actions {
    margin: 4px 0 0;
}

.cg-account-password-field {
    position: relative;
}

.cg-account-password-field input {
    padding-right: 56px;
}

.cg-account-password-toggle {
    position: absolute;
    right: 4px;
    bottom: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--cg-account-muted);
    cursor: pointer;
}

.cg-account-password-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cg-account-password-toggle:hover,
.cg-account-password-toggle:focus-visible {
    color: var(--cg-account-brand-dark);
}

.cg-account-auth__intro {
    margin-bottom: clamp(22px, 4vw, 32px);
}

.cg-account-auth__intro p,
.cg-account-auth__intro h1,
.cg-account-auth__intro span,
.cg-account-auth__card h1,
.cg-account-auth__card h2,
.cg-account-auth__card p {
    margin-left: 0;
    margin-right: 0;
}

.cg-account-auth__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 28px);
}

.cg-account-auth--lost {
    width: min(100% - 32px, 620px);
}

.cg-account-auth__card--narrow {
    max-width: 620px;
}

.cg-account-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cg-account-auth__row a,
.cg-account-page a:not(.cg-account-button):not(.cg-account-nav__link):not(.cg-account-quick-card):not(.cg-account-back),
.cg-account-auth a:not(.cg-account-button) {
    color: var(--cg-account-brand-dark);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cg-account-page .woocommerce-error,
.cg-account-page .woocommerce-message,
.cg-account-page .woocommerce-info,
.cg-account-auth .woocommerce-error,
.cg-account-auth .woocommerce-message,
.cg-account-auth .woocommerce-info {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--cg-account-line);
    background: #faf9f6;
    color: var(--cg-account-ink);
    list-style: none;
}

.cg-account-page .woocommerce-message,
.cg-account-auth .woocommerce-message {
    border-color: rgba(35, 97, 63, 0.24);
    background: #edf7f1;
}

.cg-account-page .woocommerce-error,
.cg-account-auth .woocommerce-error {
    border-color: rgba(138, 47, 34, 0.24);
    background: #f9ece9;
}

.cg-account-page .woocommerce-info,
.cg-account-auth .woocommerce-info {
    border-color: rgba(122, 85, 20, 0.2);
    background: #fff7e3;
}

@media (max-width: 900px) {
    .cg-account-page,
    .cg-account-auth {
        width: min(100% - 28px, 100%);
        padding-top: clamp(32px, 8vw, 42px);
    }

    .cg-account-shell,
    .cg-account-auth__grid,
    .cg-account-quick-grid,
    .cg-account-dashboard__columns,
    .cg-account-address-grid {
        grid-template-columns: 1fr;
    }

    .cg-account-nav,
    .admin-bar .cg-account-nav {
        position: relative;
        top: auto;
    }

    .cg-account-nav__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 50px;
        padding: 10px 12px;
        border: 1px solid var(--cg-account-line);
        border-radius: 8px;
        background: #faf9f6;
        color: var(--cg-account-ink);
        font-size: 15px;
        font-weight: 700;
    }

    .cg-account-nav__list {
        display: none;
        margin-top: 8px;
    }

    .cg-account-nav.is-open .cg-account-nav__list {
        display: grid;
    }

    .cg-account-order-card,
    .cg-account-order-hero {
        grid-template-columns: 1fr;
        display: grid;
    }

    .cg-account-order-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .cg-account-order-item strong {
        grid-column: 2;
    }
}

@media (max-width: 520px) {
    .cg-account-page,
    .cg-account-auth {
        width: min(100% - 24px, 100%);
    }

    .cg-account-panel,
    .cg-account-card,
    .cg-account-auth__card,
    .cg-account-fieldset {
        padding: 18px;
    }

    .cg-account-panel__head,
    .cg-account-auth__row {
        display: grid;
        justify-items: start;
    }

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

    .cg-account-button,
    .cg-account-page .button,
    .cg-account-auth .button,
    .cg-account-page button[type="submit"],
    .cg-account-auth button[type="submit"] {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cg-account-page *,
    .cg-account-auth * {
        transition-duration: 1ms;
        scroll-behavior: auto;
    }
}
/* Final account responsive polish */
.cg-account-page {
    padding-top: clamp(28px, 4vw, 52px);
}

.cg-account-header {
    margin-bottom: clamp(20px, 3vw, 30px);
}

.cg-account-header h1 {
    font-size: clamp(30px, 3.4vw, 46px);
}

.cg-account-shell {
    gap: clamp(22px, 3vw, 32px);
}

.cg-account-nav {
    max-height: calc(100vh - var(--cg-site-header-height, 72px) - 40px);
}

.admin-bar .cg-account-nav {
    max-height: calc(100vh - var(--cg-site-header-height, 72px) - 72px);
}

@media (max-width: 782px) {
    .admin-bar .cg-account-nav {
        max-height: calc(100vh - var(--cg-site-header-height, 72px) - 86px);
    }
}

.cg-account-nav__link:hover {
    background: rgba(63, 89, 72, 0.1);
    color: var(--cg-account-brand-dark);
    text-decoration: none;
}

.cg-account-nav__link:focus,
.woocommerce-MyAccount-navigation .cg-account-nav__link:focus {
    background: transparent;
    color: var(--cg-account-ink);
    outline: none;
    text-decoration: none;
}

.cg-account-nav__link:focus-visible,
.woocommerce-MyAccount-navigation .cg-account-nav__link:focus-visible {
    background: transparent;
    color: var(--cg-account-ink);
    box-shadow: 0 0 0 3px var(--cg-account-focus);
    outline: none;
    text-decoration: none;
}

.cg-account-nav__item.is-active .cg-account-nav__link,
.cg-account-nav__link[aria-current="page"],
.cg-account-nav__item.is-active .cg-account-nav__link:focus,
.cg-account-nav__link[aria-current="page"]:focus,
.cg-account-nav__item.is-active .cg-account-nav__link:focus-visible,
.cg-account-nav__link[aria-current="page"]:focus-visible {
    background: var(--cg-account-brand-dark);
    color: #fff;
}

.cg-account-form-grid .form-row,
.cg-account-form-grid .form-row-first,
.cg-account-form-grid .form-row-last,
.cg-account-form-grid .form-row-wide {
    float: none;
    clear: none;
    width: auto;
    margin-right: 0;
    margin-left: 0;
}

.cg-account-form-grid .cg-account-field--half {
    grid-column: auto;
}

.cg-account-form-grid .cg-account-field--full {
    grid-column: 1 / -1;
}

.cg-account-password-field,
.password-input.cg-account-password-field {
    position: relative;
    display: block;
    width: 100%;
}

.cg-account-password-field input {
    padding-right: 60px;
}

.cg-account-password-toggle.show-password-input,
.cg-account-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    bottom: auto;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--cg-account-muted);
    font-size: 0;
    line-height: 0;
}

.cg-account-password-toggle.show-password-input::before,
.cg-account-password-toggle.show-password-input::after,
.cg-account-password-toggle::before,
.cg-account-password-toggle::after {
    content: none;
}

.cg-account-password-toggle svg {
    width: 21px;
    height: 21px;
}

.cg-account-password-toggle:hover {
    background: transparent;
    color: var(--cg-account-brand-dark);
}

.cg-account-password-toggle:focus-visible {
    background: transparent;
    color: var(--cg-account-brand-dark);
    outline: 2px solid rgba(63, 89, 72, 0.55);
    outline-offset: 2px;
    box-shadow: none;
}

@media (max-width: 520px) {
    .cg-account-page {
        padding-top: 24px;
    }

    .cg-account-header {
        margin-bottom: 18px;
    }

    .cg-account-header h1 {
        font-size: clamp(28px, 9vw, 34px);
    }

    .cg-account-form-grid .cg-account-field--half,
    .cg-account-form-grid .cg-account-field--full {
        grid-column: 1 / -1;
    }
}
/* Strong override for WooCommerce password reveal controls inside account forms. */
.cg-account-page .password-input.cg-account-password-field {
    position: relative;
    display: block;
    width: 100%;
}

.cg-account-page .password-input.cg-account-password-field input[type="password"],
.cg-account-page .password-input.cg-account-password-field input[type="text"] {
    padding-right: 60px;
}

.woocommerce .cg-account-page .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle,
.cg-account-page .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    background-image: none;
    color: var(--cg-account-muted);
    font-size: 0;
    line-height: 0;
    text-indent: 0;
    box-shadow: none;
    overflow: hidden;
    appearance: none;
}

.woocommerce .cg-account-page .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle::before,
.woocommerce .cg-account-page .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle::after,
.cg-account-page .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle::before,
.cg-account-page .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle::after {
    content: none;
    display: none;
    width: 0;
    height: 0;
    font-size: 0;
}

.woocommerce .cg-account-page .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle svg,
.cg-account-page .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle svg {
    display: block;
    width: 21px;
    min-width: 21px;
    max-width: 21px;
    height: 21px;
    min-height: 21px;
    max-height: 21px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    pointer-events: none;
}
.cg-account-page input[data-cg-password]::-ms-reveal,
.cg-account-page input[data-cg-password]::-ms-clear,
.cg-account-auth input[data-cg-password]::-ms-reveal,
.cg-account-auth input[data-cg-password]::-ms-clear {
    display: none;
}
.cg-account-page .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle {
    overflow: visible;
}

.cg-account-page .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle svg,
.cg-account-page .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle svg * {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
/* Final password icon normalization: My account > account details only. */
.cg-account-page .edit-account .password-input.cg-account-password-field {
    position: relative;
    display: block;
    width: 100%;
    overflow: visible;
}

.cg-account-page .edit-account .password-input.cg-account-password-field input[data-cg-password] {
    width: 100%;
    padding-right: 58px;
}

.woocommerce .cg-account-page .edit-account .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle,
.cg-account-page .edit-account .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    background-image: none;
    color: var(--cg-account-muted);
    font-size: 0;
    line-height: 1;
    text-indent: 0;
    box-shadow: none;
    overflow: visible;
    clip-path: none;
    mask: none;
    -webkit-mask: none;
    appearance: none;
}

.woocommerce .cg-account-page .edit-account .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle::before,
.woocommerce .cg-account-page .edit-account .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle::after,
.cg-account-page .edit-account .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle::before,
.cg-account-page .edit-account .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle::after {
    content: none;
    display: none;
}

.woocommerce .cg-account-page .edit-account .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle svg,
.cg-account-page .edit-account .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle svg {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    height: 20px;
    min-height: 20px;
    max-height: 20px;
    margin: 0;
    overflow: visible;
    transform: none;
    fill: currentColor;
    stroke: none;
    pointer-events: none;
}

.cg-account-page .edit-account .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle svg * {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: none;
    vector-effect: none;
}

.cg-account-page .edit-account .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle:hover {
    background: transparent;
    color: var(--cg-account-brand-dark);
}

.cg-account-page .edit-account .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle:focus-visible {
    background: transparent;
    color: var(--cg-account-brand-dark);
    outline: 2px solid rgba(63, 89, 72, 0.55);
    outline-offset: 2px;
    box-shadow: none;
}
/* Account access redesign */
.cg-account-auth {
    width: min(100% - 32px, 1180px);
    padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 78px);
}

.cg-account-auth__intro {
    margin-bottom: clamp(22px, 3vw, 34px);
}

.cg-account-auth__intro p {
    margin: 0;
    letter-spacing: 0.08em;
}

.cg-account-auth__intro h1 {
    margin: 8px 0 0;
    font-size: clamp(36px, 4.4vw, 58px);
    line-height: 1.02;
}

.cg-account-auth__intro span {
    margin-top: 10px;
    max-width: 560px;
    font-size: clamp(15px, 1.35vw, 17px);
}

.cg-account-auth__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 32px);
    align-items: stretch;
}

.cg-account-auth__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: clamp(24px, 3.2vw, 34px);
}

.cg-account-auth__card h2 {
    margin-bottom: 4px;
    font-size: clamp(22px, 2.1vw, 28px);
}

.cg-account-auth__card .cg-account-form,
.cg-account-auth__card form {
    flex: 1 1 auto;
    align-content: start;
    gap: 18px;
    margin-top: 18px;
}

.cg-account-auth__card form > .form-row:last-of-type,
.cg-account-auth__card form > .woocommerce-form-row:last-of-type {
    margin-top: auto;
}

.cg-account-auth .form-row,
.cg-account-auth .woocommerce-form-row {
    float: none;
    clear: none;
    width: 100%;
    margin: 0;
}

.cg-account-auth label:not(.woocommerce-form-login__rememberme) {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 22px;
    margin: 0;
}

.cg-account-auth input[type="text"],
.cg-account-auth input[type="email"],
.cg-account-auth input[type="password"],
.cg-account-auth .password-input input[type="text"] {
    min-height: 52px;
    padding: 13px 14px;
    border-color: rgba(31, 33, 31, 0.16);
    font-family: inherit;
}

.cg-account-auth .password-input.cg-account-password-field {
    position: relative;
    display: block;
    width: 100%;
    overflow: visible;
}

.cg-account-auth .password-input.cg-account-password-field input[data-cg-password] {
    width: 100%;
    padding-right: 60px;
}

.woocommerce .cg-account-auth .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle,
.cg-account-auth .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--cg-account-muted);
    font-size: 0;
    line-height: 1;
    box-shadow: none;
    overflow: visible;
    appearance: none;
}

.woocommerce .cg-account-auth .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle::before,
.woocommerce .cg-account-auth .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle::after,
.cg-account-auth .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle::before,
.cg-account-auth .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle::after {
    content: none;
    display: none;
}

.cg-account-auth .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle svg {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
    pointer-events: none;
}

.cg-account-auth .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle:hover {
    background: transparent;
    color: var(--cg-account-brand-dark);
    box-shadow: none;
}

.cg-account-auth .password-input.cg-account-password-field .show-password-input.cg-account-password-toggle:focus-visible {
    background: transparent;
    color: var(--cg-account-brand-dark);
    outline: 2px solid rgba(63, 89, 72, 0.55);
    outline-offset: 2px;
    box-shadow: none;
}

.cg-account-auth__row {
    min-height: 44px;
    align-items: center;
}

.cg-account-auth__row .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    font-weight: 650;
}

.cg-account-auth__row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--cg-account-brand-dark);
}

.cg-account-auth .cg-account-button,
.cg-account-auth .button,
.cg-account-auth button[type="submit"] {
    width: 100%;
    min-height: 54px;
    border-radius: 7px;
}

.cg-account-auth .woocommerce-privacy-policy-text,
.cg-account-auth .woocommerce-privacy-policy-text p,
.cg-account-auth__card > p {
    color: var(--cg-account-muted);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .cg-account-auth {
        width: min(100% - 28px, 100%);
        padding-top: clamp(30px, 7vw, 44px);
    }

    .cg-account-auth__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cg-account-auth__card {
        min-height: auto;
    }
}

@media (max-width: 520px) {
    .cg-account-auth {
        width: min(100% - 24px, 100%);
        padding-top: 28px;
    }

    .cg-account-auth__intro h1 {
        font-size: clamp(32px, 11vw, 40px);
    }

    .cg-account-auth__card {
        padding: 20px;
    }

    .cg-account-auth__row {
        display: grid;
        justify-items: start;
        gap: 8px;
    }
}
