.hdc-swatch-line {
    display: inline-flex;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    align-items: center;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.hdc-swatch-line::-webkit-scrollbar {
    display: none;
}

.hdc-swatch-group {
    display: inline-flex;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--hdc-swatch-gap, 8px);
    margin: 0;
}

body.hdc-single-product-page .hdc-swatch {
    position: relative;
    display: inline-flex;
    box-sizing: border-box;
    min-height: var(--hdc-swatch-height, 38px);
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid var(--hdc-flat-border);
    border-radius: 999px;
    background: var(--hdc-surface);
    color: var(--hdc-text);
    font-family: var(--hdc-font-ui);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}

body.hdc-single-product-page .hdc-swatch--text {
    min-width: var(--hdc-swatch-text-min-width, 56px);
    padding: 7px 11px;
}

body.hdc-single-product-page div.product.hdc-single-product-managed button.hdc-swatch--color {
    width: var(--hdc-swatch-size, 34px) !important;
    min-width: var(--hdc-swatch-size, 34px) !important;
    max-width: var(--hdc-swatch-size, 34px) !important;
    height: var(--hdc-swatch-size, 34px) !important;
    min-height: var(--hdc-swatch-size, 34px) !important;
    max-height: var(--hdc-swatch-size, 34px) !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: var(--hdc-swatch-option-color, transparent) !important;
    background-image: var(--hdc-swatch-option-image, none) !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .13);
}

body.hdc-single-product-page .hdc-swatch--text:hover,
body.hdc-single-product-page .hdc-swatch--text:focus-visible {
    border-color: var(--hdc-primary-hover);
    background: var(--hdc-surface);
    color: var(--hdc-text);
}

body.hdc-single-product-page .hdc-swatch.is-selected {
    border: 2px solid var(--hdc-primary-hover);
    color: var(--hdc-text);
}

body.hdc-single-product-page .hdc-swatch--text.is-selected {
    background: var(--hdc-surface);
}

body.hdc-single-product-page .hdc-swatch:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--hdc-primary-hover) 35%, transparent);
    outline-offset: 2px;
}

body.hdc-single-product-page .hdc-swatch:disabled {
    opacity: .42;
    cursor: not-allowed;
}

body.hdc-single-product-page .hdc-swatch:disabled::after {
    position: absolute;
    width: 1px;
    height: 115%;
    background: currentColor;
    content: "";
    opacity: .5;
    transform: rotate(45deg);
}

.variations select.hdc-select-enhanced {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

body.hdc-single-product-page .hdc-single-product-purchase__form .variations td.value > .reset_variations {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    color: var(--hdc-danger);
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}
