.srps-switcher {
  --srps-accent: #17a8e3;
  --srps-border: rgba(0, 0, 0, 0.1);
  --srps-text: #20262d;
  --srps-muted: #65717d;
  width: 100%;
  margin-bottom: 1.3em;
  color: var(--srps-text);
}

.srps-switcher__groups {
  display: grid;
  gap: 18px;
}

.srps-switcher__group {
  min-width: 0;
}

.srps-switcher__label {
  margin: 0 0 8px;
  color: var(--srps-text);
  font-size: .95em;
  font-weight: 700;
  line-height: 1.35;
}

.srps-switcher__options {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.srps-switcher__option {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--srps-border);
  border-radius: 6px;
  background: #fff;
  color: var(--srps-text);
  box-shadow: none;
  font: inherit;
  font-size: .92em;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: none;
  -webkit-tap-highlight-color: transparent;
}

.srps-switcher a.srps-switcher__option:not(.is-current):hover {
  z-index: 1;
  border-color: var(--srps-border);
  background-color: #fff;
  color: var(--srps-text);
  box-shadow: none;
  outline: none;
  transform: none;
}

.srps-switcher a.srps-switcher__option:not(.is-current):focus-visible {
  z-index: 1;
  border-color: var(--srps-border);
  background-color: #fff;
  color: var(--srps-text);
  box-shadow: none;
  outline: 2px solid rgba(23, 168, 227, 0.35);
  outline-offset: 2px;
  transform: none;
}

.srps-switcher__option.is-current {
  z-index: 2;
  border: 2px solid #17a8e3;
  background-color: rgba(23, 168, 227, 0.07);
  color: var(--srps-text) !important;
  box-shadow: none;
  cursor: default;
}

.srps-switcher a.srps-switcher__option:active,
.srps-switcher a.srps-switcher__option.is-current,
.srps-switcher a.srps-switcher__option.is-current:hover,
.srps-switcher a.srps-switcher__option.is-current:focus,
.srps-switcher a.srps-switcher__option.is-current:active {
  color: var(--srps-text) !important;
  -webkit-text-fill-color: var(--srps-text);
}


.srps-switcher__option.is-disabled:not(.is-current) {
  border-color: rgba(0, 0, 0, 0.06);
  background: #f3f4f5;
  color: #a8afb5 !important;
  -webkit-text-fill-color: #a8afb5;
  box-shadow: none;
  cursor: not-allowed;
}

.srps-switcher__option--visual.is-disabled:not(.is-current) .srps-switcher__thumb img {
  opacity: .42;
  filter: grayscale(1);
}

.srps-switcher__option--text {
  padding: 10px 14px;
}

.srps-switcher__option--visual {
  flex-direction: column;
  width: 65px;
  min-width: 65px;
  max-width: 65px;
  height: 65px;
  min-height: 65px;
  max-height: 65px;
  padding: 0;
  gap: 0;
  aspect-ratio: 1 / 1;
}

.srps-switcher__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f6f7;
  aspect-ratio: 1 / 1;
}

