/* Contact information, map, and sales centres. */
.eshop-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.eshop-contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--eshop-border);
  border-radius: 16px;
  color: var(--eshop-muted);
  line-height: 1.8;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.eshop-contact-card:has(a) {
  cursor: pointer;
}

.eshop-contact-card:is(:hover, :focus-within) {
  border-color: var(--eshop-main-color-hover);
  box-shadow: var(--eshop-shadow);
  transform: translateY(-4px);
}

.eshop-contact-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.eshop-contact-card a:focus-visible {
  outline: none;
}

.eshop-contact-card i {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  font-size: 22px;
  color: var(--eshop-ink);
  background: var(--eshop-main-color);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(88, 52, 146, .22);
}

.eshop-contact-card h5 {
  font-size: 15px;
  color: var(--eshop-ink);
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.eshop-contact-card p {
  margin: 0;
  font-size: 14px;
}

.eshop-contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--eshop-border);
  color: var(--eshop-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.eshop-contact-card-link i {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: inherit;
  background: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform .2s ease;
}

.eshop-contact-card:is(:hover, :focus-within) .eshop-contact-card-link i {
  transform: translateX(4px);
}

/* Map with an overlaid location card */
.eshop-contact-location {
  margin-top: 44px;
}

.eshop-contact-map {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--eshop-border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--eshop-main-color-light);
  box-shadow: var(--eshop-shadow);
}

.eshop-contact-map iframe {
  display: block;
  width: 100%;
  height: 440px;
  filter: saturate(1.05);
}

.eshop-contact-map-info {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: min(360px, calc(100% - 32px));
  padding: 12px 14px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--eshop-border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(45, 26, 65, .14);
}

.eshop-contact-map-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  font-size: 15px;
  color: var(--eshop-ink);
  background: var(--eshop-main-color);
  border-radius: 9px;
}

.eshop-contact-map-text {
  flex: 1 1 140px;
  min-width: 0;
}

.eshop-contact-map-text h3 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--eshop-ink);
}

.eshop-contact-map-text p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--eshop-muted);
}

.eshop-contact-map-info .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12.5px;
  white-space: nowrap;
}

.eshop-contact-centres {
  margin-top: 64px;
}

.eshop-contact-centres h2 {
  position: relative;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 14px;
  color: var(--eshop-ink);
}

.eshop-contact-centres h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--eshop-main-color);
}

.eshop-contact-branches {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eshop-contact-branches .eshop-contact-card {
  padding: 24px;
}

.eshop-contact-branches .eshop-contact-card i {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  font-size: 18px;
  border-radius: 12px;
}

@media (max-width: 991px) {
  .eshop-contact-grid, .eshop-contact-branches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eshop-contact-map-info {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

@media (max-width: 575px) {
  .eshop-contact-grid, .eshop-contact-branches {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .eshop-contact-card {
    padding: 22px;
  }

  .eshop-contact-location {
    margin-top: 32px;
  }

  .eshop-contact-map,
  .eshop-contact-map iframe {
    min-height: 340px;
    height: 340px;
  }

  .eshop-contact-map-info {
    position: static;
    margin: 0;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--eshop-border);
  }

  .eshop-contact-centres {
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eshop-contact-card,
  .eshop-contact-card-link i {
    transition: none;
  }

  .eshop-contact-card:is(:hover, :focus-within) {
    transform: none;
  }
}
