/* Reusable Boxymi Elementor My Account components. */
.boxymi-commerce--account .boxymi-account-intro {
 max-width:720px;
 margin:0 0 clamp(36px,4.167vw,56px);
}

.boxymi-commerce--account .boxymi-commerce-eyebrow {
 margin:0 0 12px;
 color:var(--wp--preset--color--primary);
 font-size:12px;
 font-weight:700;
 line-height:16px;
 letter-spacing:.08em;
 text-transform:uppercase;
}

.boxymi-commerce--account .boxymi-commerce-title { margin-bottom:16px; }

.boxymi-commerce--account .boxymi-commerce-lead {
 max-width:620px;
 margin:0;
 color:var(--wp--preset--color--body);
 font-size:17px;
 line-height:27px;
}

.boxymi-commerce--account .boxymi-account-widget,
.boxymi-commerce--account .boxymi-account-widget > .elementor-widget-container,
.boxymi-commerce--account .boxymi-account-widget .woocommerce {
 width:100%;
 max-width:none;
 min-width:0;
}

.boxymi-commerce--account .boxymi-account-widget {
 --general-text-color:var(--wp--preset--color--body);
 --sections-background-color:var(--wp--preset--color--white);
 --sections-border-color:var(--wp--preset--color--border);
 --sections-border-radius:20px;
 --tabs-normal-color:var(--wp--preset--color--body);
 --tabs-active-color:var(--wp--preset--color--white);
 --tabs-hover-color:var(--wp--preset--color--heading);
 --forms-fields-normal-color:var(--wp--preset--color--body);
 --forms-fields-normal-background-color:var(--wp--preset--color--white);
 --forms-fields-focus-color:var(--wp--preset--color--body);
 --forms-fields-focus-background-color:var(--wp--preset--color--white);
 --forms-buttons-normal-text-color:var(--wp--preset--color--white);
 --forms-buttons-hover-text-color:var(--wp--preset--color--white);
 --tables-title-color:var(--wp--preset--color--heading);
 --tables-items-color:var(--wp--preset--color--body);
 --tables-links-normal-color:var(--wp--preset--color--primary);
 --tables-links-hover-color:var(--wp--preset--color--heading);
 --tables-buttons-border-color:var(--wp--preset--color--primary);
 --tables-button-normal-text-color:var(--wp--preset--color--primary);
}

.logged-in.boxymi-commerce--account .boxymi-account-widget .woocommerce {
 display:grid;
 grid-template-columns:260px minmax(0,1fr);
 gap:32px;
 align-items:start;
}

.logged-in.boxymi-commerce--account .boxymi-account-widget .e-my-account-tab > .woocommerce::before,
.logged-in.boxymi-commerce--account .boxymi-account-widget .e-my-account-tab > .woocommerce::after {
 display:none;
 content:none;
}

.boxymi-commerce--account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation {
 position:sticky;
 top:112px;
 float:none;
 width:260px;
 margin:0;
 padding:10px;
 border:1px solid var(--wp--preset--color--border);
 border-radius:18px;
 background:var(--wp--preset--color--soft);
}

.boxymi-commerce--account .woocommerce-MyAccount-navigation ul {
 display:flex;
 flex-direction:column;
 gap:4px;
 margin:0;
 padding:0;
 list-style:none;
}

.boxymi-commerce--account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation li {
 width:100%;
 margin:0;
}

.boxymi-commerce--account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation a {
 display:flex;
 align-items:center;
 min-height:46px;
 padding:11px 14px;
 border-radius:10px;
 color:var(--wp--preset--color--body);
 font-size:14px;
 font-weight:600;
 line-height:22px;
 text-decoration:none;
 transition:background-color .18s ease,color .18s ease;
}

.boxymi-commerce--account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation a:hover {
 background:var(--wp--preset--color--white);
 color:var(--wp--preset--color--heading);
}

.boxymi-commerce--account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation .is-active a {
 background:var(--wp--preset--color--primary);
 color:var(--wp--preset--color--white);
}

.boxymi-commerce--account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-MyAccount-content {
 float:none;
 width:100%;
 min-width:0;
 min-height:340px;
 padding:clamp(24px,2.778vw,36px);
 border:1px solid var(--wp--preset--color--border);
 border-radius:20px;
 background:var(--wp--preset--color--white);
 color:var(--wp--preset--color--body);
}

