/* ============================================
   ACCOUNT DROPDOWN
   ============================================ */

.account-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.account-dropdown-trigger {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.account-dropdown-trigger img {
  width: 24px;
  height: 24px;
  transition: opacity 0.2s ease;
}

.account-dropdown-trigger:hover img {
  opacity: 0.7;
}

.account-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 8px;
}

.account-dropdown-wrapper:hover .account-dropdown-menu,
.account-dropdown-wrapper.is-open .account-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.account-dropdown-item:last-child {
  border-bottom: none;
}

.account-dropdown-item:hover {
  background-color: #f8f8f8;
}

.account-dropdown-item .account-icon {
  font-size: 20px;
  line-height: 1;
}

.account-dropdown-item .account-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.account-dropdown-item:hover .account-label {
  color: var(--accentColor, #ff5e00);
}

/* ============================================
   LOGIN BUTTON DROPDOWN (for logged out users)
   ============================================ */

.login-button-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.login-button-trigger {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* Dölj texten och pilen – visa bara ikonen */
.login-button-text,
.login-button-arrow {
  display: none;
}

.login-button-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
}

.login-button-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 8px;
}

.login-button-dropdown-wrapper:hover .login-button-dropdown-menu,
.login-button-dropdown-wrapper.is-open .login-button-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.login-button-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.login-button-dropdown-item:last-child {
  border-bottom: none;
}

.login-button-dropdown-item:hover {
  background-color: #f8f8f8;
}

.login-button-dropdown-item .login-button-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.login-button-dropdown-item:hover .login-button-label {
  color: var(--accentColor, #ff5e00);
}

.smort-header-shell {
  position: sticky;
  top: 0;
  z-index: 100;
}

.smort-header-shell-main {
  background-color: #111111;
}

.smort-header-shell-nav {
  background-color: #1d1d1d;
  border-top: 1px solid #292929;
}

/* Normal header styles */
.smort-header {
  padding: 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: 1600px;
  background-color: #fafafa;
}

.sticky-header .wooj-icon-basket-1:before {
  filter: invert(1);
}

.navigation-row .smort-nav > ul > li > a {
  font-weight: 500;
}

.smort-header .menu-item a {
  color: #fff;
}

/* Doofinder sökfält */
.doofinder-search-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 45px;
  background: #ffff;
  border-radius: 30px;

  overflow: hidden;
}

#doofinder-search {
  border: 0 !important;
  padding-top: 0 !important;
  font-size: 13px !important;
}

@media (max-width: 992px) {
  .doofinder-search-wrap {
    height: 30px;
  }
}

.doofinder-search {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  height: 100%;
  padding: 0 16px 0 24px;
  font-size: 1rem;
  font-family: var(--fontFamilySecond);
  color: var(--textColor);
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;

  @media (max-width: 992px) {
    padding: 0 0px 0 17px;
    font-size: 13px;
  }
}

.doofinder-search::placeholder {
  color: var(--textColor);
}

.doofinder-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.doofinder-search-btn {
  flex-shrink: 0;
  width: 45px;
  height: 45px;

  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  background: var(--accentColor);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.18s ease;

  @media (max-width: 992px) {
    width: 38px;
    height: 38px;
    background-color: transparent;
    color: var(--textColor);
  }
}

.doofinder-search-btn:hover {
  filter: brightness(1.15);
}

