:root{
    --is-mobile:0;
}
.molding-menu-header{display:none}
.wrapper{
    width:90%;
    max-width:1100px;
    margin: 0 auto;
    display:flex;
    flex-direction: column;
    gap: 1.5rem;

}



.order-item{
    font-size:1.5rem;
    font-weight:600;
    line-height:1.4;
}
.options-wrapper{
    width: 100%;           /* dial this up/down as you like (800–1000px) */
    margin: 0 auto;             /* centers it */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    }

.stock-custom-option-wrapper{

    background: #FEFEFE;
    background: linear-gradient(0deg, rgba(254, 254, 254, 1) 0%, rgba(81, 81, 81, 1) 100%);
    height: 243px;
    margin-top: -1.5rem;
}
.stock-custom-option-selected{
    background: var(--button-bright);
    border: 2px solid var(--button-dark) !important;
}
.stock-custom-option-deselected{
    background: rgba(0,0,0,0.06);
    filter: brightness(50) blur(1px);
    border: 2px solid #fff;
}
.stock-custom-option-deselected:hover{
    background: none !important;
}
.stock-custom-bgd{
    background: var(--button-bright);
}

.stock-custom-buttons-wrapper{
    display: flex;
    flex-direction: row;
}


.stock-custom-title{
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    background: var(--bgd-dark);
    color: var(--text-light);
    padding: .5rem 1rem;
    margin: -1rem 0;
}

#stock-items, #custom-items {
    margin: 20px auto;
    height:160px;
    width: 300px;
    text-align: center;
    border: var(--border-subtle-dark);
    border-radius: 5px;
    box-shadow: var(--shadow-1);
    cursor: pointer;

}
#stock-items:hover, #custom-items:hover {
    /*background: var(--button-bright);*/
    border: var(--border-light);
    box-shadow: var(--shadow-2);
}



#custom-items-button, #stock-items-button {
    margin: 5px auto;
    border: none;
    background:none;
    pointer-events: none;
}


.order-form-icons{
    width: 100px;
    height:100px;
    /*background: transparent;*/
}

.option-display{
    padding: 1.5rem;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
}
.option-frame{
    /*display: flex;*/
    flex: 0 0 250px;       /* fixed-ish width for the profile image */
    align-items: center;
    justify-content: center;
}

/*.option-frame .option-svg {*/
/*    max-width: 100%;*/
/*    max-height: 100%;*/
/*    !* Let the SVG keep its intrinsic aspect ratio *!*/
/*    display: block;*/
/*    filter: grayscale(50%);*/
/*}*/

.option-svg{
    max-width: 150px;
    /*was 300px*/
    max-height: 150px;
    /*was 200px*/
}

.option-frame img,
.option-frame svg {
    max-width: 100px;
    height: auto;
    display: block;
}

.option-selections{
    /*display: inline-block;*/
    /*margin-top:auto;*/
    vertical-align: text-bottom;
    /*margin-left:2rem;*/
}


.order-option{
    /*display:flex;*/
    /*flex-direction:column;*/
    font-size:1rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    width: 100%;
}

.order-option.is-hidden{
    display:none;
}
.option-dropdown label{
    margin-bottom:-21px;
    z-index:2;
    display:inline-block;
    color: var(--ptext-bright);
    font-size: .85rem;
    height:1.25rem;
    width:100%;
    background: #535353;
    /*background: linear-gradient(0deg,rgba(83, 83, 83, 1) 0%, rgba(209, 209, 209, 0.6) 100%);*/
    text-align: center;
    border-radius: 5px 5px 0 0;
}

.option-dropdown.has-selection .option-dropdown-label {
    font-weight: 600;
    color: var(--ttext-selected);
}

.option-modal label {
    margin-bottom:-5px;
    z-index:2;
    display:inline-block;
    color: var(--ptext-bright);
    font-size: .85rem;
    height:1.25rem;
    width:100%;
    background: #535353;
    /*background: linear-gradient(0deg,rgba(83, 83, 83, 1) 0%, rgba(209, 209, 209, 0.6) 100%);*/
    text-align: center;
    border-radius: 5px 5px 0 0;
}


.option-label {
    display:inline-block;
    color: var(--ptext-bright);
    font-size: .85rem;
    height:1.25rem;
    width:100%;
    background: #535353;
    /*background: linear-gradient(0deg,rgba(83, 83, 83, 1) 0%, rgba(209, 209, 209, 0.6) 100%);*/
    text-align: center;
    border-radius: 5px 5px 0 0;
    margin-bottom: -1px;
    z-index: 2;
}
.note-modal {
    position: absolute;
    background: #222;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    /*max-width: 250px;*/
    width: 100%;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    display: none;
    z-index: 9999;
}

