/**
 * Footer retail Styles
 */

.footer-retail {
  position: relative;
}

.footer-retail-accordion-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.footer-retail-accordion-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.footer-retail-accordion-chevron {
  display: none;
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.footer-retail-accordion-toggle[aria-expanded="true"]
  .footer-retail-accordion-chevron {
  transform: rotate(225deg);
}

.footer-retail-accordion-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.footer-retail-accordion-panel[hidden] {
  display: none;
}

/* ==========================================================================
   FOOTER SOCIAL MEDIA
   ========================================================================== */

.footer-social {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social__label {
  display: block;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-social__icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.footer-social__link svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.footer-social__link:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(198, 22, 24, 0.15);
  transform: translateY(-2px);
}

@media (max-width: 479px) {
  .footer-social {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   FOOTER NEWSLETTER
   ========================================================================== */

.footer-newsletter {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-newsletter__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-newsletter__heading {
  margin: 0;
  color: var(--text-light);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
}

.footer-newsletter__form {
  flex: 0 0 auto;
  width: min(100%, 460px);
}

.footer-newsletter__field {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.25rem 0.25rem 0.25rem 1.25rem;
  transition: border-color 0.2s ease;
}

.footer-newsletter__field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}

.footer-newsletter__field input[type="email"] {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text-light);
  font-size: 0.95rem;
  min-width: 0;
}

.footer-newsletter__field input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer-newsletter__field button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
  white-space: nowrap;
}

.footer-newsletter__field button[type="submit"]:hover {
  background: var(--primary-hover);
  transform: translateX(2px);
}

/* Statusmeddelande efter anmälan (assets/js/newsletter.js) */
.footer-newsletter__message {
  margin: 0.6rem 0 0 1.25rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
}

/* Ljusare toner för bättre kontrast mot den mörka footern. */
.footer-newsletter__message.is-success {
  color: color-mix(in srgb, var(--success, #10b981) 75%, #fff);
}

.footer-newsletter__message.is-error {
  color: color-mix(in srgb, var(--error, #ef4444) 65%, #fff);
}

.footer-newsletter__form.is-loading button[type="submit"] {
  opacity: 0.6;
  cursor: progress;
}

.footer-newsletter__field:has(input[aria-invalid="true"]) {
  border-color: color-mix(in srgb, var(--error, #ef4444) 65%, #fff);
}

.footer-newsletter__disclaimer {
  margin: 0.6rem 0 0 1.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 767px) {
  .footer-retail__content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .footer-retail .footer-retail__columns {
    gap: 0.35rem;
  }

  .footer-retail .footer-retail-accordion {
    width: min(100%, 30rem);
    margin-inline: auto;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .footer-retail .footer-retail-accordion-heading {
    margin: 0;
    font-size: 0.9rem;
  }

  .footer-retail .footer-retail-accordion-toggle {
    min-height: 2rem;
    cursor: pointer;
  }

  .footer-retail__columns > div:last-child > h4 {
    margin: 1rem 0 0.65rem;
    font-size: 1rem;
    line-height: 1.3;
  }

  .footer-retail__columns > div:last-child > .space-y-3 > * + * {
    margin-top: 0.55rem;
  }

  .footer-retail__columns > div:last-child .pt-10 {
    padding-top: 1.1rem;
  }

  .footer-retail__columns > div:last-child .pt-10 h4 {
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .footer-retail__columns > div:last-child .pt-10 > div > ul {
    row-gap: 0.2rem;
  }

  .footer-retail__columns > div:last-child .footer-social {
    margin-top: 0.9rem;
    padding-top: 0.75rem;
  }

  .footer-retail-accordion-chevron {
    display: block;
    width: 0.45rem;
    height: 0.45rem;
  }

  .footer-retail-accordion-panel:not([hidden]) {
    padding-top: 0.75rem;
  }

  .footer-newsletter {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .footer-newsletter__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-newsletter__form {
    width: 100%;
  }
}

/* ========================================================================== */

.footer-retail-special-hours-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.2s ease;
}

.footer-retail-special-hours-trigger:hover {
  opacity: 0.8;
}

.footer-retail-modal[hidden] {
  display: none;
}

.footer-retail-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
}

.footer-retail-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.footer-retail-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 540px);
  margin: min(14vh, 110px) auto 0;
  padding: 1.5rem 1.5rem 1.25rem;

  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  outline: none;
}

.footer-retail-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
}

.footer-retail-modal__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-retail-modal__title {
  margin: 0 0 1rem;
  color: var(--text-light);
  font-size: 1.8rem;
  font-weight: 700;
}

.footer-retail-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.footer-retail-modal__item {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.25rem;
}

.footer-retail-modal__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.footer-retail-modal__item-label {
  color: var(--text-light);
  font-weight: 600;
}

.footer-retail-modal__item-value {
  color: rgba(255, 255, 255, 0.78);
}

body.footer-retail-modal-open {
  overflow: hidden;
}

/* Footer Menu List Styling */
.footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu-list li {
  margin-bottom: 0.5rem;
}

.footer-menu-list li a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu-list li a:hover {
  color: var(--primary);
}

/* Footer Logo */
.footer-logo {
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-retail .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}