@media (min-width: 993px) {
  .smort-topbar.desktop {
    background: #1111;
    color: #d6d6d6;
    padding: 0.3rem 10px;
    width: 100% !important;
    box-sizing: border-box;
  }

  .smort-topbar.desktop .usp-header {
    display: flex;
    gap: 28px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .smort-topbar.desktop .usp-header li {
    color: #bfc3c8;
    font-size: 12px;
    font-weight: 500;
  }

  .smort-topbar.desktop .usp-header img {
    width: 12px;
    height: 12px;
    margin-right: 8px;
    vertical-align: -1px;
    filter: brightness(1.05);
  }

  .smort-topbar.desktop .topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .smort-topbar.desktop .topbar-right .af-login {
    display: none;
  }

  .smort-topbar.desktop .tax-toggle-div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .smort-topbar.desktop .tax-toggle-div span {
    font-size: 12px;
    text-transform: none;
  }

  /* Tax toggle på desktop: dölj native pil och lägg custom pil via ::after */
  .smort-topbar.desktop .tax-toggle-div form.smort-tax-toggle-form {
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  .smort-topbar.desktop .tax-toggle-div form.smort-tax-toggle-form select {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-right: 22px !important;
  }

  .smort-topbar.desktop .tax-toggle-div form.smort-tax-toggle-form::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #ffffff;
    pointer-events: none;
  }

  .smort-header {
    background: #111111;
    width: 100%;
    display: flex;
    box-sizing: border-box;
  }

  .smort-header .burger-menu-container {
    display: none;
  }

  .smort-header .smort-logo {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
  }

  .smort-header .smort-logo img {
    height: 46px !important;
    width: auto;
    filter: brightness(0) invert(1);
  }

  .smort-header .smort-nav-centered {
    display: block;
    flex: 1 1 auto;
    max-width: none;
    padding: 0 28px;
  }

  .smort-header .smort-cart {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 270px;
    flex: 0 0 auto;
    width: 0 !important;
  }

  .smort-header .smort-cart > a,
  .smort-header .smort-cart .login-button-dropdown-wrapper,
  .smort-header .smort-cart .smk-car-selector,
  .smort-header .smort-cart .smort-wishlist-link,
  .smort-header .smort-cart .smort-cart-wrapper,
  .smort-header .smort-cart #smort-cart-container {
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    font-size: 0.78rem;
    text-transform: none;
    position: relative;
    min-width: 65px;
  }

  .smk-car-icon {
    width: 25px !important;
    height: 20px;
  }

  .smort-header .smort-cart .header-icon-label,
  .smort-header .smort-cart .smk-car-selector::after,
  .smort-header .smort-cart .smort-wishlist-link::after,
  .smort-header .smort-cart .smort-cart-wrapper::after,
  .smort-header .smort-cart .smort-cart-wrapper > a::after,
  .smort-header .smort-cart #smort-cart-container::after {
    color: inherit;
    font-size: 11px;
    line-height: 1.2;
    display: block;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.1px;
    white-space: nowrap;
  }

  .smort-header .smort-cart .smort-wishlist-link::after {
    content: "Favoriter";
  }

  .smort-header .smort-cart .smk-car-selector::after {
    content: "Välj bil";
  }

  .smort-header .smort-cart .smort-wishlist-link {
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    position: relative;
  }

  .smort-header .smort-cart .login-button-trigger {
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
  }

  .smort-header .smort-cart .smort-cart-wrapper::after {
    content: "Varukorg";
  }

  .smort-header .smort-cart #smort-cart-container::after {
    content: "Varukorg";
  }

  .smort-header .smort-cart .smort-cart-wrapper > a {
    color: inherit;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    position: relative;
  }

  .smort-header .smort-cart .smort-cart-wrapper > a::after {
    content: "Varukorg";
  }

  .smort-header .smort-cart #smort-cart-container .smort-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .smort-header .smort-cart .wooj-item-count,
  .smort-header .smort-cart .smort-wishlist-link [class*="count"],
  .smort-header .smort-cart .smort-cart-wrapper [class*="count"],
  .smort-header .smort-cart #smort-cart-container [class*="count"] {
    position: absolute;
    top: -7px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff5e00;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid #111111;
    box-sizing: border-box;
    z-index: 3;
    pointer-events: none;
  }

  .smort-header .smort-cart .smort-cart-wrapper [class*="count"],
  .smort-header .smort-cart #smort-cart-container [class*="count"] {
    right: 0px;
  }

  .smort-cart-icon {
    height: 25px;
  }

  .smort-header .smort-cart > a img,
  .smort-header .smort-cart > .login-button-dropdown-wrapper img,
  .smort-header .smort-cart > .smk-car-selector img,
  .smort-header .smort-cart > .smort-wishlist-link img,
  .smort-header .smort-cart > #smort-cart-container > .smort-cart-icon img {
    filter: brightness(0) invert(1);
  }

  .navigation-row {
    background: #1d1d1d;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    align-items: center;
    max-width: 1600px;
  }

  .navigation-row .nav-row-left {
    width: 100%;
  }

  .navigation-row .smort-nav-left {
    display: flex;
    align-items: center;
  }

  .navigation-row .smort-nav-left > div,
  .navigation-row .smort-nav-left > ul,
  .navigation-row .smort-nav-left .menu {
    width: 100%;
  }

  .navigation-row .menu {
    display: flex;
    align-items: center;

    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .navigation-row .menu > li > a {
    color: #f3f4f6;
    font-size: 1.05rem;
    font-weight: 600;

    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
  }

  .navigation-row .burger-menu {
    margin-right: 34px;
    width: 32px;
    min-width: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
  }

  .navigation-row .burger-menu span {
    background: #fff;
    width: 100%;
    height: 2px;
    margin: 0;
  }
}

