/* Designer's Woodmart product form. Domain behaviour stays in the plugin. */
.timber-configurator {
    --timber-label-width: 139px;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    min-width: 0;
    color: var(--wd-text-color, #777);
}
.timber-configurator .timber-configurator__price {
    border: 0;
    padding: 0;
    margin: 0 0 4px;
    min-height: 62px;
}
.timber-configurator .timber-configurator__price-value,
.timber-configurator .timber-configurator__starting-price {
    color: var(--wd-primary-color, #9fc3c5);
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.timber-configurator .timber-configurator__price-message,
.timber-configurator .timber-configurator__price-total { font-size: 14px; line-height: 1.5; margin-top: 6px; }
.timber-configurator .timber-configurator__group { display: block; width: 100%; }
.timber-configurator .timber-configurator__group > legend {
    float: left;
    width: var(--timber-label-width);
    padding: 5px 20px 0 0;
    margin: 0;
}
.timber-configurator .timber-configurator__group > .timber-configurator__choices { margin-left: var(--timber-label-width); }
.timber-configurator .timber-configurator__field {
    display: grid;
    grid-template-columns: var(--timber-label-width) minmax(0, 1fr);
    align-items: center;
    gap: 0;
}
.timber-configurator legend,
.timber-configurator .timber-configurator__field > label {
    font-family: var(--wd-text-font, "Google Sans", Arial, Helvetica, sans-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--wd-title-color, #242424);
}
.timber-configurator .timber-configurator__field > label { padding-right: 20px; margin: 0; }
.timber-configurator legend::after,
.timber-configurator .timber-configurator__field > label::after { content: ':'; }
.timber-configurator .timber-configurator__choices { gap: 10px 15px; align-items: center; }
.timber-configurator .timber-configurator__choice > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 0 7px;
    border: 1px solid var(--brdcolor-gray-300, #e5e5e5);
    border-radius: 5px;
    color: var(--wd-title-color, #242424);
    font-size: 14px;
    font-weight: 600;
    line-height: 33px;
    transition: border-color .15s, box-shadow .15s;
}
.timber-configurator .timber-configurator__choice:hover > span { border-color: #999; }
.timber-configurator .timber-configurator__choice input:checked + span {
    border-color: var(--color-gray-500, #777);
    box-shadow: inset 0 0 0 1px var(--color-gray-500, #777);
    background: transparent;
}
.timber-configurator .timber-configurator__choice input:disabled + span { opacity: .5; cursor: wait; }
.timber-configurator .timber-configurator__choice input:focus-visible + span { outline: 2px solid #383e42; outline-offset: 4px; }
.timber-configurator [data-choice-group=window_type] .timber-configurator__choices { gap: 10px 15px; }
.timber-configurator [data-choice-group=window_type] .timber-configurator__choice > span { padding: 2px; width: 45px; height: 45px; }
.timber-configurator .timber-choice-icon { display: block; width: 39px; height: 39px; }
.timber-configurator[data-category=door] [data-choice-group=door_variant] .timber-configurator__choice > span,
.timber-configurator[data-category=door] [data-choice-group=glass] .timber-configurator__choice > span {
    width: 45px; height: 45px; padding: 0;
}
.timber-configurator[data-category=door] .timber-choice-door-icon { width: 24px; height: 24px; }
.timber-configurator[data-category=door] [data-choice-group=door_variant] .timber-configurator__choices {
    display: grid; grid-template-columns: repeat(4, 45px); gap: 10px 15px;
}
.timber-configurator[data-category=door] [data-choice-group=door_variant] .timber-choice-door-icon { width: 39px; height: 39px; }
.timber-configurator .timber-configurator__selected-choice {
    margin: 8px 0 0 var(--timber-label-width); font-size: 13px; line-height: 1.5;
}
.timber-configurator [data-choice-group=color] .timber-configurator__choice > span { padding: 2px; width: 35px; height: 35px; }
.timber-configurator .timber-choice-color { display: block; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 5px; }
.timber-configurator .timber-configurator__choice .screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.timber-configurator .timber-configurator__dimensions { display: grid; grid-template-columns: 1fr; gap: 20px; }
.timber-configurator select {
    width: 100%; max-width: 260px; min-width: 0; height: 42px;
    padding-inline-start: 15px; padding-inline-end: 30px;
    border: 1px solid var(--brdcolor-gray-300, #e5e5e5); border-radius: 4px;
    background-color: #fff; font-size: 14px; line-height: 1.4;
}
.timber-configurator select:disabled { opacity: .65; }
.timber-configurator .timber-configurator__glazing { margin: -12px 0 0 var(--timber-label-width); font-size: 13px; line-height: 1.5; }
.timber-configurator .timber-configurator__size-guide { margin: -8px 0 0 var(--timber-label-width); }
.timber-configurator .timber-configurator__quantity input { height: 42px; width: 72px; border-radius: 4px; }
.timber-configurator[data-category=door] .timber-configurator__quantity-control {
    display: inline-flex; width: max-content; max-width: 100%; height: 42px;
    border: 1px solid var(--brdcolor-gray-300, #e5e5e5); border-radius: var(--wd-form-brd-radius, 4px); overflow: hidden;
    background: #fff;
}
.timber-configurator[data-category=door] .timber-configurator__quantity-control input {
    width: 42px; max-width: 42px; height: 40px; padding: 0; margin: 0; border: 0;
    border-radius: 0; text-align: center; background: transparent; appearance: textfield; font-size: 14px;
}
.timber-configurator[data-category=door] .timber-configurator__quantity-control input::-webkit-inner-spin-button,
.timber-configurator[data-category=door] .timber-configurator__quantity-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.timber-configurator[data-category=door] .timber-configurator__quantity-step {
    display: grid; place-items: center; width: 30px; min-width: 30px; height: 40px; min-height: 0;
    margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font-size: 18px; box-shadow: none;
}
.timber-configurator[data-category=door] .timber-configurator__quantity-step:hover:not(:disabled) { background: var(--bgcolor-gray-200, #f4f4f4); }
.timber-configurator .timber-configurator__status { font-size: 13px; margin: -12px 0; }
.timber-configurator .timber-configurator__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.timber-configurator .timber-configurator__actions button {
    min-height: 42px; padding: 5px 20px; border: 0; border-radius: 5px;
    font-size: 13px; font-weight: 500; text-transform: none;
}
.timber-configurator .timber-configurator__purchase { background: var(--btn-accented-bgcolor, #ffca19); color: var(--btn-accented-color, #242424); }
.timber-configurator .timber-configurator__buy-now { background: #333; color: #fff; }
.timber-configurator .timber-configurator__actions button:hover:not(:disabled) { filter: brightness(.95); }
.timber-configurator .timber-configurator__cart-status:empty { display: none; }
.timber-configurator .timber-configurator__cart-status { margin: 0; }
@container (max-width: 420px) {
    .timber-configurator .timber-configurator__price-value,
    .timber-configurator .timber-configurator__starting-price { font-size: 32px; }
    .timber-configurator .timber-configurator__group > legend { float: none; width: auto; padding: 0; margin-bottom: 12px; }
    .timber-configurator .timber-configurator__group > .timber-configurator__choices { margin-left: 0; }
    .timber-configurator .timber-configurator__field { grid-template-columns: 1fr; gap: 10px; }
    .timber-configurator legend, .timber-configurator .timber-configurator__field > label { font-size: 16px; }
    .timber-configurator .timber-configurator__choices { gap: 12px; }
    .timber-configurator .timber-configurator__choice > span { font-size: 14px; }
    .timber-configurator [data-choice-group=window_type] .timber-configurator__choices { gap: 10px; }
    .timber-configurator [data-choice-group=window_type] .timber-configurator__choice > span { width: 45px; height: 45px; }
    .timber-configurator .timber-choice-icon { width: 39px; height: 39px; }
    .timber-configurator[data-category=door] .timber-choice-door-icon { width: 24px; height: 24px; }
    .timber-configurator .timber-configurator__selected-choice { margin-left: 0; }
    .timber-configurator select { max-width: none; font-size: 16px; }
    .timber-configurator .timber-configurator__size-guide, .timber-configurator .timber-configurator__glazing { margin-left: 0; }
}
@container (max-width: 290px) {
    .timber-configurator .timber-configurator__actions { grid-template-columns: 1fr; }
    .timber-configurator .timber-configurator__choices { gap: 8px; }
    .timber-configurator[data-category=door] [data-choice-group=glass] .timber-configurator__choices { gap: 6px; }
}
