.cuem-store-switcher {
  --cuem-accent: #176a75;
  --cuem-text: #fff;
  display: inline-block;
  position: relative;
  max-width: 100%;
  margin: 0;
  vertical-align: middle;
  font: inherit;
}

.cuem-store-switcher *,
.cuem-store-switcher *::before,
.cuem-store-switcher *::after {
  box-sizing: border-box;
}

.cuem-store-switcher .cuem-switcher-details {
  position: relative;
}

.cuem-store-switcher .cuem-switcher-trigger,
.cuem-store-switcher .cuem-switcher-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.5rem;
  border: 1px solid var(--cuem-accent);
  border-radius: .5rem;
  padding: .4rem .7rem;
  background: var(--cuem-accent);
  color: var(--cuem-text);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.cuem-store-switcher .cuem-switcher-trigger {
  list-style: none;
  max-width: min(13rem, 100%);
  white-space: nowrap;
}

.cuem-store-switcher .cuem-switcher-trigger::-webkit-details-marker {
  display: none;
}

.cuem-store-switcher .cuem-switcher-trigger svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.cuem-store-switcher .cuem-switcher-current {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cuem-store-switcher .cuem-switcher-chevron {
  font-size: 1.1em;
  line-height: .7;
}

.cuem-store-switcher.cuem-switcher-icon .cuem-switcher-trigger {
  width: 2.5rem;
  padding: .4rem;
}

.cuem-store-switcher.cuem-button-outline .cuem-switcher-trigger,
.cuem-store-switcher.cuem-button-outline .cuem-switcher-apply {
  background: transparent;
  color: var(--cuem-accent);
}

.cuem-store-switcher.cuem-button-minimal .cuem-switcher-trigger,
.cuem-store-switcher.cuem-button-minimal .cuem-switcher-apply {
  background: transparent;
  border-color: transparent;
  color: var(--cuem-accent);
}

.cuem-store-switcher .cuem-switcher-trigger:hover,
.cuem-store-switcher .cuem-switcher-apply:hover {
  filter: brightness(.9);
}

.cuem-store-switcher .cuem-switcher-trigger:focus-visible,
.cuem-store-switcher select:focus-visible,
.cuem-store-switcher .cuem-switcher-apply:focus-visible {
  outline: 2px solid var(--cuem-accent);
  outline-offset: 2px;
}

.cuem-store-switcher .cuem-switcher-panel {
  position: absolute;
  z-index: 9999;
  top: calc(100% + .4rem);
  left: 0;
  width: min(17rem, calc(100vw - 2rem));
  padding: .75rem;
  border: 1px solid #d5d9dc;
  border-radius: .6rem;
  background: #fff;
  color: #252b30;
  box-shadow: 0 .4rem 1.5rem rgb(0 0 0 / .16);
}

.cuem-store-switcher form {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}

.cuem-store-switcher .cuem-switcher-panel form {
  flex-direction: column;
  align-items: stretch;
}

.cuem-store-switcher label {
  font-size: .875em;
  font-weight: 600;
}

.cuem-store-switcher select {
  min-width: 0;
  max-width: 100%;
  min-height: 2.5rem;
  margin: 0;
  border-radius: .4rem;
  font: inherit;
}

.cuem-store-switcher.cuem-switcher-inline form {
  flex-wrap: wrap;
}

.cuem-store-switcher.cuem-switcher-inline select {
  width: min(12rem, 100%);
}

.cuem-store-switcher .cuem-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .cuem-store-switcher .cuem-switcher-trigger {
    max-width: min(11rem, 100%);
  }

  .cuem-store-switcher .cuem-switcher-panel {
    width: min(16rem, calc(100vw - 1rem));
  }
}

.cuem-stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.cuem-store {
  border: 1px solid currentColor;
  border-radius: .45rem;
  padding: 1rem;
}

.cuem-store h2 {
  margin-top: 0;
}

.cuem-store-availability {
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: .35rem;
  padding: .5rem .75rem;
  margin: .75rem 0;
}

.cuem-item-details {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1rem;
  row-gap: .35rem;
  margin: 1rem 0;
}

.cuem-item-details dt {
  font-weight: 600;
}

.cuem-item-details dd {
  margin: 0;
}
