/* Real non-native, accessible single-select for BR Commerce storefront.
   No OS select popup, no external UI package; merchant theme tokens preserved. */
[data-commerce-product-detail] .commerce-choice-group,
[data-commerce-product-detail] .commerce-variant-shell {
    overflow:visible;
}
[data-commerce-product-detail] .commerce-choice-group:has(.commerce-dropdown.is-open) {
    position:relative;
    z-index:42;
}
[data-commerce-product-detail] [data-product-purchase] {
    isolation:auto;
}
[data-commerce-product-detail] .commerce-dropdown {
    position:relative;
    min-width:0;
    width:100%;
    margin:9px 0 6px;
    z-index:1;
}
[data-commerce-product-detail] .commerce-dropdown.is-open {
    z-index:50;
}
[data-commerce-product-detail] .commerce-dropdown-trigger {
    width:100%;
    min-height:55px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    padding:11px 16px;
    border:1px solid #dfe4e8;
    border-radius:14px;
    background:#fff;
    color:#273c55;
    box-shadow:0 2px 9px rgba(20,40,65,.035);
    font-family:inherit;
    font-size:14px;
    text-align:left;
    line-height:1.4;
    cursor:pointer;
    transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
[data-commerce-product-detail] .commerce-dropdown-current {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:6px 11px;
    min-width:0;
    word-break:break-word;
    overflow-wrap:anywhere;
}
[data-commerce-product-detail] [data-dropdown-selection] {
    min-width:0;
    font-weight:500;
}
[data-commerce-product-detail] .commerce-dropdown.is-selected [data-dropdown-selection] {
    font-weight:650;
    color:#183448;
}
[data-commerce-product-detail] [data-dropdown-selection-extra] {
    padding:4px 8px;
    border-radius:7px;
    font-size:11px;
    line-height:1.3;
    font-weight:650;
    letter-spacing:.01em;
    color:var(--merchant-primary,#256788);
    background:color-mix(in srgb,var(--merchant-primary,#256788) 9%,white);
    font-variant-numeric:tabular-nums;
}
[data-commerce-product-detail] [data-dropdown-selection-extra][hidden] {display:none!important}
[data-commerce-product-detail] .commerce-dropdown-chevron {
    display:block;
    width:19px;
    height:19px;
    min-width:19px;
    color:#698094;
    transition:transform .22s cubic-bezier(.2,.8,.2,1),color .22s;
}
[data-commerce-product-detail] .commerce-dropdown.is-open .commerce-dropdown-chevron{
    transform:rotate(180deg);
    color:var(--merchant-primary,#256788);
}
[data-commerce-product-detail] .commerce-dropdown-trigger:hover {
    border-color:#a5b8c5;
    background:#fff;
}
[data-commerce-product-detail] .commerce-dropdown-trigger:focus-visible{
    outline:2px solid var(--merchant-primary,#256788);
    outline-offset:3px;
}
[data-commerce-product-detail] .commerce-dropdown.is-open .commerce-dropdown-trigger {
    border-color:var(--merchant-primary,#256788);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--merchant-primary,#256788) 11%,transparent);
}
[data-commerce-product-detail] .commerce-dropdown.is-invalid .commerce-dropdown-trigger{
    border-color:#c74b5d;
}
[data-commerce-product-detail] .commerce-dropdown-menu {
    position:relative;
    inset:auto;
    width:100%;
    min-width:0;
    z-index:auto;
    margin-top:8px;
    padding:6px;
    max-height:min(300px,50vh);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    border:1px solid #e3e7e9;
    border-radius:15px;
    box-shadow:0 5px 19px rgba(17,43,65,.055);
    background:#fff;
    animation:commerce-dropdown-reveal .18s cubic-bezier(.2,.8,.2,1) both;
}
[data-commerce-product-detail] .commerce-dropdown-menu[hidden]{
    display:none!important;
}
@keyframes commerce-dropdown-reveal{
    from{opacity:.35;transform:translateY(-5px)}
    to{opacity:1;transform:translateY(0)}
}
[data-commerce-product-detail] .commerce-dropdown-option{
    display:flex;
    width:100%;
    min-height:54px;
    padding:11px 12px;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    border:0;
    border-radius:10px;
    background:transparent;
    color:#263c53;
    font-family:inherit;
    text-align:left;
    cursor:pointer;
    transition:background .16s ease, color .16s ease;
}
[data-commerce-product-detail] .commerce-dropdown-option + .commerce-dropdown-option{
    margin-top:2px;
}
[data-commerce-product-detail] .commerce-dropdown-option-copy{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:4px;
}
[data-commerce-product-detail] .commerce-dropdown-option-title{
    font-size:13px;
    line-height:1.35;
    font-weight:550;
    overflow-wrap:anywhere;
}
[data-commerce-product-detail] .commerce-dropdown-option-price{
    font-size:12px;
    line-height:1.2;
    color:#788493;
    font-variant-numeric:tabular-nums;
}
[data-commerce-product-detail] .commerce-dropdown-check{
    width:19px;
    height:19px;
    flex:none;
    color:var(--merchant-primary,#256788);
    opacity:0;
}
[data-commerce-product-detail] .commerce-dropdown-option[aria-selected="true"] {
    background:color-mix(in srgb,var(--merchant-primary,#256788) 9%,white);
}
[data-commerce-product-detail] .commerce-dropdown-option[aria-selected="true"] .commerce-dropdown-option-title{
    font-weight:700;
    color:var(--merchant-primary,#256788);
}
[data-commerce-product-detail] .commerce-dropdown-option[aria-selected="true"] .commerce-dropdown-check{
    opacity:1;
}
[data-commerce-product-detail] .commerce-dropdown-option.is-active,
[data-commerce-product-detail] .commerce-dropdown-option:hover {
    background:#edf4f7;
}
[data-commerce-product-detail] .commerce-dropdown-option.is-active{
    outline:1px solid color-mix(in srgb,var(--merchant-primary,#256788) 23%,transparent);
    outline-offset:-1px;
}
[data-commerce-product-detail] .commerce-dropdown-option-clear {
    min-height:45px;
    background:#f8f9f9;
    color:#697887;
    border-bottom:1px solid #eff0f0;
}
[data-commerce-product-detail] .commerce-dropdown-option-clear .commerce-dropdown-option-title{
    font-weight:500;
    font-size:12px;
}
[data-commerce-product-detail] .commerce-dropdown-error {
    margin:7px 1px 0;
    padding-left:2px;
    color:#b6314d;
    font-size:12px;
    line-height:1.45;
    font-weight:550;
}
[data-commerce-product-detail] .commerce-dropdown-error[hidden]{
    display:none!important;
}
[data-commerce-product-detail] .commerce-variant-label{
    display:block;
    margin:8px 0 5px;
}
[data-commerce-product-detail] [data-dropdown-kind="variant"]{
    margin-bottom:16px;
}
@media(max-width:639px){
    [data-commerce-product-detail] .commerce-dropdown-trigger{
        min-height:52px;
        padding:10px 13px;
        border-radius:12px;
        font-size:13px;
    }
    [data-commerce-product-detail] .commerce-dropdown-menu{
        border-radius:13px;
        max-height:min(285px,46vh);
    }
    [data-commerce-product-detail] .commerce-dropdown-option{
        min-height:51px;
        padding:11px 12px;
    }
    [data-commerce-product-detail] .commerce-dropdown-option-price{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
    [data-commerce-product-detail] .commerce-dropdown *,
    [data-commerce-product-detail] .commerce-dropdown-trigger{
        transition:none!important;
        animation:none!important;
    }
}