.note-modal.visible {
    display: block;
}

.of-icon{

}
.option-input{
    height:3.5rem;
    width:100%;
    border-left: 1px solid var(--button-border);
    border-right: 1px solid var(--button-border);
    border-bottom: 1px solid var(--button-border);
    border-radius: 5px;
    font-size: .9rem;
    padding: 0 .75rem;
    text-align: center;
}

#ofDimensionsModal{
    /*display:none;*/
    width: 100%;
    height: 18rem;
    background-color: #FEFEFE;
    z-index: 5;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
}

.ofDimensions-wrapper{
    display: flex;
    flex-direction: row;
    margin:auto;
    gap: 1.2rem;
}

#ofIconDimensions{
    margin-top:auto;
    width: 135px;
    height: 135px;
    background-color: #FEFEFE;
    display:flex;
    flex-direction: column;
}

#ofIconDimensions img{
    /*width: 135px;*/
}

.bigOfIcon{
    width: 300px !important;
    height: 150px !important;
}

#dimensionsText.has-selection{
    font-weight: 600;
    color: var(--ttext-selected);
}

.dimensions-group{
    display: flex;
    flex-direction: column;
    margin:auto;
    padding-top: 1.5rem;
}

#arch-rise-wrap{
    width: 175px;
    height: 46px;
    margin: 3px auto;
}

#arch-rise-wrap label{
    width:175px;
}

#arch-width-wrap{
    width: 175px;
    height: 3.5rem;
    margin:3px auto;
}

#arch-width-wrap label{
    width:175px;
}

#archWidth{
    width: 180px;
    height: 46px;
}

#archRise{
    width: 180px;
    height: 46px;
}

.ofDimensions-buttons{
    display:flex;
    flex-direction: row;
    margin-top:3px;
    gap: 2rem;
}

#ofDimensionsOkBtn{
    width: 100%;
    height: 2.5rem;
}
#ofDimensionsCancelBtn{
    width: 100%;
    height: 2.5rem;
}

.visually-hidden{
    display:none !important;
}

/*gpt css*/
.field-group {
    margin-bottom: .5rem;
}
.field-group.is-hidden {
    display: none;
}

.field-group.is-disabled {
    opacity: 0.4;
    pointer-events: none;   /* prevent clicks on dropdown */
}

/* Optional: visual style for disabled quantity input only */
input.is-disabled {
    /*opacity: 0.4;*/
}


.field-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.85rem;
}

/* collapsed trigger: 56px tall */
.option-dropdown {
    position: relative;
    width: 100%;
}

.option-dropdown-toggle {
    width: 100%;
    height: 3.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.9rem;
}

.option-dropdown-label {
    flex: 1;
    /*text-align: left;*/
}

.option-dropdown-arrow {
    margin-left: 0.5rem;
}

/* Dropdown panel */
.option-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 0.25rem;
    box-sizing: border-box;
    z-index: 20;

    /* start hidden */
    display: none;
}

#ofQuantity{
    margin-top: -1.5rem;
}

.option-dropdown.open .option-dropdown-menu {
    display: block;
}

/* Match the height of the dropdown toggle */
.option-dropdown[data-field="length"] .option-card {
    height: 3.5rem;
    display: flex;
    align-items: center;
    padding: 0 12px;
}


/* Cards: ~108px tall total */
.option-card {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.35rem;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    background: #f8f8f8;
    /*min-height: 108px;*/
}

.option-card:last-child {
    margin-bottom: 0;
}

.option-card-icon-wrap {
    flex: 0 0 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.4rem;
}

.option-card-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.option-card-body {
    flex: 1;
    font-size: 0.9rem;
}

.option-card-label {
    font-weight: 600;
    margin-bottom: 0.15rem;
    text-align:center;
}

.option-card-help {
    font-size: 0.85rem;
    color: #555;
    text-align: center;
}

/* hover / selected */
.option-card:hover {
    border-color: #0074d9;
    background: #eef6ff;
}

.option-card.is-selected {
    border-color: #0056a3;
    background: #ddeeff;
}

/* special styling for help card if desired */
.option-card.help-card {
    background: #fffbe8;
    border-style: dashed;
}


.option-card.recommended {
    border: 2px solid var(--accent-color);
    background: var(--accent-border);
}

.sideBySide{
    display: flex;
    flex-direction: row;
    gap:1.3rem;
    /*margin-top: 20px;*/
}

