/* My Account — shortcode and Elementor Pro "My Account" widget. Colours follow the Elementor Kit. */
.woocommerce-account{--acc-accent:var(--tb-primary,var(--e-global-color-primary,#2563eb));--acc-ink:#111827;--acc-muted:#6b7280;--acc-line:#e5e7eb;--acc-soft:#f3f6fb}
.woocommerce-account .tipibase-layout{max-width:1240px;margin-inline:auto;padding:clamp(28px,4vw,56px) clamp(16px,3vw,24px)}

/* layout: nav card + content card */
body.woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation){display:grid;grid-template-columns:270px minmax(0,1fr);gap:28px;align-items:start}
body.woocommerce-account .woocommerce-MyAccount-navigation,body.woocommerce-account .woocommerce-MyAccount-content{float:none!important;width:auto!important;margin:0!important}
body.woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation)>*{grid-column:1/-1}
body.woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation)>.woocommerce-MyAccount-navigation{grid-column:1;grid-row:span 2}
body.woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation)>.woocommerce-MyAccount-content{grid-column:2}
body.woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation)>:empty{display:none}
@media(max-width:860px){body.woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation){grid-template-columns:1fr}body.woocommerce-account .woocommerce:has(>.woocommerce-MyAccount-navigation)>.woocommerce-MyAccount-content{grid-column:1}}

