/*
 * Shop header, right side (Awana_Account), design «B – Matchende par».
 * Header template: Elementor «Header meny, nettbutikk» (94180). The search icon
 * and menu-cart are Elementor widgets; they are restyled here so the look lives
 * in git, not in Elementor settings. `body` raises specificity above Elementor's
 * generated `.elementor-94180 .elementor-element-…` rules regardless of load order.
 * Relies on the Elementor settings listed in the Awana_Account docblock.
 */

/* «Min profil» button (logged in only) */
.awana-account-slot{display:flex;align-items:center}
body .awana-account-slot .awana-account__button{display:flex;align-items:center;gap:10px;box-sizing:border-box;height:44px;padding:0 20px;border:2px solid rgba(255,255,255,.55);border-radius:8px;background:none;color:#fff;font-size:16px;font-weight:800;line-height:1;text-decoration:none;white-space:nowrap}
body .awana-account-slot .awana-account__button:visited{color:#fff}
body .awana-account-slot .awana-account__button:hover,
body .awana-account-slot .awana-account__button:focus-visible{color:#f7952f;border-color:#f7952f}
.awana-account__icon{flex:none}

/* Cart: same height and radius as the login button, dark badge */
body .elementor-location-header .awana-menu-cart.elementor-widget-woocommerce-menu-cart{--items-indicator-background-color:#262d35;--items-indicator-text-color:#fff}
body .elementor-location-header .awana-menu-cart.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle .elementor-button{box-sizing:border-box;height:44px;padding:0 22px;border-radius:8px;font-size:16px;font-weight:800}
body .elementor-location-header .awana-menu-cart.elementor-widget-woocommerce-menu-cart .elementor-button-icon-qty{background-color:#262d35;color:#fff}

/* Search icon: white, 44×44 hit area */
body .elementor-location-header .elementor-widget-icon.elementor-element:has(a[href="/?s"]) .elementor-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:none;color:#fff;fill:#fff}
body .elementor-location-header .elementor-widget-icon.elementor-element:has(a[href="/?s"]) .elementor-icon svg{width:20px;height:20px;fill:#fff}
body .elementor-location-header .elementor-widget-icon.elementor-element:has(a[href="/?s"]) .elementor-icon:hover svg{fill:#f7952f}

/*
 * 12px between search, login and cart. Only the desktop header row is known to
 * use a 20px gap (Elementor), so the -8px pull is limited to desktop widths.
 */
@media (min-width:1025px){
	.elementor-location-header .awana-account-slot,
	body .elementor-location-header .awana-menu-cart.elementor-widget-woocommerce-menu-cart{margin-left:-8px}
}

/*
 * Phones: the mobile-menu row next to the cart and the close button is ~268px
 * wide, too narrow for the button with text (~140px) plus the cart (~103px).
 * Icon only there; the text stays in title and for screen readers.
 */
@media (max-width:479px){
	body .awana-account-slot .awana-account__button{width:44px;padding:0;justify-content:center}
	.awana-account-slot .awana-account__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
	body .elementor-location-header .awana-menu-cart.elementor-widget-woocommerce-menu-cart{flex-shrink:0}
}

/* My Account */
.awana-account-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:16px 0}
.awana-account-cards>div{display:grid;gap:2px;border:1px solid #dcd9d4;border-radius:6px;padding:12px}
.awana-account-cards small{color:#5d6670}

/* Logout notice */
.awana-logout-notice{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:10000;display:flex;gap:12px;align-items:center;max-width:calc(100% - 32px);padding:12px 16px;border-radius:6px;background:#272e35;color:#fff;font-size:14px;box-shadow:0 8px 24px rgba(0,0,0,.3)}
.awana-logout-notice button{background:none;border:0;color:#fff;font-size:20px;line-height:1;cursor:pointer;padding:0 4px}