.boxymi-commerce--account .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .woocommerce-MyAccount-content-wrapper {
 padding:0;
 border:0;
 background:transparent;
}

.boxymi-commerce--account .woocommerce-MyAccount-content > :first-child { margin-top:0; }
.boxymi-commerce--account .woocommerce-MyAccount-content > :last-child { margin-bottom:0; }

.boxymi-commerce--account .woocommerce-MyAccount-content :where(h2,h3) {
 margin:0 0 18px;
 color:var(--wp--preset--color--heading);
 font-size:clamp(22px,2.083vw,28px);
 font-weight:650;
 line-height:1.25;
}

.boxymi-commerce--account .woocommerce-MyAccount-content p {
 color:var(--wp--preset--color--body);
 font-size:15px;
 line-height:24px;
}

.boxymi-commerce--account .woocommerce-MyAccount-content a:not(.button) {
 color:var(--wp--preset--color--primary);
 font-weight:500;
 text-underline-offset:3px;
}

.boxymi-commerce--account .woocommerce-notices-wrapper:empty { display:none; }

.boxymi-commerce--account .woocommerce-error,
.boxymi-commerce--account .woocommerce-info,
.boxymi-commerce--account .woocommerce-message {
 margin:0 0 24px;
 padding:16px 18px 16px 48px;
 border:1px solid var(--wp--preset--color--border);
 border-top:1px solid var(--wp--preset--color--border);
 border-radius:12px;
 background:var(--wp--preset--color--soft);
 color:var(--wp--preset--color--body);
 font-size:14px;
 line-height:21px;
}

.boxymi-commerce--account .woocommerce-info::before,
.boxymi-commerce--account .woocommerce-message::before {
 top:16px;
 left:18px;
 color:var(--wp--preset--color--primary);
}