.smort-cart-icon {
  margin-left: 0;
  width: auto;
}

/* Sticky header styles */
.sticky-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 0;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  padding: 10px 20px;
  transition:
    transform 0.2s ease-out,
    width 0.2s ease-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  border-radius: 10px;
}

.sticky-header.active {
  transform: translateX(-50%) scale(1);
  /* Grow from center */
  max-width: 1600px;
  width: 93%;
  /* Expand to full width */
  opacity: 1;
  /* Make visible */
}

img.modal-logo-mobile {
  width: 100%;
  position: absolute;
  bottom: -25%;
  left: 0;
}

.sticky-header .logo {
  display: flex;
  align-items: center;
}

.sticky-header .burger-menu {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  max-width: 50px;
  align-items: flex-end;
}

.sticky-header .burger-menu span {
  height: 2px;
  width: 100%;
  margin: 4px 0;
}

.sticky-header .burger-menu span {
  background: #fff;
}

.burger-menu.sticky-burger-menu span:nth-of-type(2) {
  width: 100%;
}

.right-sticky button {
  background: var(--accentColor);
  border-radius: 5px;
  color: #fff;
  border: 0px;
  width: 250px;
  text-align: left;
  font-family: var(--fontFamily);
  padding: 8px 10px;
  position: relative;
}

.right-sticky button:after {
  content: url("/wp-content/themes/smort_commerce/img/arrow-up-right.svg");
  position: absolute;
  right: 10px;
  filter: invert(1);
  transition: transform 0.2s ease-in-out;
}

.right-sticky button:hover:after {
  transform: rotate(45deg);
}

.right-sticky {
  display: flex;
  gap: 30px;
  width: 350px;
}

/* Preserve your button and other content */
.sticky-header .smort-cart {
  display: flex;
  align-items: center;
}

.smort-nav ul li a:hover,
.smort-nav ul li a:active {
  color: #fff;
}

.smort-topbar.mobile,
.mobile-search-row {
  display: none;
}

/* Mobile Menu Styles */
.burger-menu-container {
  display: none;
  position: absolute;
  top: 0;
  left: 10px;
  width: 33%;
  display: flex;
  justify-content: flex-start !important;
  align-items: center;
}

.burger-menu {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 0px;
  max-width: 50px;
  position: initial;
  align-items: end;
  background: transparent;
  border: 0;
}

.burger-menu span {
  background: var(--accentColor);
  height: 2px;
  width: 100%;
  margin: 4px 0;
}

.burger-menu:focus-visible {
  outline-offset: 4px;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  z-index: 999999999999;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
  margin-top: 0px;
  background: #000;
  /* Solid bakgrundsfärg */
  position: fixed;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10;
}

