/**
 * PDP configurable text swatch buttons.
 * Default: black text. Selected: theme blue.
 */

.product-info-main .product-options-wrapper .swatch-opt .swatch-attribute-label {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--heading__color__base, #111111);
}

.product-info-main .product-options-wrapper .swatch-opt .swatch-attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    width: 100%;
    margin-top: 1rem;
}

.product-info-main .product-options-wrapper .swatch-opt .swatch-attribute .swatch-option.text {
    min-width: auto;
    min-height: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 1rem 1.6rem;
    border: 2px solid #e5e5e5;
    border-radius: 0.8rem;
    background-color: #ffffff !important;
    color: #111111 !important;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    box-shadow: none !important;
    white-space: nowrap;
    transform: none !important;
}

.product-info-main .product-options-wrapper .swatch-opt .swatch-attribute .swatch-option.text:hover:not(.selected) {
    background-color: #f5f5f5 !important;
    color: #111111 !important;
    border-color: #d0d0d0 !important;
}

.product-info-main .product-options-wrapper .swatch-opt .swatch-attribute .swatch-option.text.selected {
    background-color: #eef4f9 !important;
    color: var(--button-primary__background, #0F436A) !important;
    border-color: var(--button-primary__background, #0F436A) !important;
    box-shadow: none !important;
}

.product-info-main .product-options-wrapper .swatch-opt .swatch-attribute .swatch-option.text.disabled {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 767px) {
    .product-info-main .product-options-wrapper .swatch-opt .swatch-attribute .swatch-option.text {
        padding: 0.9rem 1.2rem;
        font-size: 1.3rem;
        white-space: normal;
        text-align: center;
    }
}