/* navigation */
body.woocommerce-account .woocommerce-MyAccount-navigation{padding:12px!important;background:#fff!important;border:1px solid var(--acc-line);border-radius:18px;box-shadow:0 10px 30px -22px rgba(17,24,39,.35)}
body.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none!important;margin:0!important;padding:0!important;display:flex;flex-direction:column;gap:4px}
body.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0!important;padding:0!important;border:0!important;background:none!important}
body.woocommerce-account .woocommerce-MyAccount-navigation li a{display:flex!important;align-items:center;gap:12px;padding:12px 14px!important;border-radius:12px;background:none!important;color:var(--acc-ink)!important;font-size:15px;font-weight:500;text-decoration:none!important;transition:background .2s,color .2s}
body.woocommerce-account .woocommerce-MyAccount-navigation li a::before{content:"";width:20px;height:20px;flex:none;background:currentColor;opacity:.75;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{background:var(--acc-soft)!important;color:var(--acc-accent)!important}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{background:var(--acc-accent)!important;color:#fff!important;font-weight:600}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before{opacity:1}
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout{margin-top:6px!important;padding-top:6px!important;border-top:1px solid var(--acc-line)!important}
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a{color:#dc2626!important}

/* icons (stroke SVG masks) */
.woocommerce-MyAccount-navigation-link--dashboard a,.tb-acc-ico--dashboard{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation-link--orders a,.tb-acc-ico--orders{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M5 7h14l-1 13H6L5 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation-link--downloads a{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation-link--edit-address a,.tb-acc-ico--edit-address{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation-link--edit-account a,.tb-acc-ico--edit-account{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation-link--payment-methods a{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E")}
.woocommerce-MyAccount-navigation-link--customer-logout a{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h3a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-3M10 17l5-5-5-5M15 12H4'/%3E%3C/svg%3E")}
.tb-acc-ico--shop{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h16l-1.5 11h-13L4 9zM8 9l2-5M16 9l-2-5'/%3E%3C/svg%3E")}

/* content card */
body.woocommerce-account .woocommerce-MyAccount-content{padding:clamp(22px,3vw,36px)!important;background:#fff!important;border:1px solid var(--acc-line);border-radius:18px;box-shadow:0 10px 30px -22px rgba(17,24,39,.35);color:#374151;font-size:15.5px;line-height:1.65}
body.woocommerce-account .woocommerce-MyAccount-content>p:first-of-type{margin-top:0}
body.woocommerce-account .woocommerce-MyAccount-content a:not(.button){color:var(--acc-accent)}
body.woocommerce-account .woocommerce-MyAccount-content h2,body.woocommerce-account .woocommerce-MyAccount-content h3{margin:0 0 16px;color:var(--acc-ink);font-size:1.25rem;font-weight:700}

/* dashboard greeting + tiles */
.tb-acc-hello{display:flex;align-items:center;gap:16px;margin-bottom:22px}
.tb-acc-hello img{width:56px;height:56px;border-radius:50%}
.tb-acc-hello__title{margin:0!important;color:var(--acc-ink);font-size:1.35rem;font-weight:700}
.tb-acc-hello__sub{margin:2px 0 0!important;color:var(--acc-muted);font-size:14.5px}
.tb-acc-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}
@media(max-width:1100px){.tb-acc-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tb-acc-tile{display:flex;flex-direction:column;gap:4px;padding:18px;border:1px solid var(--acc-line);border-radius:14px;background:var(--acc-soft);color:var(--acc-ink)!important;text-decoration:none!important;transition:transform .2s,box-shadow .2s,border-color .2s}
.tb-acc-tile:hover{transform:translateY(-3px);border-color:transparent;box-shadow:0 14px 30px -18px rgba(17,24,39,.35)}
.tb-acc-tile__icon{width:40px;height:40px;margin-bottom:8px;border-radius:12px;background:#fff;position:relative}
.tb-acc-tile__icon::after{content:"";position:absolute;inset:10px;background:var(--acc-accent);-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.tb-acc-tile strong{font-size:15px}.tb-acc-tile small{color:var(--acc-muted);font-size:13px}
/* WooCommerce's own dashboard paragraphs become a quiet footnote */
body.woocommerce-account .woocommerce-MyAccount-content>.tb-acc-tiles~p{color:var(--acc-muted);font-size:14px}

/* notices inside the account */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px!important;padding:16px 18px!important;border:1px solid #dbe7fb!important;border-radius:14px!important;background:#f5f9ff!important;color:var(--acc-ink)!important;font-size:15px}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before,body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message::before{display:none!important}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button,body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message .button{order:2;float:none!important;margin:0!important}
.woocommerce-MyAccount-content-wrapper-no-data{display:block!important}

/* buttons */
body.woocommerce-account .woocommerce-MyAccount-content .button,body.woocommerce-account .woocommerce form .button,body.woocommerce-account .woocommerce-Button{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:10px 22px!important;border:0!important;border-radius:999px!important;background:var(--acc-accent)!important;color:#fff!important;font-size:14.5px!important;font-weight:600!important;line-height:1.2!important;text-decoration:none!important;box-shadow:none!important;transition:filter .2s,transform .2s}
body.woocommerce-account .woocommerce-MyAccount-content .button:hover,body.woocommerce-account .woocommerce form .button:hover{filter:brightness(1.08);transform:translateY(-1px)}

/* orders table */
body.woocommerce-account .woocommerce-orders-table,body.woocommerce-account .woocommerce-MyAccount-content table.shop_table{width:100%;border:1px solid var(--acc-line)!important;border-radius:14px;border-collapse:separate!important;border-spacing:0;overflow:hidden}
body.woocommerce-account .woocommerce-MyAccount-content table th{padding:12px 16px!important;background:var(--acc-soft);color:var(--acc-muted);font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;border:0!important}
body.woocommerce-account .woocommerce-MyAccount-content table td{padding:14px 16px!important;border:0!important;border-top:1px solid var(--acc-line)!important;color:var(--acc-ink);vertical-align:middle}
body.woocommerce-account .woocommerce-orders-table .button{min-height:36px;padding:6px 16px!important;font-size:13px!important}
body.woocommerce-account mark.order-status{padding:4px 10px;border-radius:999px;background:#ecfdf5;color:#047857;font-weight:600;font-size:13px}

/* addresses */
body.woocommerce-account .woocommerce-Addresses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
body.woocommerce-account .woocommerce-Addresses::before,body.woocommerce-account .woocommerce-Addresses::after{display:none}
body.woocommerce-account .woocommerce-Address{float:none!important;width:auto!important;padding:20px;border:1px solid var(--acc-line);border-radius:14px;background:var(--acc-soft)}
body.woocommerce-account .woocommerce-Address-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
body.woocommerce-account .woocommerce-Address-title h2{margin:0!important;font-size:1.05rem}
body.woocommerce-account .woocommerce-Address address{font-style:normal;color:var(--acc-muted)}
@media(max-width:700px){body.woocommerce-account .woocommerce-Addresses{grid-template-columns:1fr}}

/* forms (edit account / address / login / register) */
body.woocommerce-account .woocommerce form .form-row{margin:0 0 14px;padding:0}
body.woocommerce-account .woocommerce form .form-row label{display:block;margin-bottom:6px;color:var(--acc-ink);font-size:14px;font-weight:600}
body.woocommerce-account .woocommerce form .input-text,body.woocommerce-account .woocommerce form select,body.woocommerce-account .woocommerce form textarea{width:100%;min-height:48px;padding:10px 14px!important;border:1px solid #d4d4d8!important;border-radius:10px!important;background:#fff!important;color:var(--acc-ink);font-size:15px;box-shadow:none!important;transition:border-color .2s,box-shadow .2s}
body.woocommerce-account .woocommerce form .input-text:focus,body.woocommerce-account .woocommerce form select:focus{outline:0;border-color:var(--acc-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--acc-accent) 18%,transparent)!important}
body.woocommerce-account .woocommerce form fieldset{margin:22px 0 0;padding:20px;border:1px solid var(--acc-line);border-radius:14px}
body.woocommerce-account .woocommerce form fieldset legend{padding:0 8px;font-weight:700;color:var(--acc-ink)}
body.woocommerce-account .woocommerce form .form-row-first,body.woocommerce-account .woocommerce form .form-row-last{width:calc(50% - 8px)}
@media(max-width:600px){body.woocommerce-account .woocommerce form .form-row-first,body.woocommerce-account .woocommerce form .form-row-last{width:100%;float:none}}

/* logged out: login + register cards */
body.woocommerce-account .woocommerce #customer_login,body.woocommerce-account .woocommerce>.woocommerce-form-login{max-width:980px;margin:0 auto}
body.woocommerce-account #customer_login{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
body.woocommerce-account #customer_login::before,body.woocommerce-account #customer_login::after{display:none}
body.woocommerce-account #customer_login>.u-column1,body.woocommerce-account #customer_login>.u-column2{float:none;width:auto;padding:32px;background:#fff;border:1px solid var(--acc-line);border-radius:18px;box-shadow:0 10px 30px -22px rgba(17,24,39,.35)}
body.woocommerce-account #customer_login h2{margin:0 0 18px;font-size:1.4rem;color:var(--acc-ink)}
body.woocommerce-account form.login,body.woocommerce-account form.register{margin:0!important;padding:0!important;border:0!important}
@media(max-width:800px){body.woocommerce-account #customer_login{grid-template-columns:1fr}}

/* Elementor Pro My Account widget: neutralise its default tab colours */
body .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation-link a{background:none}
body .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:none;box-shadow:none}

/* header account link ([tipibase_account_link]) */
.tb-account-link{display:inline-flex;align-items:center;gap:10px;color:inherit!important;text-decoration:none!important}
.tb-account-link i{font-size:28px}
.tb-account-link span{display:flex;flex-direction:column;line-height:1.25}
.tb-account-link small{font-size:12.5px;opacity:.7;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-account-link strong{font-size:15px}

/* Stronger, nested selectors so the Elementor Pro "My Account" widget (tabs-vertical/horizontal) can't win. */
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce{display:grid!important;grid-template-columns:270px minmax(0,1fr)!important;gap:28px!important;align-items:start;flex-direction:initial}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce>*{grid-column:1/-1;order:0!important}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce>.woocommerce-MyAccount-navigation{grid-column:1!important;grid-row:1;width:auto!important;max-width:none!important;margin:0!important}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce>.woocommerce-MyAccount-content{grid-column:2!important;grid-row:1;width:auto!important;max-width:none!important;margin:0!important}
body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce>:empty{display:none}
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul{flex-direction:column!important;flex-wrap:nowrap!important}
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content-wrapper{padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
@media(max-width:860px){
	body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce{grid-template-columns:1fr!important}
	body.woocommerce-account .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce>.woocommerce-MyAccount-content{grid-column:1!important;grid-row:2}
}
/* Dashboard: our greeting + tiles replace WooCommerce's two default paragraphs */
body.woocommerce-account .woocommerce-MyAccount-content:has(.tb-acc-tiles) .woocommerce-MyAccount-content-wrapper>p,
body.woocommerce-account .woocommerce-MyAccount-content:has(.tb-acc-tiles)>p{display:none}
body.woocommerce-account .tb-acc-tiles{margin-bottom:0}

/* Address cards: title + edit link on one row (Elementor widget positions the link over the title) */
body.woocommerce-account .woocommerce-Address .woocommerce-Address-title,
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-Address .woocommerce-Address-title{display:flex!important;align-items:center;justify-content:space-between;gap:12px;position:static!important;margin:0 0 14px!important;padding:0!important}
body.woocommerce-account .woocommerce-Address .woocommerce-Address-title h2,
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-Address .woocommerce-Address-title h2{position:static!important;float:none!important;margin:0!important;font-family:inherit!important;font-size:1.05rem!important;font-weight:700!important;color:var(--acc-ink)!important}
body.woocommerce-account .woocommerce-Address .woocommerce-Address-title a,
body.woocommerce-account .elementor-widget-woocommerce-my-account .woocommerce-Address .woocommerce-Address-title a{position:static!important;float:none!important;inset:auto!important;transform:none!important;order:2;flex:none;margin:0!important;padding:6px 14px;border:1px solid var(--acc-line);border-radius:999px;background:#fff;color:var(--acc-accent)!important;font-size:13px;font-weight:600;text-decoration:none!important}
body.woocommerce-account .woocommerce-Address .woocommerce-Address-title a:hover{border-color:var(--acc-accent)}
body.woocommerce-account .woocommerce-Address address{margin:0;padding:16px 18px;border-radius:12px;background:#fff;line-height:1.7}

/* Logged out: login form as a centred card */
body.woocommerce-account:not(.logged-in) .woocommerce form.woocommerce-form-login{max-width:460px;margin:0 auto!important;padding:32px!important;background:#fff;border:1px solid var(--acc-line)!important;border-radius:18px;box-shadow:0 10px 30px -22px rgba(17,24,39,.35)}
body.woocommerce-account:not(.logged-in) .woocommerce>h2,body.woocommerce-account:not(.logged-in) .elementor-widget-woocommerce-my-account h2{max-width:460px;margin:0 auto 18px!important;text-align:center;font-size:1.6rem;font-weight:700;color:var(--acc-ink)}
body.woocommerce-account:not(.logged-in) .woocommerce form.woocommerce-form-login .button{width:100%}
body.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme{display:flex;align-items:center;gap:8px;margin:0 0 14px}
body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword{margin:14px 0 0;text-align:center}
body.woocommerce-account:not(.logged-in) .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce{display:block!important}
body.woocommerce-account:not(.logged-in) .woocommerce form.woocommerce-form-login{width:100%;box-sizing:border-box}
body.woocommerce-account:not(.logged-in) .elementor-widget-woocommerce-my-account h2{font-family:inherit!important;font-weight:700!important}
