.fs-color-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 8px auto 2px;
  min-height: 18px;
}

.fs-color-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(17, 24, 39, .28);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .14);
  box-sizing: border-box;
}

.fs-color-swatches::after {
  content: "vice barev";
  margin-left: 2px;
  color: #64748b;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.fs-color-detail {
  position: relative !important;
  clear: both;
  display: block;
  max-width: 520px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
  box-sizing: border-box;
  overflow: hidden;
}

.fs-color-detail-title {
  display: block;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.fs-color-detail-hint {
  margin: 0 0 13px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.fs-color-detail-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.fs-color-section-label {
  margin: 12px 0 8px;
  color: #111827;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
  text-transform: uppercase;
}

.fs-color-detail-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #fff !important;
  color: #111827 !important;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.fs-color-detail-swatch:hover {
  border-color: #f6c400;
  background: #fffbea !important;
  box-shadow: 0 0 0 2px rgba(246, 196, 0, .28);
  transform: translateY(-1px);
}

.fs-color-detail-swatch.is-selected {
  border-color: #111827;
  background: #f6c400 !important;
  color: #111827 !important;
  box-shadow: 0 0 0 3px rgba(246, 196, 0, .36), 0 10px 22px rgba(15, 23, 42, .14);
}

.fs-color-detail-swatch.is-selected::after {
  content: "";
  color: #111827;
  font-size: 10px;
  font-weight: 900;
}

.fs-color-detail-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(17, 24, 39, .28);
  border-radius: 999px;
  box-sizing: border-box;
}

.fs-color-detail-name {
  display: block;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.fs-color-detail-selected {
  margin-top: 11px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.fs-color-detail-selected strong {
  color: #111827;
  font-weight: 900;
}

.fs-size-groups {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.fs-size-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.fs-size-group-title {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.2;
  text-transform: uppercase;
}

.fs-size-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.fs-size-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff !important;
  color: #111827 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: 0 !important;
  text-shadow: none !important;
  font-family: inherit !important;
  font-size: 15px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
  box-sizing: border-box;
}

.fs-size-option:hover:not(:disabled) {
  border-color: #f6c400;
  background: #fffbea !important;
  box-shadow: 0 0 0 2px rgba(246, 196, 0, .36);
  transform: translateY(-1px);
}

.fs-size-option.is-selected {
  border-color: #111827;
  background: #f6c400 !important;
  color: #111827 !important;
  box-shadow: 0 0 0 3px rgba(246, 196, 0, .42), 0 10px 22px rgba(15, 23, 42, .16);
}

.fs-size-option:disabled {
  opacity: .32;
  cursor: not-allowed;
  box-shadow: none;
}

.fs-variant-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 13px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: #f6c400;
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  cursor: pointer;
}

.fs-variant-add:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.fs-variant-status {
  min-height: 16px;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.fs-native-variant-button-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.fs-color-native-product-variants-hidden,
.fs-color-native-product-label-hidden,
.fs-color-native-product-trigger-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

body.fs-color-adding-variant .fs-color-native-dialog-hidden,
.fs-color-native-dialog-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.fs-color-native-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.fs-color-cart-note {
  display: block;
  margin-top: 5px;
  color: #111827;
  font-size: 12px;
  line-height: 1.35;
}

.fs-color-cart-note strong {
  display: block;
  font-weight: 900;
}

.fs-color-cart-note span {
  display: block;
  color: #334155;
}

body.fs-color-product .fs-compact-variants {
  display: none !important;
}

@media (max-width: 767px) {
  .fs-color-detail {
    display: block !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    float: none !important;
    transform: none !important;
    width: calc(100% - 28px) !important;
    width: min(460px, calc(100% - 28px)) !important;
    max-width: 460px !important;
    margin: 14px auto !important;
    padding: 13px !important;
    clear: both !important;
    min-width: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .fs-color-swatches {
    gap: 4px;
    margin-top: 7px;
  }

  .fs-color-swatch {
    width: 13px;
    height: 13px;
  }

  .fs-color-swatches::after {
    font-size: 10px;
  }

  .fs-color-detail-swatches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .fs-color-detail-swatch {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    padding: 0 10px;
  }

  .fs-size-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .fs-size-option {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    background: #fff !important;
    color: #111827 !important;
    font-size: 13px;
  }

  .fs-size-option.is-selected {
    background: #f6c400 !important;
    color: #111827 !important;
  }
}

@media (max-width: 420px) {
  .fs-color-detail-swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fs-size-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