.mobile-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url(/wp-content/uploads/2025/02/symbol-xk.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: unset;
  opacity: 0.05;
  z-index: -1;
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-inner li a {
  font-size: 2rem !important;
  line-height: 1.2;
}

.mobile-nav-inner li a:hover {
  color: var(--accentColor);
}

.mobile-nav-inner li {
  text-align: left;
}

.mobile-nav-inner {
  text-align: center;
  width: 90%;
  overflow-y: auto;
  text-align: left;
  padding-top: 10%;
}

.close-nav {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  background: var(--accentColor3);
  padding: 10px 20px;
  border-radius: 50%;
}

.close-nav:focus-visible {
  outline: 2px solid var(--accentColor, #ff5e00);
  outline-offset: 4px;
}

.mobile-nav ul {
  list-style-type: none;
  padding: 1rem;
}

.mobile-nav ul li {
  margin: 10px 0;
}

.mobile-nav ul li a {
  color: #000;
  text-decoration: none;
  text-transform: none;
  font-size: 20px;
  font-family: "CustomHeadingFont";
}

.mobile-nav ul li ul {
  display: none;
  list-style-type: none;
  padding: 0;
}

.mobile-nav ul li.active > ul {
  display: block;
}

.sticky-header .logo img {
  filter: invert(1);
}

/* Navigation row styling */

.navigation-row {
  padding: 12px 1rem;

  display: flex;
}

.nav-row-left {
  width: 100%;
}

@media (max-width: 992px) {
  .smort-topbar.mobile {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: #0b0c0f;
    border-bottom: 1px solid #1f2026;
    padding: 5px 9px;
  }

  .smort-topbar.mobile .mobile-topbar-usp {
    color: #f1f1f1;
    font-size: 10px;
    font-weight: 500;
    display: grid;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
  }

  .smort-topbar.mobile .mobile-topbar-usp-item {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
  }

  .smort-topbar.mobile .mobile-topbar-usp-item.is-active {
    opacity: 1;
    visibility: visible;
  }

  .smort-topbar.mobile .mobile-topbar-usp-item img {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
  }

  .smort-topbar.mobile .mobile-topbar-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .smort-topbar.mobile .mobile-topbar-controls .language-currency-dropdown,
  .smort-topbar.mobile .mobile-topbar-controls form.smort-tax-toggle-form {
    display: inline-flex;
    align-items: center;
    position: relative;
  }

  .smort-topbar.mobile
    .mobile-topbar-controls
    form.smort-tax-toggle-form::after {
    content: "";
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #fff;
    pointer-events: none;
  }

  .smort-topbar.mobile
    .mobile-topbar-controls
    form.smort-tax-toggle-form
    select {
    padding-right: 20px !important;
  }

  .smort-topbar.mobile .mobile-topbar-controls .selected-option,
  .smort-topbar.mobile .mobile-topbar-controls .language-currency-select,
  .smort-topbar.mobile
    .mobile-topbar-controls
    form.smort-tax-toggle-form
    select {
    color: #fff !important;
    border: 1px solid #31343d !important;
    background: #0b0c0f !important;
    font-size: 10px !important;
    height: 24px;
    min-height: 24px;
    min-width: 82px;
    padding: 0 8px !important;
    line-height: 1;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin-top: 0 !important;
    box-sizing: border-box;
  }

  .smort-topbar.mobile .language-currency-dropdown {
    display: inline-flex;
    align-items: center;
    position: relative;
  }

  /* Visa selected-option (flagga) men lägg native select osynligt ovanpå */
  .smort-topbar.mobile .language-currency-dropdown .selected-option {
    display: inline-flex !important;
    pointer-events: none;
    align-items: center;
    gap: 5px !important;
    white-space: nowrap;
    overflow: hidden;
  }

  .smort-topbar.mobile .language-currency-dropdown .selected-option img,
  .smort-topbar.mobile .language-currency-dropdown .selected-option .flag-icon {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
  }

  .smort-topbar.mobile .language-currency-dropdown .selected-option span {
    font-size: 10px !important;
    color: #fff !important;
    line-height: 1;
  }

  .smort-topbar.mobile .language-currency-dropdown .selected-option .arrow {
    display: none !important;
  }

  .smort-topbar.mobile .language-currency-dropdown .selected-option {
    padding-right: 8px !important;
  }

  .smort-topbar.mobile .language-currency-dropdown .language-currency-select {
    display: inline-block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer;
    min-width: unset !important;
    padding: 0 !important;
  }

  .smort-topbar.mobile .language-currency-dropdown .dropdown-list {
    display: none !important;
  }

  .smort-topbar.mobile form.smort-tax-toggle-form select {
    text-align: left;
    text-align-last: left;
    padding-left: 6px !important;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin-top: 0 !important;
  }

  .burger-menu-container,
  .smort-logo,
  .smort-cart {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48%;
    display: flex;
    align-items: center;
    position: relative;
    height: 50px;
  }

  .burger-menu-container {
    display: none !important;
  }

  .smort-header {
    background: #181a20;
    padding: 12px !important;
    border-bottom: 1px solid #23252c;
    flex-wrap: wrap;
  }

  .smort-logo {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
    padding-left: 10px;
  }

  .smort-logo img {
    height: 42px !important;
    width: auto;
    filter: brightness(0) invert(1);
  }

  .smort-cart {
    width: auto;
    height: auto;
    margin-left: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 18px;
    margin-right: 1rem;
  }

  .smort-cart .login-button-text,
  .smort-cart .login-button-arrow,
  .smort-cart .header-icon-label,
  .smort-cart .smk-car-selector .selector-text,
  .smort-cart .smort-cart-text,
  .smort-cart .wishlist-text,
  .smort-cart .wooj-item-count {
    display: none !important;
  }

  .smort-cart .smort-wishlist-link::after,
  .smort-cart .smort-cart-wrapper::after,
  .smort-cart .smort-cart-wrapper > a::after,
  .smort-cart #smort-cart-container::after {
    content: "";
    display: none !important;
  }

  .mobile-search-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 25px;
    order: 3;
    padding: 6px 12px;
  }

  .mobile-search-burger {
    width: 34px;
    min-width: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }

  .mobile-search-burger span {
    width: 100%;
    height: 2px;
    margin: 0;
    background: #fff;
  }

  .mobile-search-input:focus {
    outline: none;
  }

  .mobile-search-btn {
    border: 0;
    background: transparent;
    width: 56px;
    height: 0px;
    color: #6a6a6a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .main-navigation {
    display: none;
  }

  .smort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  div#burger-menu span:nth-of-type(2) {
    width: 70%;
  }

  .burger-menu {
    align-items: flex-start;
  }

  .mobile-nav {
    justify-content: space-between;
    direction: ltr;
    padding-top: 0%;
    width: 100%;
  }

  #mobile-mobile-nav {
    left: 0;
    right: auto;
    width: min(75vw, 420px);
    height: 100dvh;
    display: flex !important;
    opacity: 1;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 999999999;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  #mobile-mobile-nav.active {
    transform: translateX(0);
    pointer-events: auto;
  }

  #mobile-mobile-nav .mobile-nav-inner {
    width: 100%;
    padding: 50px 0px 20px 10px;
    box-sizing: border-box;
  }

  #mobile-mobile-nav .close-nav {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 0;
    padding: 0;
    background-color: black !important;
    z-index: 10;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    background: transparent;
    border: 1px solid #4a4a4a;
    color: #fff;
  }

  #mobile-mobile-nav .mobile-menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  #mobile-mobile-nav .mobile-menu > li > a {
    color: #fff;
    font-size: 0.9rem !important;
    line-height: 1.35;
    text-transform: none;
    font-family: var(--fontFamilySecond);
    font-weight: 500;
    letter-spacing: 0;
    padding: 10px 0;
    display: block;
    flex: 1 1 auto;
    transition: color 0.18s ease;
  }

  #mobile-mobile-nav .mobile-menu > li.menu-item-has-children > a {
    width: auto;
    flex: 1 1 auto;
  }

  #mobile-mobile-nav img.menu-arrow {
    flex: 0 0 auto;
    position: static;
    float: none;
    display: block;
    width: 14px !important;
    height: 14px;
    border: none;
    padding: 0;
    margin-right: 4px;
    opacity: 0.65;
    transition: transform 0.22s ease;
    transform: rotate(0deg);
  }

  #mobile-mobile-nav img.menu-arrow.rotated {
    transform: rotate(180deg);
  }

  #mobile-mobile-nav .mobile-menu > li > .sub-menu {
    flex: 0 0 100%;
  }

  #mobile-mobile-nav .mobile-menu .sub-menu {
    margin: 2px 0 6px !important;
    padding-left: 8px !important;
    border-left: none !important;
  }

  #mobile-mobile-nav .mobile-menu .sub-menu li {
    border-bottom: 0;
    padding: 2px 0;
    margin: 0;
  }

  #mobile-mobile-nav .mobile-menu .sub-menu a {
    font-size: 0.85rem !important;
    line-height: 1.4;
    text-transform: none;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--fontFamilySecond);
    padding: 4px 0;
    display: inline-block;
  }

  /* duplicate removed */

  #mobile-mobile-nav .mobile-menu > li.is-expanded {
    border-bottom-color: #0e0e0e;
    background: #0e0e0e;
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-left: 3px solid var(--accentColor);
  }

  #mobile-mobile-nav .mobile-menu > li.is-expanded > a {
    color: var(--accentColor) !important;
    font-weight: 600 !important;
  }

  #mobile-mobile-nav .submenu-toggle {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.65);
    float: right;
    line-height: 1;
    padding-right: 5px;
  }

  #mobile-mobile-nav .smort-goto-item a {
    color: #fff !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    padding: 5px 0 8px !important;
    margin-bottom: 4px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  #mobile-mobile-nav .menu-item-has-smort-mega > .smort-mega-menu-panel,
  #mobile-mobile-nav .smort-mega-mobile-toggle {
    display: none !important;
  }

  #mobile-mobile-nav .contact-overlaymenu {
    margin-top: 0;
    margin-bottom: 22px;
    padding-left: 0 !important;
    gap: 10px;
    width: 95%;
  }

  #mobile-mobile-nav .contact-overlaymenu a {
    width: 100%;
  }

  .mobile-nav-inner li a {
    font-size: 2rem !important;
  }

  .burger-menu {
    z-index: 10 !important;
  }

  .menu-menu-1-container ul {
    text-align: left;
  }

  .contact-overlaymenu {
    padding-left: 5px !important;
  }

  ul.sub-menu a {
    font-size: 1.6rem !important;
  }

  .right-sticky button {
    display: none;
  }

  .right-sticky {
    justify-content: end;
  }

  .sticky-header img {
    height: 20px !important;
  }

  button#wc_search_trigger {
    display: none;
  }

  .sticky-header.active {
    width: 85%;
  }

  .smort-logo img {
    height: 30px !important;
    max-width: none;
  }

  ul.sub-menu.open {
    margin-left: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  #mobile-mobile-nav ul.sub-menu.open {
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .navigation-row {
    display: none;
  }

  .smort-cart .language-currency-dropdown {
    display: none;
  }

  .smort-topbar.desktop {
    display: none;
  }

  .smort-header {
    padding: 5px 0px !important;
  }
}

