body.account,
body.customer-account-index {
    background: #f9fafb !important;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.account .page-main,
body.customer-account-index .page-main {
    padding-top: 32px !important;
    padding-bottom: 48px !important;
}

body.account .columns,
body.customer-account-index .columns {
    align-items: flex-start;
    gap: 32px;
}

body.account .page-title-wrapper,
body.customer-account-index .page-title-wrapper {
    margin-bottom: 24px !important;
}

body.account .page-title-wrapper .page-title,
body.customer-account-index .page-title-wrapper .page-title {
    color: #111827 !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
}

body.account .sidebar .block,
body.customer-account-index .sidebar .block {
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08) !important;
}

body.account .sidebar .block.account-nav,
body.account .sidebar .block-collapsible-nav,
body.customer-account-index .sidebar .block.account-nav,
body.customer-account-index .sidebar .block-collapsible-nav {
    padding: 10px !important;
}

body.account .sidebar .block.account-nav > .title strong,
body.account .sidebar .block-collapsible-nav > .title strong,
body.customer-account-index .sidebar .block.account-nav > .title strong,
body.customer-account-index .sidebar .block-collapsible-nav > .title strong {
    color: #6b7280 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

body.account .sidebar .nav.item a,
body.account .sidebar .nav.item > strong,
body.customer-account-index .sidebar .nav.item a,
body.customer-account-index .sidebar .nav.item > strong {
    min-height: 44px !important;
    padding: 11px 14px 11px 16px !important;
    border: 0 !important;
    border-left: 3px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.account .sidebar .nav.item a:hover,
body.account .sidebar .nav.item a:focus-visible,
body.customer-account-index .sidebar .nav.item a:hover,
body.customer-account-index .sidebar .nav.item a:focus-visible {
    border-left-color: #93c5fd !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

body.account .sidebar .nav.item.current > a,
body.account .sidebar .nav.item.current > strong,
body.customer-account-index .sidebar .nav.item.current > a,
body.customer-account-index .sidebar .nav.item.current > strong {
    border-left-color: #2563eb !important;
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

body.account .sidebar-additional,
body.customer-account-index .sidebar-additional {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.account .sidebar-additional .block,
body.customer-account-index .sidebar-additional .block {
    margin: 0 !important;
    padding: 16px !important;
}

body.account .sidebar-additional .block + .block,
body.customer-account-index .sidebar-additional .block + .block {
    margin-top: 0 !important;
}

body.account .sidebar-additional .block > .title,
body.customer-account-index .sidebar-additional .block > .title {
    margin: 0 0 10px !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid #eef2f7 !important;
}

body.account .sidebar-additional .block > .title strong,
body.customer-account-index .sidebar-additional .block > .title strong {
    display: block !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

body.account .sidebar-additional .block > .content,
body.customer-account-index .sidebar-additional .block > .content {
    padding: 0 !important;
}

body.account .sidebar-additional .block .empty,
body.account .sidebar-additional .block .subtitle,
body.customer-account-index .sidebar-additional .block .empty,
body.customer-account-index .sidebar-additional .block .subtitle {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

body.account .sidebar-additional .ttk-sidebar-card,
body.customer-account-index .sidebar-additional .ttk-sidebar-card {
    overflow: hidden !important;
}

body.account .sidebar-additional .ttk-sidebar-card__title,
body.customer-account-index .sidebar-additional .ttk-sidebar-card__title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 0 14px !important;
}

body.account .sidebar-additional .ttk-sidebar-empty,
body.customer-account-index .sidebar-additional .ttk-sidebar-empty {
    display: grid !important;
    justify-items: start !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%) !important;
    color: #64748b !important;
}

body.account .sidebar-additional .ttk-sidebar-empty__icon,
body.customer-account-index .sidebar-additional .ttk-sidebar-empty__icon {
    display: inline-grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

body.account .sidebar-additional .ttk-sidebar-empty strong,
body.customer-account-index .sidebar-additional .ttk-sidebar-empty strong {
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

body.account .sidebar-additional .ttk-sidebar-empty span:not(.ttk-sidebar-empty__icon),
body.customer-account-index .sidebar-additional .ttk-sidebar-empty span:not(.ttk-sidebar-empty__icon) {
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

body.account .sidebar-additional .ttk-sidebar-empty__link,
body.customer-account-index .sidebar-additional .ttk-sidebar-empty__link {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 34px !important;
    margin-top: 4px !important;
    padding: 0 12px !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #1d4ed8 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

body.account .sidebar-additional .ttk-sidebar-empty__link:hover,
body.customer-account-index .sidebar-additional .ttk-sidebar-empty__link:hover {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
    color: #1e40af !important;
}

body.account .sidebar-additional .ttk-sidebar-products,
body.customer-account-index .sidebar-additional .ttk-sidebar-products {
    display: grid !important;
    gap: 0 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    list-style: none !important;
}

body.account .sidebar-additional .ttk-sidebar-products .product-item,
body.customer-account-index .sidebar-additional .ttk-sidebar-products .product-item {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.account .sidebar-additional .ttk-sidebar-products .product-item-name,
body.customer-account-index .sidebar-additional .ttk-sidebar-products .product-item-name {
    display: block !important;
    max-width: 100% !important;
    margin: 0 0 3px !important;
    padding: 0 !important;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.account .sidebar-additional .ttk-sidebar-products .product-item-link,
body.customer-account-index .sidebar-additional .ttk-sidebar-products .product-item-link {
    display: block !important;
    max-width: 100% !important;
    color: #111827 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-decoration: none !important;
}

body.account .sidebar-additional .ttk-sidebar-products .product-item-link span,
body.customer-account-index .sidebar-additional .ttk-sidebar-products .product-item-link span {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.account .sidebar-additional .ttk-sidebar-remove,
body.customer-account-index .sidebar-additional .ttk-sidebar-remove {
    position: static !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    text-decoration: none !important;
}

body.account .sidebar-additional .ttk-sidebar-remove::before,
body.customer-account-index .sidebar-additional .ttk-sidebar-remove::before {
    content: "×" !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

body.account .sidebar-additional [data-role="compare-products-sidebar"] .ttk-sidebar-empty[hidden],
body.customer-account-index .sidebar-additional [data-role="compare-products-sidebar"] .ttk-sidebar-empty[hidden],
body.account .sidebar-additional [data-role="compare-products-sidebar"].ttk-has-native-compare .ttk-sidebar-empty,
body.customer-account-index .sidebar-additional [data-role="compare-products-sidebar"].ttk-has-native-compare .ttk-sidebar-empty,
body.account .sidebar-additional [data-role="compare-products-sidebar"].ttk-has-local-compare .ttk-sidebar-empty,
body.customer-account-index .sidebar-additional [data-role="compare-products-sidebar"].ttk-has-local-compare .ttk-sidebar-empty,
body.account .sidebar-additional [data-role="tekntek-wishlist-sidebar"].ttk-has-wishlist .ttk-sidebar-empty,
body.customer-account-index .sidebar-additional [data-role="tekntek-wishlist-sidebar"].ttk-has-wishlist .ttk-sidebar-empty {
    display: none !important;
}

body.account .sidebar-additional [data-role="compare-products-sidebar"].ttk-is-empty > .ttk-sidebar-empty,
body.customer-account-index .sidebar-additional [data-role="compare-products-sidebar"].ttk-is-empty > .ttk-sidebar-empty {
    display: grid !important;
}

body.account .sidebar-additional .ttk-sidebar-remove span,
body.customer-account-index .sidebar-additional .ttk-sidebar-remove span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

body.account .sidebar-additional .ttk-sidebar-actions .action,
body.customer-account-index .sidebar-additional .ttk-sidebar-actions .action {
    border-radius: 8px !important;
    font-weight: 800 !important;
}

body.account .sidebar-additional .block-wishlist .counter,
body.account .sidebar-additional .block-compare .counter,
body.customer-account-index .sidebar-additional .block-wishlist .counter,
body.customer-account-index .sidebar-additional .block-compare .counter {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

body.account .sidebar-additional::before,
body.account .sidebar-additional::after,
body.customer-account-index .sidebar-additional::before,
body.customer-account-index .sidebar-additional::after {
    display: none !important;
    content: none !important;
}

body.account .column.main .block,
body.customer-account-index .column.main .block {
    margin-bottom: 28px !important;
}

body.account .column.main .block .block-title,
body.customer-account-index .column.main .block .block-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
}

body.account .column.main .block .block-title strong,
body.customer-account-index .column.main .block .block-title strong {
    color: #111827 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body.account .column.main .block-dashboard-info .block-content,
body.account .column.main .block-dashboard-addresses .block-content,
body.customer-account-index .column.main .block-dashboard-info .block-content,
body.customer-account-index .column.main .block-dashboard-addresses .block-content {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

body.account .column.main .block-dashboard-info .block-content::before,
body.account .column.main .block-dashboard-info .block-content::after,
body.account .column.main .block-dashboard-addresses .block-content::before,
body.account .column.main .block-dashboard-addresses .block-content::after,
body.customer-account-index .column.main .block-dashboard-info .block-content::before,
body.customer-account-index .column.main .block-dashboard-info .block-content::after,
body.customer-account-index .column.main .block-dashboard-addresses .block-content::before,
body.customer-account-index .column.main .block-dashboard-addresses .block-content::after {
    display: none !important;
    content: none !important;
}

body.account .column.main .block .block-content > .box,
body.account .column.main .block-dashboard-addresses .box,
body.account .column.main .block-dashboard-info .box,
body.customer-account-index .column.main .block .block-content > .box,
body.customer-account-index .column.main .block-dashboard-addresses .box,
body.customer-account-index .column.main .block-dashboard-info .box {
    display: flex !important;
    min-height: 190px !important;
    flex-direction: column !important;
    width: auto !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08) !important;
    padding: 22px !important;
}

body.account .column.main .box .box-title,
body.customer-account-index .column.main .box .box-title {
    display: block !important;
    margin: 0 0 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

body.account .column.main .box .box-content,
body.account .column.main .box .box-content p,
body.account .column.main .box .box-content address,
body.customer-account-index .column.main .box .box-content,
body.customer-account-index .column.main .box .box-content p,
body.customer-account-index .column.main .box .box-content address {
    color: #4b5563 !important;
    font-style: normal !important;
    line-height: 1.75 !important;
}

body.account .column.main .block-title > .action,
body.account .column.main .box-actions .action,
body.customer-account-index .column.main .block-title > .action,
body.customer-account-index .column.main .box-actions .action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #1d4ed8 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

body.account .column.main .block-title > .action:hover,
body.account .column.main .box-actions .action:hover,
body.customer-account-index .column.main .block-title > .action:hover,
body.customer-account-index .column.main .box-actions .action:hover {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
    color: #1e40af !important;
}

body.customer-account-index .column.main .block-dashboard-orders {
    clear: both !important;
    margin: 28px 0 0 !important;
    padding: 24px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06) !important;
}

body.customer-account-index .column.main .block-dashboard-orders .block-title.order {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 14px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

body.customer-account-index .column.main .block-dashboard-orders .block-title.order strong {
    color: #111827 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}

body.customer-account-index .column.main .block-dashboard-orders .table-wrapper {
    margin: 0 !important;
}

@media (max-width: 1023px) {
    body.account .column.main .block-dashboard-info .block-content,
    body.account .column.main .block-dashboard-addresses .block-content,
    body.customer-account-index .column.main .block-dashboard-info .block-content,
    body.customer-account-index .column.main .block-dashboard-addresses .block-content {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    body.account .page-title-wrapper .page-title,
    body.customer-account-index .page-title-wrapper .page-title {
        font-size: 28px !important;
    }

    body.account .column.main .block .block-content > .box,
    body.account .column.main .block-dashboard-addresses .box,
    body.account .column.main .block-dashboard-info .box,
    body.customer-account-index .column.main .block .block-content > .box,
    body.customer-account-index .column.main .block-dashboard-addresses .box,
    body.customer-account-index .column.main .block-dashboard-info .box {
        min-height: 0 !important;
        padding: 18px !important;
    }
}

body.account .column.main,
body.customer-account-index .column.main {
    min-width: 0 !important;
}

body.account .column.main > form,
body.account .column.main .form-edit-account,
body.account .column.main .form-newsletter-manage,
body.account .column.main .form-address-edit,
body.account .column.main .rma-form-container,
body.customer-account-index .column.main > form {
    max-width: 820px !important;
}

body.account .column.main .form-edit-account,
body.account .column.main .form-newsletter-manage,
body.account .column.main .form-address-edit,
body.account .column.main .rma-form-container form {
    padding: 26px !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06) !important;
}

body.account .fieldset,
body.customer-account-index .fieldset {
    margin: 0 0 24px !important;
}

body.account .fieldset > .legend,
body.customer-account-index .fieldset > .legend {
    margin: 0 0 18px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid #eef2f7 !important;
}

body.account .fieldset > .legend span,
body.customer-account-index .fieldset > .legend span {
    color: #1f2937 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body.account .fieldset > br,
body.customer-account-index .fieldset > br {
    display: none !important;
}

body.account .field,
body.customer-account-index .field {
    margin-bottom: 18px !important;
}

body.account .field .label,
body.customer-account-index .field .label {
    margin-bottom: 7px !important;
    color: #374151 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

body.account input.input-text,
body.account input[type="text"],
body.account input[type="email"],
body.account input[type="password"],
body.account input[type="tel"],
body.account select,
body.account textarea,
body.customer-account-index input.input-text,
body.customer-account-index input[type="text"],
body.customer-account-index input[type="email"],
body.customer-account-index input[type="password"],
body.customer-account-index input[type="tel"],
body.customer-account-index select,
body.customer-account-index textarea {
    width: 100% !important;
    min-height: 46px !important;
    padding: 10px 13px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}

body.account textarea,
body.customer-account-index textarea {
    min-height: 108px !important;
    resize: vertical !important;
}

body.account input:focus,
body.account select:focus,
body.account textarea:focus,
body.customer-account-index input:focus,
body.customer-account-index select:focus,
body.customer-account-index textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important;
    outline: none !important;
}

body.account .field.choice,
body.customer-account-index .field.choice {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 44px !important;
    margin: 12px 0 !important;
    padding: 12px 14px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
}

/* Do not render empty "show password" choice as a card block */
body.account .field.choice[data-bind*="showPassword"],
body.customer-account-index .field.choice[data-bind*="showPassword"] {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    display: block !important;
}

/* Hide Magento password strength helper on account edit by request */
body.customer-account-edit #password-strength-meter-container {
    display: none !important;
}

body.account .field.choice input[type="checkbox"],
body.customer-account-index .field.choice input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    accent-color: #2563eb !important;
    flex: 0 0 20px !important;
}

body.account .field.choice .label,
body.customer-account-index .field.choice .label {
    margin: 0 !important;
    color: #111827 !important;
    cursor: pointer !important;
}

body.account .actions-toolbar,
body.customer-account-index .actions-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 18px !important;
}

body.account .actions-toolbar::before,
body.account .actions-toolbar::after,
body.customer-account-index .actions-toolbar::before,
body.customer-account-index .actions-toolbar::after {
    display: none !important;
    content: none !important;
}

body.account .actions-toolbar .primary,
body.account .actions-toolbar .secondary,
body.customer-account-index .actions-toolbar .primary,
body.customer-account-index .actions-toolbar .secondary {
    float: none !important;
    margin: 0 !important;
}

body.account .action.primary,
body.account button.primary,
body.customer-account-index .action.primary,
body.customer-account-index button.primary {
    min-height: 42px !important;
    padding: 0 20px !important;
    border: 1px solid #1d4ed8 !important;
    border-radius: 999px !important;
    background: #1d4ed8 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(29, 78, 216, .16) !important;
}

body.account .action.primary:hover,
body.account button.primary:hover,
body.customer-account-index .action.primary:hover,
body.customer-account-index button.primary:hover {
    border-color: #153fba !important;
    background: #153fba !important;
}

body.account .actions-toolbar .secondary .action,
body.customer-account-index .actions-toolbar .secondary .action {
    color: #2563eb !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* Edit Address page: remove noisy extra sidebar block and tighten form spacing */
body.customer-address-form .sidebar-additional {
    display: none !important;
}

body.customer-address-form .columns,
body.customer-address-index .columns {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: stretch !important;
}

body.customer-address-form .column.main,
body.customer-address-index .column.main {
    grid-column: 2 !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    order: initial !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.customer-address-form .column.main .form-address-edit {
    width: 100% !important;
    max-width: 980px !important;
}

body.customer-address-form .sidebar-main,
body.customer-address-index .sidebar-main {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 280px !important;
    float: none !important;
    order: initial !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.customer-address-form .sidebar-main .block,
body.customer-address-index .sidebar-main .block {
    height: 100% !important;
}

/* Keep sidebar and content in one row on address pages */
body.customer-address-form .sidebar-main,
body.customer-address-form .column.main,
body.customer-address-index .sidebar-main,
body.customer-address-index .column.main {
    margin-top: 0 !important;
}

body.customer-address-form .column.main .form-address-edit .fieldset {
    margin-bottom: 16px !important;
}

body.customer-address-form .column.main .form-address-edit .actions-toolbar {
    margin-top: 8px !important;
}

/* Ensure success/error messages are visible on customer address pages */
body.customer-address-form .page.messages,
body.customer-address-index .page.messages {
    display: block !important;
    margin: 0 0 16px !important;
    clear: both !important;
}

@media (max-width: 1024px) {
    body.customer-address-form .columns,
    body.customer-address-index .columns {
        display: block !important;
    }

    body.customer-address-form .column.main,
    body.customer-address-form .sidebar-main,
    body.customer-address-index .column.main,
    body.customer-address-index .sidebar-main {
        width: 100% !important;
        min-width: 0 !important;
        order: initial !important;
    }
}

/* ==========================================================================
   Customer > Add New Address layout fix
   Keep sidebar + content in one row (25% / 75%) and remove form shrink
   ========================================================================== */
body.customer-address-form .page-main .columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 24px !important;
}

body.customer-address-form .page-main .columns .sidebar-main {
    order: 1 !important;
    flex: 0 0 25% !important;
    width: 25% !important;
    max-width: 25% !important;
    min-width: 260px !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

body.customer-address-form .page-main .columns .column.main {
    order: 2 !important;
    flex: 1 1 75% !important;
    width: 75% !important;
    max-width: 75% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

body.customer-address-form .page-main .columns .column.main > form,
body.customer-address-form .page-main .columns .column.main .form-address-edit {
    width: 100% !important;
    max-width: none !important;
}

@media (max-width: 1024px) {
    body.customer-address-form .page-main .columns {
        display: block !important;
    }

    body.customer-address-form .page-main .columns .sidebar-main,
    body.customer-address-form .page-main .columns .column.main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

body.account .ttk-account-list {
    display: grid !important;
    gap: 14px !important;
}

body.account .ttk-account-row-card {
    padding: 18px !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06) !important;
}

body.account .ttk-account-row-card__main {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #eef2f7 !important;
}

body.account .ttk-account-row-card__eyebrow,
body.account .ttk-account-row-card__meta span {
    display: block !important;
    margin-bottom: 4px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

body.account .ttk-account-row-card__title {
    display: block !important;
    color: #111827 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
}

body.account .ttk-account-row-card__meta {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    padding: 14px 0 !important;
}

body.account .ttk-account-row-card__meta strong {
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
}

body.account .ttk-account-row-card__extra td,
body.account .ttk-account-row-card__extra th {
    display: inline !important;
    padding: 0 !important;
    border: 0 !important;
}

body.account .ttk-account-row-card__actions {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    padding-top: 2px !important;
}

body.account .ttk-action-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #1d4ed8 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

body.account .ttk-action-chip--primary {
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
}

body.account .ttk-action-chip--danger {
    border-color: #fecaca !important;
    background: #fff1f2 !important;
    color: #b91c1c !important;
}

body.account .ttk-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #e0f2fe !important;
    color: #075985 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

body.account .ttk-status-badge--pending,
body.account .ttk-status-badge--processing {
    background: #fef3c7 !important;
    color: #92400e !important;
}

body.account .ttk-status-badge--complete,
body.account .ttk-status-badge--closed,
body.account .ttk-status-badge--approved {
    background: #dcfce7 !important;
    color: #166534 !important;
}

body.account .ttk-status-badge--rejected,
body.account .ttk-status-badge--canceled,
body.account .ttk-status-badge--cancelled {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

body.account .ttk-account-empty {
    display: grid !important;
    justify-items: center !important;
    gap: 12px !important;
    padding: 42px 24px !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06) !important;
    text-align: center !important;
}

body.account .ttk-account-empty--compact {
    padding: 28px 20px !important;
}

body.account .ttk-account-empty__illustration {
    display: grid !important;
    place-items: center !important;
    width: 96px !important;
    height: 96px !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-size: 42px !important;
    font-weight: 900 !important;
}

body.account .ttk-account-empty h2 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

body.account .ttk-account-empty p {
    max-width: 520px !important;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

body.account .ttk-account-empty__cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    margin-top: 4px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: #1d4ed8 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

body.account .ttk-address-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

body.account .block-addresses-default,
body.account .ttk-address-list-block {
    margin: 0 0 28px !important;
}

body.account .block-addresses-default .block-title,
body.account .ttk-address-list-block .block-title {
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
}

body.account .block-addresses-default .block-title strong,
body.account .ttk-address-list-block .block-title strong {
    color: #111827 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
}

body.account .ttk-address-default-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: stretch !important;
    grid-auto-flow: column !important;
    width: 100% !important;
    max-width: none !important;
}

body.account .ttk-address-default-grid > .ttk-address-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

body.account .ttk-address-default-grid > .ttk-address-card:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.account .ttk-address-default-grid > .ttk-address-card:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

body.account .ttk-address-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 18px !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06) !important;
    min-width: 0 !important;
}

body.account .ttk-address-card--default {
    min-height: 100% !important;
}

body.account .ttk-address-card__head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #eef2f7 !important;
}

body.account .ttk-address-card__head strong {
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
}

body.account .ttk-address-card__head span {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body.account .ttk-address-card__body {
    flex: 1 !important;
    min-width: 0 !important;
    color: #4b5563 !important;
    font-size: 14px !important;
    font-style: normal !important;
    line-height: 1.8 !important;
    overflow-wrap: anywhere !important;
}

body.account .ttk-address-card__body a {
    color: #1d4ed8 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.account .ttk-address-card__actions {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* Address Book additional entries: keep Magento logic, render as cards */
body.customer-address-index .block-addresses-list {
    margin: 0 0 28px !important;
}

body.customer-address-index .block-addresses-list .block-title {
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
}

body.customer-address-index .block-addresses-list .block-title strong {
    color: #111827 !important;
    font-size: 40px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

body.customer-address-index .table-wrapper.additional-addresses {
    overflow: visible !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.customer-address-index #additional-addresses-table {
    width: 100% !important;
    border: 0 !important;
    margin: 0 !important;
}

body.customer-address-index #additional-addresses-table .table-caption,
body.customer-address-index #additional-addresses-table thead {
    display: none !important;
}

body.customer-address-index #additional-addresses-table tbody {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

body.customer-address-index #additional-addresses-table tbody tr {
    display: flex !important;
    flex-wrap: wrap !important;
    align-content: flex-start !important;
    gap: 10px 14px !important;
    padding: 18px !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06) !important;
}

body.customer-address-index #additional-addresses-table tbody td {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #4b5563 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

body.customer-address-index #additional-addresses-table tbody td:before {
    display: none !important;
}

body.customer-address-index #additional-addresses-table tbody td.col.firstname,
body.customer-address-index #additional-addresses-table tbody td.col.lastname {
    color: #111827 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

body.customer-address-index #additional-addresses-table tbody td.col.streetaddress,
body.customer-address-index #additional-addresses-table tbody td.col.city,
body.customer-address-index #additional-addresses-table tbody td.col.country,
body.customer-address-index #additional-addresses-table tbody td.col.state,
body.customer-address-index #additional-addresses-table tbody td.col.zip,
body.customer-address-index #additional-addresses-table tbody td.col.phone {
    width: 100% !important;
}

body.customer-address-index #additional-addresses-table tbody td.col.actions {
    width: 100% !important;
    margin-top: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

body.customer-address-index #additional-addresses-table .col.actions .action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border: 1px solid #cdd8ee !important;
    border-radius: 999px !important;
    color: #1d4ed8 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.customer-address-index #additional-addresses-table .col.actions .action.delete {
    border-color: #fecaca !important;
    color: #dc2626 !important;
    background: #fff7f7 !important;
}

body.customer-address-index .block-addresses-list .actions-toolbar {
    margin-top: 14px !important;
    clear: both !important;
    position: relative !important;
    z-index: 40 !important;
    pointer-events: auto !important;
}

body.customer-address-index .block-addresses-list .actions-toolbar .primary {
    float: none !important;
    position: relative !important;
    z-index: 41 !important;
    pointer-events: auto !important;
}

body.customer-address-index .block-addresses-list .actions-toolbar .primary .action.add {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0 20px !important;
    border-radius: 999px !important;
    position: relative !important;
    z-index: 42 !important;
    pointer-events: auto !important;
}

body.customer-address-index .block-addresses-list .actions-toolbar::before,
body.customer-address-index .block-addresses-list .actions-toolbar::after,
body.customer-address-index .block-addresses-list .actions-toolbar .primary::before,
body.customer-address-index .block-addresses-list .actions-toolbar .primary::after {
    content: none !important;
    display: none !important;
}

body.customer-address-index .block-addresses-default .actions-toolbar,
body.customer-address-index .block-addresses-default .actions-toolbar .primary,
body.customer-address-index .block-addresses-default .actions-toolbar .primary .action.add,
body.customer-address-index .column.main .actions-toolbar,
body.customer-address-index .column.main .actions-toolbar .primary,
body.customer-address-index .column.main .actions-toolbar .primary .action.add {
    position: relative !important;
    z-index: 50 !important;
    pointer-events: auto !important;
}

body.customer-address-index .block-addresses-default .actions-toolbar::before,
body.customer-address-index .block-addresses-default .actions-toolbar::after,
body.customer-address-index .block-addresses-default .actions-toolbar .primary::before,
body.customer-address-index .block-addresses-default .actions-toolbar .primary::after {
    content: none !important;
    display: none !important;
}

body.customer-address-index .column.main,
body.customer-address-index .block-addresses-list,
body.customer-address-index .block-addresses-default {
    position: relative !important;
    z-index: 60 !important;
}

body.customer-address-index .column.main::before,
body.customer-address-index .column.main::after,
body.customer-address-index .block-addresses-list::before,
body.customer-address-index .block-addresses-list::after,
body.customer-address-index .block-addresses-default::before,
body.customer-address-index .block-addresses-default::after {
    content: none !important;
    display: none !important;
}

body.customer-address-index a.action.add,
body.customer-address-index .action.add,
body.customer-address-index .actions-toolbar .action.add {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 61 !important;
}

body.customer-address-index .customer-addresses-toolbar.toolbar.bottom {
    display: none !important;
}

@media (max-width: 900px) {
    body.customer-address-index #additional-addresses-table tbody {
        grid-template-columns: 1fr !important;
    }
}

/* Default Addresses (Magento native markup) - modern card style */
body.customer-address-index .block-addresses-default {
    margin: 0 0 28px !important;
}

body.customer-address-index .block-addresses-default .block-title {
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
}

body.customer-address-index .block-addresses-default .block-title strong {
    color: #111827 !important;
    font-size: 40px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

body.customer-address-index .block-addresses-default .block-content {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 16px !important;
}

body.customer-address-index .block-addresses-default .box {
    flex: 1 1 0 !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06) !important;
}

body.customer-address-index .block-addresses-default .box-address-billing,
body.customer-address-index .block-addresses-default .box-address-shipping,
body.customer-address-index .block-addresses-default .box-billing-address,
body.customer-address-index .block-addresses-default .box-shipping-address {
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

body.customer-address-index .block-addresses-default .box .box-title {
    margin: 0 !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid #eef2f7 !important;
}

body.customer-address-index .block-addresses-default .box .box-title span {
    color: #111827 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

body.customer-address-index .block-addresses-default .box .box-content,
body.customer-address-index .block-addresses-default .box .box-content address,
body.customer-address-index .block-addresses-default .box .box-content p {
    margin: 0 !important;
    color: #4b5563 !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
    font-style: normal !important;
}

body.customer-address-index .block-addresses-default .box .box-actions {
    margin-top: auto !important;
}

body.customer-address-index .block-addresses-default .box .box-actions .action.edit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border: 1px solid #cdd8ee !important;
    border-radius: 999px !important;
    color: #1d4ed8 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

@media (max-width: 900px) {
    body.customer-address-index .block-addresses-default .block-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    body.account .ttk-account-row-card__meta,
    body.account .ttk-address-grid,
    body.account .ttk-address-default-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    body.account .column.main .form-edit-account,
    body.account .column.main .form-newsletter-manage,
    body.account .column.main .form-address-edit,
    body.account .column.main .rma-form-container form {
        padding: 18px !important;
        border-radius: 16px !important;
    }

    body.account .ttk-account-row-card__main {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}

/* My Orders legacy table: restyle to match account modern system */
body.sales-order-history .column.main > .table-wrapper.orders-history {
    border: 1px solid #f1f5f9 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06) !important;
    padding: 6px 16px 10px !important;
    overflow: hidden !important;
}

body.sales-order-history .table-wrapper.orders-history .table-order-items {
    margin: 0 !important;
}

body.sales-order-history .table-wrapper.orders-history .table-order-items thead th {
    border-bottom: 1px solid #eef2f7 !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    padding: 14px 10px !important;
}

body.sales-order-history .table-wrapper.orders-history .table-order-items tbody td {
    border-top: 1px solid #f1f5f9 !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 14px 10px !important;
    vertical-align: middle !important;
}

body.sales-order-history .table-wrapper.orders-history .table-order-items tbody tr:first-child td {
    border-top: 0 !important;
}

body.sales-order-history .table-wrapper.orders-history .table-order-items .col.status {
    color: #92400e !important;
    font-weight: 800 !important;
}

/* FINAL OVERRIDE: fix broken layout on /customer/address/new */
body.customer-address-form .page-main .columns {
    display: grid !important;
    grid-template-columns: minmax(240px, 25%) minmax(0, 75%) !important;
    gap: 24px !important;
    align-items: start !important;
}

body.customer-address-form .page-main .columns .sidebar-main {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

body.customer-address-form .page-main .columns .column.main {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

body.customer-address-form .page-main .columns .column.main > form.form-address-edit {
    width: 100% !important;
    max-width: none !important;
}

@media (max-width: 1024px) {
    body.customer-address-form .page-main .columns {
        grid-template-columns: 1fr !important;
    }

    body.customer-address-form .page-main .columns .sidebar-main,
    body.customer-address-form .page-main .columns .column.main {
        grid-column: 1 !important;
    }
}

    /* Ensure Address Book index uses the same 2-column layout with sticky sidebar */
    body.customer-address-index .page-main .columns {
        display: grid !important;
        grid-template-columns: 260px minmax(0, 1fr) !important;
        gap: 24px !important;
        align-items: start !important;
    }

    body.customer-address-index .page-main .columns .sidebar-main {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        float: none !important;
        clear: none !important;
        margin: 0 !important;
        position: static !important;
        top: auto !important;
        align-self: start !important;
    }

    /* Make sidebar sticky for all customer-account pages and ensure it stays within layout */
    body.customer-account .page-main .columns .sidebar-main,
    body.customer-account .page-main .columns .sidebar-main .block {
        box-sizing: border-box !important;
    }

    body.customer-account .page-main .columns .sidebar-main {
        position: static !important;
        top: auto !important;
        align-self: start !important;
        z-index: auto !important;
    }

    /* Ensure the wishlist block in the sidebar doesn't overflow and items layout correctly */
    .sidebar .block.block-wishlist,
    .sidebar .block.wishlist {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 12px !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 1px 4px rgba(15,23,42,0.04) !important;
    }

    .sidebar .block-wishlist .product-item,
    .sidebar .block .product-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 6px 0 !important;
    }

    .sidebar .block-wishlist .product-item .product-item-photo img,
    .sidebar .block .product-item-photo img {
        width: 56px !important;
        height: 56px !important;
        object-fit: cover !important;
        border-radius: 6px !important;
    }

    .sidebar .block-wishlist .product-item .product-item-details {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .sidebar .block-wishlist .product-item .product-item-details .product-item-name {
        display: block !important;
        font-size: 13px !important;
        color: #111827 !important;
        line-height: 1.2 !important;
    }

    .sidebar .block-wishlist .block-title,
    .sidebar .block-wishlist .block-title + .block-content {
        margin: 0 0 8px !important;
    }

    @media (max-width: 640px) {
        body.customer-account .page-main .columns .sidebar-main {
            position: relative !important;
            top: auto !important;
            z-index: auto !important;
        }
    }

    body.customer-address-index .page-main .columns .column.main {
        grid-column: 2 !important;
        width: 100% !important;
    }

    /* Default addresses: two cards side-by-side */
    .ttk-address-default-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    /* Additional addresses: responsive card grid */
    .ttk-address-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
        align-items: start !important;
    }

    @media (max-width: 1024px) {
        .ttk-address-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        }
    }

    @media (max-width: 640px) {
        body.customer-address-index .page-main .columns {
            grid-template-columns: 1fr !important;
        }
        .ttk-address-default-grid,
        .ttk-address-grid {
            grid-template-columns: 1fr !important;
        }
        body.customer-address-index .page-main .columns .sidebar-main {
            position: relative !important;
            top: auto !important;
        }
    }

    /* Card styling for equality and spacing */
    .ttk-address-card {
        display: flex !important;
        flex-direction: column !important;
        min-height: 180px !important;
        padding: 18px !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: 0 1px 6px rgba(15,23,42,0.06) !important;
        gap: 12px !important;
    }

    .ttk-address-card__title {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #111827 !important;
        margin: 0 !important;
    }

    .ttk-address-card__body {
        color: #374151 !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .ttk-address-card__actions {
        margin-top: auto !important;
        display: flex !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    .ttk-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 44px !important;
        padding: 0 14px !important;
        border-radius: 10px !important;
        font-weight: 700 !important;
        font-size: 14px !important;
    }

    .ttk-btn--primary {
        background: #1d4ed8 !important;
        color: #fff !important;
        border: 0 !important;
    }

    .ttk-btn--danger,
    .ttk-btn--danger.action.delete {
        background: #fff7f7 !important;
        color: #dc2626 !important;
        border: 1px solid #fecaca !important;
    }

    /* Ensure wishlist/sidebar block has full width and image sizes */
    .sidebar .block.wishlist,
    .sidebar .block.block-wishlist {
        width: 100% !important;
    }

    .sidebar .block-wishlist .product-item-photo img,
    .sidebar .block .product-item-photo img {
        width: 64px !important;
        height: 64px !important;
        object-fit: cover !important;
    }


body.sales-order-history .table-wrapper.orders-history .table-order-items .action {
    color: #1d4ed8 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

body.sales-order-history .table-wrapper.orders-history .table-order-items .action:hover,
body.sales-order-history .table-wrapper.orders-history .table-order-items .action:focus-visible {
    text-decoration: underline !important;
}

body.sales-order-history .order-products-toolbar.toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-top: 14px !important;
    padding: 12px 16px !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04) !important;
}

body.sales-order-history .order-products-toolbar .pages-items .item > a,
body.sales-order-history .order-products-toolbar .pages-items .item > strong {
    border-radius: 999px !important;
    min-width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #dbe4f0 !important;
    background: #ffffff !important;
}

body.sales-order-history .order-products-toolbar .pages-items .item.current > strong {
    border-color: #1d4ed8 !important;
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Wishlist compact mode across customer account pages */
body.account .sidebar-additional .block-wishlist,
body.customer-account .sidebar-additional .block-wishlist {
    overflow: hidden !important;
}

body.account .sidebar-additional .block-wishlist .product-item,
body.customer-account .sidebar-additional .block-wishlist .product-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 0 !important;
    overflow: hidden !important;
}

body.account .sidebar-additional .block-wishlist .product-item-photo img,
body.account .sidebar-additional .block-wishlist .product-image-container,
body.account .sidebar-additional .block-wishlist .product-image-wrapper,
body.customer-account .sidebar-additional .block-wishlist .product-item-photo img,
body.customer-account .sidebar-additional .block-wishlist .product-image-container,
body.customer-account .sidebar-additional .block-wishlist .product-image-wrapper {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
}

body.account .sidebar-additional .block-wishlist .product-item-details,
body.customer-account .sidebar-additional .block-wishlist .product-item-details {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

body.account .sidebar-additional .block-wishlist .product-item-name,
body.account .sidebar-additional .block-wishlist .product-item-link,
body.account .sidebar-additional .block-wishlist .price,
body.customer-account .sidebar-additional .block-wishlist .product-item-name,
body.customer-account .sidebar-additional .block-wishlist .product-item-link,
body.customer-account .sidebar-additional .block-wishlist .price {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.account .sidebar-additional .block-wishlist .product-item-actions,
body.customer-account .sidebar-additional .block-wishlist .product-item-actions {
    margin-left: auto !important;
    flex: 0 0 auto !important;
}

/* Keep account sidebar in normal document flow on desktop */
@media (min-width: 1025px) {
    body.account .column.main + .sidebar.sidebar-main,
    body.account .sidebar.sidebar-main,
    body.customer-account-index .sidebar.sidebar-main {
        position: static !important;
        top: auto !important;
        align-self: flex-start !important;
    }
}

@media (max-width: 768px) {
    body.sales-order-history .order-products-toolbar.toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}
