/* Woo Variation Builder frontend selectors */
.wcvb-has-custom-selectors table.variations tbody,
.wcvb-has-custom-selectors table.variations tr,
.wcvb-has-custom-selectors table.variations th,
.wcvb-has-custom-selectors table.variations td {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.wcvb-has-custom-selectors table.variations tr {
    margin: 0 0 22px;
}

.wcvb-has-custom-selectors table.variations th.label {
    padding: 0 0 9px;
    text-align: left;
}

.wcvb-has-custom-selectors table.variations th.label label {
    font-weight: 600;
    margin: 0;
}

.wcvb-has-custom-selectors table.variations td.value {
    padding: 0;
}

.wcvb-native-select-wrap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.wcvb-choice-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.wcvb-choice {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    padding: 4px;
    margin: 0;
    min-width: 0;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    box-shadow: none;
}

.wcvb-choice:hover:not(.is-disabled),
.wcvb-choice:focus-visible:not(.is-disabled) {
    border-color: currentColor;
    outline: none;
}

.wcvb-choice.is-selected {
    border-color: currentColor;
}

.wcvb-choice.is-disabled {
    opacity: .3;
    cursor: not-allowed;
}

.wcvb-choice-visual {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 2px #fff;
}

.wcvb-choice.is-selected .wcvb-choice-visual {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 2px #fff, 0 0 0 4px currentColor;
}

.wcvb-design-visual {
    width: 46px;
    height: 46px;
    border-radius: 7px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.wcvb-design-empty {
    background: repeating-linear-gradient(45deg, #eee, #eee 5px, #ddd 5px, #ddd 10px);
}

.wcvb-choice-name {
    display: block;
    max-width: 88px;
    font-size: 12px;
    text-align: center;
    overflow-wrap: anywhere;
}

.wcvb-size-choice {
    min-width: 48px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid rgba(0, 0, 0, .22);
    border-radius: 6px;
    flex-direction: row;
    justify-content: center;
    font-weight: 600;
    background: #fff;
}

.wcvb-size-choice:hover:not(.is-disabled),
.wcvb-size-choice:focus-visible:not(.is-disabled) {
    border-color: currentColor;
}

.wcvb-size-choice.is-selected {
    background: #111;
    border-color: #111;
    color: #fff;
}

.wcvb-has-custom-selectors .reset_variations {
    display: inline-block;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .wcvb-choice-list { gap: 8px; }
    .wcvb-choice-visual { width: 32px; height: 32px; }
    .wcvb-design-visual { width: 42px; height: 42px; }
    .wcvb-size-choice { min-width: 44px; min-height: 40px; padding: 8px 10px; }
}