.sub-menu-xk a {
  font-size: 1.2rem !important;
}

/* Dölj mega menu-paneler i desktop-hamburgaren */
#desktop-mobile-nav .smort-mega-menu-panel {
  display: none !important;
}

.smort-cart-backdrop.active {
  display: none !important;
}

.mobile-nav ul li {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: var(--delay, 0s);
}

/* Animation for fading and sliding in */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply a delay to each menu item */
.mobile-nav.active ul li:nth-child(1) {
  --delay: 0.1s;
}

.mobile-nav.active ul li:nth-child(2) {
  --delay: 0.2s;
}

.mobile-nav.active ul li:nth-child(3) {
  --delay: 0.3s;
}

.mobile-nav.active ul li:nth-child(4) {
  --delay: 0.4s;
}

.mobile-nav.active ul li:nth-child(5) {
  --delay: 0.5s;
}

.smort-pristabell-features-extra li {
  position: relative;
  padding-left: 25px;
  background: url(/wp-content/uploads/2024/11/check-9.svg) no-repeat left center;
  background-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forklaring-content {
  display: none;
  margin: 5px;
  padding: 0px 10px;
  border: 1px solid #828282;
  border-radius: 10px;
}

span.forklaring-toggle {
  position: absolute;
  right: 20px;
  cursor: pointer;
}

.forklaring-content p {
  font-size: 14px;
}

.mobile-nav-inner .menu-menu-1-container ul {
  border: 0px;
  text-align: left;
}

.menu-item-has-children > .menu-arrow {
  margin-left: 10px;
  cursor: pointer;
  display: inline-block;
}

.mobile-menu {
  overflow: hidden;
}

.mobile-menu .sub-menu {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.mobile-menu .sub-menu.open {
  display: block;
  opacity: 1;
}

img.menu-arrow {
  width: 30px !important;
  transform: rotate(0deg);
  filter: brightness(0) invert(1);
}

.menu-arrow {
  margin-left: 10px;
  vertical-align: middle;
  float: right;
}

.mobile-nav-inner ul.sub-menu a {
  font-size: 2.5rem;
}

.contact-overlaymenu a {
  color: #fff;
  text-decoration: none;
  border: 1px solid #353535 !important;
  padding: 10px;
  border-radius: 0px;
  font-family: Helvetica;
  width: 50%;
  text-align: center;
  font-weight: 400;
  text-transform: none;
  background-color: var(--accentColor);
  font-size: 11px;
  font-weight: 600;
}

.contact-overlaymenu {
  margin-top: 60px;
  padding-left: 0px;
  margin-bottom: 50px;
  display: flex;
  gap: 20px;
}

.mobile-nav-logo {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: auto;
  max-height: 40vh;
  /* Display only the top 60% of the image */
  overflow: hidden;
  z-index: 1001;
  /* Ensure it's above other elements */
  transform: translateY(40%);
  /* Show only the top 60% */
}

.mobile-nav-logo img {
  width: 100%;
  /* Make the image fill the width of the viewport */
  height: auto;
}

.swcs_search_container {
  display: none;
}

@media (max-width: 960px) {
  .swcs_search_container {
    display: block;
  }
}

/* Ta bort tax-toggle-div från botten av menyn */
.mobile-nav > .tax-toggle-div {
  display: none;
}

.language-currency-dropdown {
  width: 110px !important;
}

@media (max-width: 960px) {
  .language-currency-dropdown {
    width: 92px !important;
  }
}

.language-currency-select {
  padding: 0px !important;
  border-radius: 0 !important;
  background: #000 !important;
  border: 1px solid rgb(46, 46, 46) !important;
  font-size: 12px !important;
}

@media (max-width: 960px) {
  .language-currency-select {
    color: #ffff;
  }
}

.selected-option {
  padding: 4px 8px !important;
  border-radius: 0 !important;
  background: #0000 !important;
  border: 1px solid rgb(51, 51, 51) !important;
  margin-right: 0px !important;
  gap: 0 !important;
}

.dropdown-list {
  color: #000;
}

/* Dropdown styling för hamburgarmenyn */
.menu-item-has-children > .menu-arrow {
  margin-left: 10px;
  cursor: pointer;
  display: inline-block;
}

.mobile-menu .sub-menu {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.mobile-menu .sub-menu.open {
  display: block;
  opacity: 1;
}

img.menu-arrow {
  width: 30px !important;
  transform: rotate(0deg);
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.menu-arrow.rotated {
  transform: rotate(180deg);
}

.mobile-nav-inner ul.sub-menu a {
  font-size: 2rem !important;
  padding-left: 20px;
}

/* Extra indrag för nivå 2 (dropdown i dropdown) */
.mobile-nav-inner ul.sub-menu ul.sub-menu a {
  font-size: 1.8rem !important;
  padding-left: 40px;
}

ul.sub-menu.open {
  margin-left: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Plus/minus-ikon för andra nivån i mobilmenyn */
.submenu-toggle {
  cursor: pointer;
  display: inline-block;
  font-size: 1.6rem;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: #fff;
  float: right;
}

.submenu-toggle.open {
  font-weight: 600;
}

.smort-header .smort-cart > a img,
.smort-header .smort-cart > a svg,
.smort-header .smort-cart > .login-button-dropdown-wrapper img,
.smort-header .smort-cart > .login-button-dropdown-wrapper svg,
.smort-header .smort-cart > .smk-car-selector img,
.smort-header .smort-cart > .smk-car-selector svg,
.smort-header .smort-cart > .smort-wishlist-link img,
.smort-header .smort-cart > .smort-wishlist-link svg,
.smort-header .smort-cart > #smort-cart-container > .smort-cart-icon img,
.smort-header .smort-cart > #smort-cart-container > .smort-cart-icon svg {
  width: 22px !important;
  height: 22px !important;
  filter: brightness(0) invert(1) !important;
}