.boxymi-commerce--account .woocommerce-error {
 border-color:color-mix(in srgb,#c62828 28%,var(--wp--preset--color--border));
 background:color-mix(in srgb,#c62828 6%,white);
}

.boxymi-commerce--account .woocommerce-error::before { color:#c62828; }

.boxymi-commerce--account .woocommerce-form-login,
.boxymi-commerce--account .woocommerce-form-register {
 box-sizing:border-box;
 max-width:620px;
 margin:0;
 padding:clamp(24px,3.333vw,40px);
 border:1px solid var(--wp--preset--color--border);
 border-radius:20px;
 background:var(--wp--preset--color--soft);
}

/* Guest authentication is a single task, so keep it on one balanced axis
   instead of leaving a false second column across the desktop canvas. */
.boxymi-commerce--account:not(.logged-in) .boxymi-account-page > .boxymi-commerce-eyebrow,
.boxymi-commerce--account:not(.logged-in) .boxymi-account-page > .boxymi-commerce-title,
.boxymi-commerce--account:not(.logged-in) .boxymi-account-page > .boxymi-commerce-lead,
.boxymi-commerce--account:not(.logged-in) .boxymi-account-widget .woocommerce > h2,
.boxymi-commerce--account:not(.logged-in) .woocommerce-form-login,
.boxymi-commerce--account:not(.logged-in) .woocommerce-form-register {
 width:min(100%,620px);
 margin-inline:auto;
}

.boxymi-commerce--account:not(.logged-in) .boxymi-account-page > .boxymi-commerce-eyebrow,
.boxymi-commerce--account:not(.logged-in) .boxymi-account-page > .boxymi-commerce-title,
.boxymi-commerce--account:not(.logged-in) .boxymi-account-page > .boxymi-commerce-lead,
.boxymi-commerce--account:not(.logged-in) .boxymi-account-widget .woocommerce > h2 {
 text-align:center;
}

body.boxymi-commerce--account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce > h2 {
 margin-top:0;
 margin-bottom:20px;
 color:var(--wp--preset--color--hero-heading);
 font-size:28px;
 font-weight:650;
 line-height:36px;
 letter-spacing:-.02em;
}

.boxymi-commerce--account .woocommerce-form-login > :first-child,
.boxymi-commerce--account .woocommerce-form-register > :first-child { margin-top:0; }

.boxymi-commerce--account .woocommerce-form-row { margin:0 0 16px; }

.boxymi-commerce--account .woocommerce-form-row label {
 display:block;
 margin:0 0 7px;
 color:var(--wp--preset--color--heading);
 font-size:14px;
 font-weight:600;
 line-height:21px;
}

.boxymi-commerce--account .woocommerce-form-row .required { color:#b42318; }

.boxymi-commerce--account :where(input.input-text,select,textarea) {
 box-sizing:border-box;
 width:100%;
 min-height:52px;
 padding:13px 15px;
 border:1px solid var(--wp--preset--color--border);
 border-radius:12px;
 background:var(--wp--preset--color--white);
 color:var(--wp--preset--color--body);
 font-size:15px;
 line-height:22px;
 box-shadow:none;
}

.boxymi-commerce--account textarea { min-height:112px; }

.boxymi-commerce--account :where(input.input-text,select,textarea):focus {
 border-color:var(--wp--preset--color--primary);
 outline:3px solid color-mix(in srgb,var(--wp--preset--color--primary) 18%,transparent);
 outline-offset:0;
}

.boxymi-commerce--account .password-input { display:block; }

.boxymi-commerce--account .show-password-input {
 top:50%;
 right:14px;
 transform:translateY(-50%);
}

.boxymi-commerce--account .woocommerce-form-login__rememberme {
 display:flex;
 align-items:center;
 gap:8px;
 margin:4px 0 18px;
 color:var(--wp--preset--color--body);
 font-size:14px;
 line-height:21px;
}

.boxymi-commerce--account .woocommerce-form-login__rememberme input {
 width:18px;
 height:18px;
 margin:0;
 accent-color:var(--wp--preset--color--primary);
}

.boxymi-commerce--account :where(.button,button.button,input.button) {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-height:48px;
 padding:12px 22px;
 border:1px solid var(--wp--preset--color--primary);
 border-radius:12px;
 background:var(--wp--preset--color--primary);
 color:var(--wp--preset--color--white);
 font-size:14px;
 font-weight:650;
 line-height:22px;
 text-decoration:none;
 text-shadow:none;
 transition:background-color .18s ease,border-color .18s ease,transform .18s ease;
}

.boxymi-commerce--account :where(.button,button.button,input.button):hover {
 border-color:var(--wp--preset--color--heading);
 background:var(--wp--preset--color--heading);
 color:var(--wp--preset--color--white);
 transform:translateY(-1px);
}

.boxymi-commerce--account .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce :where(.login,.register,.woocommerce-ResetPassword,.woocommerce-EditAccountForm,.woocommerce-address-fields) .button {
 border:1px solid var(--wp--preset--color--primary);
 border-radius:12px;
 background:var(--wp--preset--color--primary);
 color:var(--wp--preset--color--white);
}

.boxymi-commerce--account .elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce :where(.login,.register,.woocommerce-ResetPassword,.woocommerce-EditAccountForm,.woocommerce-address-fields) .button:hover {
 border-color:var(--wp--preset--color--heading);
 background:var(--wp--preset--color--heading);
 color:var(--wp--preset--color--white);
}

.boxymi-commerce--account .woocommerce-LostPassword {
 margin:18px 0 0;
 font-size:14px;
 line-height:21px;
}

.boxymi-commerce--account table.shop_table {
 width:100%;
 margin:0 0 24px;
 border:1px solid var(--wp--preset--color--border);
 border-collapse:separate;
 border-spacing:0;
 border-radius:14px;
 background:var(--wp--preset--color--white);
 overflow:hidden;
}

.boxymi-commerce--account table.shop_table th,
.boxymi-commerce--account table.shop_table td {
 padding:15px 16px;
 border:0;
 border-bottom:1px solid var(--wp--preset--color--border);
 color:var(--wp--preset--color--body);
 font-size:14px;
 line-height:21px;
 text-align:left;
 vertical-align:middle;
}

.boxymi-commerce--account table.shop_table th {
 background:var(--wp--preset--color--soft);
 color:var(--wp--preset--color--heading);
 font-weight:650;
}

.boxymi-commerce--account table.shop_table tr:last-child td { border-bottom:0; }

.boxymi-commerce--account table.shop_table .button {
 min-height:38px;
 padding:7px 14px;
 border-radius:10px;
 font-size:13px;
}

.boxymi-commerce--account .woocommerce-Addresses {
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:18px;
 margin-top:24px;
}

.boxymi-commerce--account .woocommerce-Address {
 float:none;
 width:auto;
 padding:22px;
 border:1px solid var(--wp--preset--color--border);
 border-radius:14px;
 background:var(--wp--preset--color--soft);
}

.boxymi-commerce--account .woocommerce-Address-title {
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:16px;
}

.boxymi-commerce--account .woocommerce-Address-title h3 {
 margin:0;
 font-size:18px;
 line-height:26px;
}

.boxymi-commerce--account .woocommerce-Address-title .edit {
 float:none;
 font-size:13px;
}

.boxymi-commerce--account .woocommerce-Address address {
 margin:16px 0 0;
 color:var(--wp--preset--color--body);
 font-size:14px;
 font-style:normal;
 line-height:22px;
}

.boxymi-commerce--account fieldset {
 margin:26px 0;
 padding:22px;
 border:1px solid var(--wp--preset--color--border);
 border-radius:14px;
}

.boxymi-commerce--account legend {
 padding:0 8px;
 color:var(--wp--preset--color--heading);
 font-size:15px;
 font-weight:650;
}

.boxymi-commerce--account .woocommerce-pagination { margin-top:24px; }

@media (max-width:900px) {
 .logged-in.boxymi-commerce--account .boxymi-account-widget .woocommerce {
  grid-template-columns:minmax(0,1fr);
  gap:24px;
 }

 .boxymi-commerce--account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation {
  position:static;
  width:100%;
  padding:8px;
  overflow-x:auto;
 }

 .boxymi-commerce--account .woocommerce-MyAccount-navigation ul {
  flex-direction:row;
  width:max-content;
  min-width:100%;
 }

 .boxymi-commerce--account .woocommerce-MyAccount-navigation a {
  min-height:42px;
  padding:9px 13px;
  white-space:nowrap;
 }
}

@media (max-width:767px) {
 .boxymi-commerce--account .boxymi-account-intro { margin-bottom:32px; }

 .boxymi-commerce--account .boxymi-commerce-lead {
  font-size:16px;
  line-height:25px;
 }

 .boxymi-commerce--account:not(.logged-in) .boxymi-account-page > .boxymi-commerce-eyebrow,
 .boxymi-commerce--account:not(.logged-in) .boxymi-account-page > .boxymi-commerce-title,
 .boxymi-commerce--account:not(.logged-in) .boxymi-account-page > .boxymi-commerce-lead,
 .boxymi-commerce--account:not(.logged-in) .boxymi-account-widget .woocommerce > h2 {
  text-align:left;
 }

 .boxymi-commerce--account .woocommerce-MyAccount-content,
 .boxymi-commerce--account .woocommerce-form-login,
 .boxymi-commerce--account .woocommerce-form-register {
  padding:20px;
  border-radius:16px;
 }

 .boxymi-commerce--account .woocommerce-Addresses { grid-template-columns:minmax(0,1fr); }

 .boxymi-commerce--account table.shop_table_responsive thead { display:none; }

 .boxymi-commerce--account table.shop_table_responsive tr {
  display:block;
  padding:12px 16px;
  border-bottom:1px solid var(--wp--preset--color--border);
 }

 .boxymi-commerce--account table.shop_table_responsive tr:last-child { border-bottom:0; }

 .boxymi-commerce--account table.shop_table_responsive td {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:9px 0;
  border:0;
  text-align:right;
 }

 .boxymi-commerce--account table.shop_table_responsive td::before {
  color:var(--wp--preset--color--heading);
  font-weight:650;
  text-align:left;
 }
}

@media (max-width:420px) {
 .boxymi-commerce--account .woocommerce-MyAccount-content,
 .boxymi-commerce--account .woocommerce-form-login,
 .boxymi-commerce--account .woocommerce-form-register { padding:18px 16px; }

 .boxymi-commerce--account :where(.button,button.button,input.button) { width:100%; }
}
