body.single-product.grunior-woocommerce select.grunior-native-color {
    display: none !important;
}

body.single-product.grunior-woocommerce .grunior-color-picker {
    position: relative;
    width: 100%;
    min-width: 0;
}

body.single-product.grunior-woocommerce .grunior-color-toggle,
body.single-product.grunior-woocommerce .grunior-color-choice {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: .55rem;
    padding: .45rem .65rem;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: var(--grunior-ink);
    font: inherit;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

body.single-product.grunior-woocommerce .grunior-color-toggle {
    border: 1px solid var(--grunior-control);
}

body.single-product.grunior-woocommerce .grunior-color-toggle::after {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-inline-start: auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

body.single-product.grunior-woocommerce .grunior-color-toggle[aria-expanded=true]::after {
    transform: translateY(2px) rotate(225deg);
}

/* Divi adds its native select arrow to every span in a variation cell. */
body.single-product.grunior-woocommerce .et_pb_wc_add_to_cart form.cart .variations td.value :is(
    span:has(> select.grunior-native-color),
    .grunior-color-picker span
)::after {
    content: none;
}

body.single-product.grunior-woocommerce .grunior-color-name {
    overflow-wrap: anywhere;
}

body.single-product.grunior-woocommerce .grunior-color-dot {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    border: 1px solid #0004;
    border-radius: 50%;
}

body.single-product.grunior-woocommerce .grunior-color-dot[hidden],
body.single-product.grunior-woocommerce .grunior-color-options[hidden] {
    display: none !important;
}

body.single-product.grunior-woocommerce .grunior-color-options {
    position: absolute;
    z-index: 60;
    top: 100%;
    inset-inline: 0;
    max-height: min(18rem, 50vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--grunior-control);
    background: #fff;
    box-shadow: 0 6px 18px #173a2e26;
}

body.single-product.grunior-woocommerce .grunior-color-choice[aria-selected=true],
body.single-product.grunior-woocommerce .grunior-color-choice:not(:disabled):hover {
    background: var(--grunior-sage);
}

body.single-product.grunior-woocommerce .grunior-color-choice:focus-visible {
    outline-offset: -3px;
}

body.single-product.grunior-woocommerce :is(.grunior-color-toggle, .grunior-color-choice):disabled {
    opacity: .55;
    cursor: default;
}