.srps-switcher__thumb img {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 7px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.srps-switcher__option-label {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.srps-switcher__option--visual .srps-switcher__option-label {
  display: none;
}

.srps-switcher__option.is-out-of-stock:not(.is-current) {
  color: #78838d;
  background: #fafafa;
}

.srps-switcher__option.is-out-of-stock::after {
  position: absolute;
  inset: 50% 7px auto;
  height: 1px;
  background: #aeb6bd;
  content: "";
  transform: rotate(-18deg);
  transform-origin: center;
  pointer-events: none;
}

.srps-switcher__stock-note {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}


@media (max-width: 549px) {
  .srps-switcher {
    margin-top: 16px;
  }

  .srps-switcher__groups {
    gap: 16px;
  }

  .srps-switcher__option--text {
    min-height: 42px;
    padding: 9px 12px;
  }

  .srps-switcher__option--visual {
    width: 65px;
    min-width: 65px;
    max-width: 65px;
    height: 65px;
    min-height: 65px;
    max-height: 65px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .srps-switcher__option {
    transition: none;
  }
}

/* Compact custom dropdown presentation (1.10.1). */
.srps-switcher__group--dropdown {
  position: relative;
}

.srps-switcher__dropdown {
  position: relative;
  width: min(100%, 520px);
}

.srps-switcher__dropdown-trigger {
  box-sizing: border-box;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--srps-border);
  border-radius: 6px;
  background: #fff;
  color: var(--srps-text);
  font: inherit;
  font-size: .92em;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: none;
}

.srps-switcher__dropdown-trigger:hover,
.srps-switcher__dropdown-trigger:focus,
.srps-switcher__dropdown-trigger:active {
  border-color: var(--srps-border);
  background: #fff;
  color: var(--srps-text);
  box-shadow: none;
  outline: none;
}

.srps-switcher__dropdown-trigger:focus-visible,
.srps-switcher__dropdown.is-open .srps-switcher__dropdown-trigger {
  border-color: var(--srps-accent);
  box-shadow: 0 0 0 1px var(--srps-accent);
}

.srps-switcher__dropdown-current-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srps-switcher__dropdown-option-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 5px;
  background: #f5f6f7;
}

.srps-switcher__dropdown-option-thumb img {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 5px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.srps-switcher__dropdown-chevron {
  width: 9px;
  height: 9px;
  margin: -4px 3px 0 auto;
  border-right: 2px solid #4d5964;
  border-bottom: 2px solid #4d5964;
  transform: rotate(45deg);
  transform-origin: center;
}

.srps-switcher__dropdown.is-open .srps-switcher__dropdown-chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

.srps-switcher__dropdown-menu {
  position: absolute;
  z-index: 999;
  top: calc(100% + 6px);
  left: 0;
  box-sizing: border-box;
  width: 100%;
  max-height: 390px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #ccd5dc;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 32, 48, .16);
}

.srps-switcher__dropdown-menu[hidden] {
  display: none !important;
}

.srps-switcher__dropdown-option {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  background: #fff;
  color: var(--srps-text) !important;
  font: inherit;
  font-size: .9em;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  transition: none;
}

.srps-switcher__dropdown--thumbnails .srps-switcher__dropdown-option {
  grid-template-columns: 54px minmax(0, 1fr) 22px;
  min-height: 72px;
  padding: 8px 12px 8px 8px;
}

.srps-switcher__dropdown-option:last-child {
  border-bottom: 0;
}

.srps-switcher__dropdown-option:hover,
.srps-switcher__dropdown-option:focus,
.srps-switcher__dropdown-option:active {
  background: #f7fafc;
  color: var(--srps-text) !important;
  outline: none;
  box-shadow: none;
}

.srps-switcher__dropdown-option:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(23, 168, 227, .45);
}

.srps-switcher__dropdown-option.is-current {
  background: rgba(23, 168, 227, .07);
  color: var(--srps-text) !important;
  cursor: default;
}


.srps-switcher__dropdown-option.is-disabled:not(.is-current) {
  background: #f3f4f5;
  color: #a8afb5 !important;
  cursor: not-allowed;
}

.srps-switcher__dropdown-option.is-disabled:not(.is-current) .srps-switcher__dropdown-option-copy strong,
.srps-switcher__dropdown-option.is-disabled:not(.is-current) .srps-switcher__dropdown-option-copy small {
  color: #a8afb5;
}

.srps-switcher__dropdown-option.is-disabled:not(.is-current) .srps-switcher__dropdown-option-thumb img {
  opacity: .42;
  filter: grayscale(1);
}

.srps-switcher__dropdown-option-thumb {
  width: 54px;
  height: 54px;
}

.srps-switcher__dropdown-option-copy {
  display: block;
  min-width: 0;
}

.srps-switcher__dropdown-option-copy strong,
.srps-switcher__dropdown-option-copy small {
  display: block;
}

.srps-switcher__dropdown-option-copy strong {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.srps-switcher__dropdown-option-copy small {
  margin-top: 3px;
  color: var(--srps-muted);
  font-size: .88em;
  font-weight: 400;
  line-height: 1.35;
}

.srps-switcher__dropdown-check {
  display: none;
  width: 11px;
  height: 6px;
  margin: 0 4px 4px auto;
  border-left: 2px solid var(--srps-accent);
  border-bottom: 2px solid var(--srps-accent);
  transform: rotate(-45deg);
}

.srps-switcher__dropdown-option.is-current .srps-switcher__dropdown-check {
  display: block;
}

.srps-switcher__dropdown-option.is-out-of-stock:not(.is-current) {
  background: #fafafa;
  color: #78838d !important;
}

@media (max-width: 549px) {
  .srps-switcher {
    margin-top: 0;
  }
  .srps-switcher__dropdown {
    width: 100%;
  }
  .srps-switcher__dropdown-menu {
    max-height: 330px;
  }
}
