.variations_form.pwigs-native-mode2-form table.variations,
.variations_form.pwigs-native-mode2-form table.variations tbody {
    display: block;
    width: 100%;
}

.variations_form.pwigs-native-mode2-form table.variations tr {
    display: block;
    margin: 0 0 1.25rem;
    border-top: 0 !important;
}

.variations_form.pwigs-native-mode2-form table.variations th.label,
.variations_form.pwigs-native-mode2-form table.variations td.value {
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
}

.variations_form.pwigs-native-mode2-form table.variations th.label {
    margin: 0 0 0.55rem;
    color: #333;
    border-bottom: 1px solid #ececec;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
}

.variations_form.pwigs-native-mode2-form table.variations th.label label {
    display: inline;
    margin: 0;
    font: inherit;
}

.pwigs-native-current-value {
    margin-left: 0.35em;
    color: #888;
    font-weight: 400;
    text-transform: none;
}

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

.pwigs-native-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: flex-start;
    overflow: visible;
}

.pwigs-native-option {
    position: relative;
    display: inline-flex;
    min-width: 3.9rem;
    min-height: 2.65rem;
    margin: 0;
    padding: 0.55rem 0.85rem;
    align-items: center;
    justify-content: center;
    color: #333;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    box-shadow: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    cursor: pointer;
    overflow: visible;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.pwigs-native-option:hover,
.pwigs-native-option:focus {
    color: #111;
    background: #fff;
    border-color: #777;
    box-shadow: none;
}

.pwigs-native-option:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.pwigs-native-option.is-selected {
    border-color: #111;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #111;
}

.pwigs-native-option.is-disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.pwigs-native-option--image {
    width: 3.45rem;
    min-width: 3.45rem;
    height: 3.15rem;
    min-height: 3.15rem;
    padding: 0.18rem;
}

.pwigs-native-option--image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pwigs-native-option-name--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.pwigs-native-tooltip,
.pwigs-native-preview {
    position: absolute;
    z-index: 100;
    display: none;
    pointer-events: none;
}

.pwigs-native-tooltip {
    bottom: calc(100% + 9px);
    left: 50%;
    padding: 0.35rem 0.55rem;
    color: #222;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%);
}

.pwigs-native-preview {
    top: calc(100% + 10px);
    left: 0;
    width: min(260px, calc(100vw - 24px));
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #d5d5d5;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
}

.pwigs-native-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
}

.pwigs-native-preview span {
    display: block;
    padding: 0.45rem 0.15rem 0.1rem;
    color: #222;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.pwigs-native-option.is-previewing .pwigs-native-tooltip,
.pwigs-native-option.is-previewing .pwigs-native-preview {
    display: block;
}

.pwigs-native-option.is-collapsed-hidden {
    display: none;
}

.pwigs-native-toggle {
    display: inline-flex;
    min-height: 2.65rem;
    margin: 0;
    padding: 0.55rem 0.85rem;
    align-items: center;
    justify-content: center;
    color: #333;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    box-shadow: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
}

.pwigs-native-toggle[hidden] {
    display: none;
}

.pwigs-native-toggle:hover,
.pwigs-native-toggle:focus {
    color: #111;
    background: #fff;
    border-color: #777;
    box-shadow: none;
}

.pwigs-native-row.is-expanded .pwigs-native-toggle {
    background: #f7f7f7;
    border-color: #999;
}

.variations_form.pwigs-native-mode2-form .reset_variations {
    display: inline-block;
    margin-top: 0.6rem;
}

.variations_form.pwigs-native-mode2-form .woocommerce-variation-price {
    border-top: 0 !important;
}

@media (max-width: 549px) {
    .pwigs-native-choices {
        gap: 0.55rem;
    }

    .pwigs-native-option,
    .pwigs-native-toggle {
        min-width: 3.6rem;
        padding-right: 0.7rem;
        padding-left: 0.7rem;
    }

    .pwigs-native-option--image {
        min-width: 3.45rem;
        padding: 0.18rem;
    }
}