.has-error-border {
    border: 2px solid var(--important) !important;
}

.field-error {
    color: var(--important);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.svg-rev{
    transform: rotate(90deg) scaley(-1);
    transform-origin: center;
}

.fms-button{
    height: 3.5rem;
    margin:0;
}




.optional-meta {
    /*margin-top: 1.5rem;*/
}

.optional-meta-toggle {
    background: none;
    border: none;
    padding: 0;
    color: var(--button-dark);
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.optional-meta-toggle:hover {
    text-decoration: underline;
}

.optional-meta-fields {
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    display: grid;
    gap: 1.75rem;
}

.optional-meta-fields input,
.optional-meta-fields textarea {
    border: none;
    border-bottom: 1px solid var(--text-dark);
    border-right: 1px solid var(--text-dark);
    border-radius: 0.2rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    background: var(--text-light);
}

.optional-meta-fields input:focus,
.optional-meta-fields textarea:focus {
    outline: none;
    border-bottom-color: var(--text-dark);
    background: white;
}
.optional-meta-fields textarea {
    resize: vertical;
    max-height: 6rem;
}
.fms-button{
    width: 100%;
}

.info-note{
    display:flex;
    gap:.75rem;
    padding:.75rem 1rem;
    margin-top:1rem;
    background:#f8f9fa;
    border-radius:4px;
    font-size:.95rem;
}
.info-note-icon{
    flex-shrink:0;
}

@media (max-width: 767px) {
    :root{
        --is-mobile:1;
        --mobile-nav-height: 64px;
    }

    .length-options {
        /*padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));*/
    }

    .option-dropdown-menu{
        position: fixed;
        width:90%;
        left: 5%;
        right: 1.9rem;
        top: auto;
        bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 0.75rem);

        max-height: calc(
                100dvh - var(--mobile-nav-height) - env(safe-area-inset-bottom) - 2rem
        );

        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .option-display {
        flex-direction: column;
        text-align: center;
    }

    .option-svg{
        max-width:200px;
        max-height: 100px;
    }

    .option-frame {
        flex: 0 0 auto;
    }
    .stock-custom-buttons-wrapper{
        /*flex-direction: column;*/
        column-gap: .5rem    ;
        margin: 2px;
    }

    .stock-custom-title{
        /*display: none;*/
    }

    .stock-custom-option-wrapper{
        height: 100%;

        background: linear-gradient(0deg, var(--bgd-light) 0%, rgba(81, 81, 81, 1) 100%);
    }
    #stock-items, #custom-items{
        height: 75px;
        width: 100%;
        margin: 10px auto;
        padding:7px 0;
        line-height: 1.3;
        border: 1px solid var(--button-bright);

    }
    .order-form-icons{
        height: 50px;
        width: 50px;

    }

    #stock-items-button, #custom-items-button{
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
    }

    #stock-items.has-selection button, #custom-items.has-selection button{
        font-weight: 600;
        color: var(--ttext-selected);
    }
    /*.stock-custom-option-selected{*/
    /*    background: var(--button-bright);*/
    /*    border: 2px solid var(--button-dark) !important;*/
    /*}*/
    /*.stock-custom-option-deselected{*/
    /*    background: rgba(0,0,0,0.06);*/
    /*    !*height: 50px !important;*!*/
    /*    border: 2px solid #fff;*/
    /*    filter: brightness(50) blur(1px);*/
    /*}*/
    #ofDimensionsModal{
        height:405px!important;
    }
    #ofIconDimensions{
        max-height:100px!important;
        max-width:200px!important;
        margin:auto!important;
    }

    .ofDimensions-wrapper{
        flex-direction: column;
    }

    /*after stock/custom items selection*/
    body.has-top-choice #stock-items,
    body.has-top-choice #custom-items {
        height: 50px !important;
        margin: 5px auto !important;
    }

    /* hide subtitles after selection */
    body.has-top-choice #stock-subtitle,
    body.has-top-choice #custom-subtitle {
        display: none !important;
    }

    /* shrink the icon objects after selection */
    body.has-top-choice #stock-icon,
    body.has-top-choice #custom-icon {
        width: 25px !important;
        height: 25px !important;
    }

    /* optional: help alignment when things shrink */
    body.has-top-choice #stock-items-button,
    body.has-top-choice #custom-items-button {
        display: flex;
        align-items: center;
        gap: 12px;
        height: 100%;
    }
    .stock-custom-option-wrapper{
        height:100px;
    }

}