/**
- All of the CSS for your public-facing functionality should be
- included in this file.
 */

*, *::before, *::after {
    box-sizing: border-box;
}

html > .single-product {
    background-color: #F9F9F9;
}

.single-product .breadcrumbs {
    margin-top: 20px;
}

#primary {
    margin-top: 57px;
}

.glass-product-layout-wrapper {
    float: left;
    width: 100%;
}

.header-info h3 {
    font-size: 25px;
    color: #16151A;
    line-height: 33px;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: normal;
}

input[type="radio"] {
    width: 16px;
    height: 16px;
}

select,
input[type="text"],
input[type="number"] {
    height: 43px;
    border-radius: 4px;
    border: 1px solid #DBDBDB;
    color: #16151A;
    font-size: 16px;
    background-color: #ffffff;
}

.glass-product {
    flex-direction: column;
}

#glass-options-reset {
    cursor: pointer;
    font-weight: 400;
    white-space: nowrap;
    user-select: none;
    background-color: transparent;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all .3s;
    margin-bottom: 14px;
    margin-left: auto;
    margin-right: 0;
    display: none;
    text-align: right;
    color: #535353;
}

.error-text,
.error-text-min-value {
    color: red;
    font-style: italic;
    display: none;
    margin-top: 9px;
}

.product-type-glass .summary > .price {
    font-size: 16px !important;
}

input[type="number"] {
    -moz-appearance: textfield;
}

#width {
    margin-right: 26px;
}

.header-info p {
    font-size: 16px;
    line-height: 24px;
    color: #535353;
}

.product_title {
    font-size: 32px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: normal;
}

.glass-option-container {
    width: 100%;
    border-radius: 10px;
    padding: 21px 26px 26px 19px;
    background-color: #ffffff;
    margin-bottom: 14px;
    position: relative;
    transition-duration: 0.3s;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.glass-option-container > .option-header > .option-status i {
    color: #a7a7a7;
}

/* Voltooide stap: achtergrond groen, tekst wit */
.glass-option-container.completed {
    background-color: #ae8d69;
    height: 72px;
    border: none;
}

.glass-option-container.completed > .option-header > .option-title {
    color: #ffffff;
}

.glass-option-container.completed > .option-header > .option-status i {
    color: #ae8d69;
}

.glass-option-container.disabled {
    background-color: #f2f2f2;
    pointer-events: none;
    box-shadow: none;
    border: none;
}

.option-header,
.option-fields {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.option-header {
    align-content: center;
    margin-bottom: 18px;
}

/* Ingevulde waarde fix: breekt niet meer te vroeg af */
.option-header .given-value {
    color: #868686;
    font-size: 14px;
    margin-left: 30px;
    margin-right: 15px;
    font-weight: normal;
    white-space: nowrap;
    overflow: visible;
}

.glass-option-container.completed .option-header .given-value {
    color: #ffffff;
}

.option-status {
    border: 1px solid #cccccc;
}

.option-status,
.option-information {
    background-color: #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-option-container.disabled .option-status {
    border: 1px solid #cccccc;
}

.option-title {
    margin: 0 10px;
    font-weight: 700;
    color: #16151A;
    font-size: 14px;
    line-height: 26px;
}

.option-fields {
    justify-content: space-between;
    width: 100%;
}

.option-fields-select {
    padding-left: initial;
    padding-top: 8px;
    flex-direction: column;
}

.options-selects {
    display: flex;
    width: 100%;
}

.option-fields-select .options-selects {
    width: 100%;
}

.option-fields select,
.option-fields option {
    font-size: 16px;
    line-height: 24px;
}

.option-fields option {
    color: #000000;
}

.option-fields select:disabled {
    background-color: rgba(0,0,0,.05);
}

.option-fields option:disabled {
    font-style: italic;
    color: #999999;
}

.glass-option-container >.option-fields {
    justify-content: normal;
}

.glass-option-container >.option-fields label {
    margin-right: 46px;
    margin-left: 8px;
    font-size: 16px;
    line-height: 24px;
    color: #535353;
}

#adaption-options {
    padding-left: initial;
    padding-top: 8px;
    flex-direction: column;
}

.adaption-options-selects,
.adaption-options-pp {
    width: 100%;
}

.adaption-options-selects {
    display: flex;
    flex-direction: row;
}

.adaption-options-pp {
    margin-top: 8px;
    display: none;
}

#cut-type,
#vent-option {
    margin-right: 8px;
}

#adaption-addition {
    display: none;
}

.option-close {
    position: absolute;
    top: 5px;
    right: 12px;
    color: #c6c6c6;
    width: 15px;
    cursor: pointer;
}

/* --- Totals Container & Layout --- */
.totals-container {
    color: #ffffff;
    background-color: #16151A;
    font-size: 16px;
    line-height: 24px;
    border-radius: 5px;
    transition-duration: 0.6s;
    opacity: 0;
    height: 0;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.totals-container hr {
    opacity: 0.16;
    color: #ffffff;
    width: 100%;
    margin: 15px 0;
}

.totals-heading {
    padding: 16px 27px 15px 24px;
}

.totals-heading .title {
    font-size: 26px;
    line-height: 33px;
    font-family: 'Playfair Display', Georgia, serif;
}

.totals-content {
    padding: 16px 27px 15px 24px;
}

.totals-line {
    display: none;
    flex-direction: column;
}

.totals-line p {
    margin: 0;
}

.totals-line.price,
.totals-line .price {
    margin: 0 !important;
    display: inline;
}

.totals-line .row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin: 0;
}

.totals-line .text {
    width: auto;
    flex-grow: 1;
    font-weight: 600;
}

/* Prijzen op één regel fix */
.totals-line p {
    font-size: 16px;
    line-height: 10px;
    color: #ffffff !important;
}

.totals-line p:last-of-type {
    width: auto !important;
    text-align: right;
    white-space: nowrap !important;
    flex-shrink: 0;
    margin: 0 !important;
}

.totals-line .price {
    font-weight: 400;
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 10px !important;
}

.totals-line .values p {
    width: 100%;
}

.totals-footer {
    font-weight: 600;
    padding: 16px 27px 15px 24px;
}

/* Formulier Aantal en Knop op één regel fix */
.totals-footer form.cart,
.totals-footer .quantity-button-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap !important;
    gap: 15px;
    margin-top: 20px;
}

.totals-footer .quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Aan-tal tekstterugloop fix */
.totals-footer .quantity label,
.totals-footer label {
    -webkit-hyphens: none !important;
    -moz-hyphens: none !important;
    hyphens: none !important;
    white-space: nowrap !important;
    color: #ffffff;
    display: inline-block;
}

.totals-footer input.qty {
    width: 60px !important;
    padding: 5px 10px;
    text-align: center;
    border-radius: 4px;
}

.totals-footer .total-price-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    line-height: 2;
}

.totals-footer .total-price-block div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap !important;
}

.totals-footer .total-price-block .price del {
    opacity: 1 !important;
}

.totals-footer .total-price-block p {
    margin: 0;
}

/* Totaalprijs afbreek fix */
.totals-footer .total-price-block .price {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: normal !important;
    white-space: nowrap !important;
    margin: 0 !important;
    display: inline-block;
}

.totals-footer .total-price-block .btw {
    font-size: 12px;
    font-weight: normal;
}

/* Bereken/Bestel knop met de nieuwe kleuren */
.totals-footer #calculate-totals {
    background-color: #ae8d69;
    color: #ffffff;
    border: none;
    font-size: 16px;
    margin-top: 0;
    margin-right: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.totals-footer #calculate-totals:hover {
    background-color: rgb(212,179,143);
}

.model-container {
    padding-right: 31px;
}

.model-options {
    display: flex;
    flex-direction: row;
    margin-top: 34px;
}

#model-options {
    display: none;
}

.model-options .img-options {
    width: 172px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-right: 17px;
    height: 100%;
}

.img-options-width {
    width: 100% !important;
    justify-content: normal !important;
}

.model-options .option-img {
    width: 47px;
    height: 47px;
    border: 1px solid #eaeaea;
    margin-bottom: 7px;
    margin-left: 7px;
    cursor: pointer;
}

.img-options-width .option-img {
    width: 60px !important;
    height: 60px !important;
}

.model-options .hidden {
    display: none;
}

.model-options .show_all,
.model-options .show_less {
    width: 100%;
    cursor: pointer;
    text-align: center;
}

.model-options .variable_input {
    margin: 10px 0;
    font-size: 14px;
    width: 100%;
}

#model-options .option-big-image {
    width: 100%;
    height: auto;
    border: 1px solid #eaeaea;
}

.model-options .option-setup {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: 300px;
}

.model-options .option-extra-input {
    width: 100%;
}

.dialog-open,
.dialog-close {
    cursor: pointer;
}

.dialog-open i {
    pointer-events: none;
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1040;
    background-color: #222222;
    opacity: .6;
}

.dialog {
    display: none;
    position: fixed;
    background-color: white;
    border-radius: 9px;
    transition: transform .3s ease-out;
    z-index: 1050;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 662px;
}

.dialog.open {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dialog .dialog-title {
    background-color: #f8f6f4;
    padding: 12px;
    border-radius: 9px 9px 0 0;
    font-weight: bold;
    color: #16151A;
}

.dialog .dialog-title .dialog-close {
    position: absolute;
    right: 12px;
    top: 8px;
    opacity: .6;
}

.dialog .dialog-content {
    padding: 12px;
    min-height: 350px;
}

.dialog .dialog-actions {
    border-top: 1px solid #efedeb;
    padding: 12px;
}

/* Actieknoppen in dialoogvensters met nieuwe kleuren */
.dialog .dialog-actions button {
    border-radius: 100px;
    background-color: #ae8d69;
    color: white;
    padding: 8px 16px;
    border: none;
    margin-left: auto;
    margin-right: 0;
    display: flex;
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dialog .dialog-actions button:hover {
    background-color: rgb(212,179,143);
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #ccc;
}

.tooltip-color-profile {
    width:60px !important;
    height:60px !important;
    border:none;
    margin:0 0 7px 7px;
    cursor: pointer;
}

.tooltip-color-profile i {
    font-size: 60px;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #16151A;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 3px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #16151A transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

@media only screen and (max-width: 1180px) {
    .glass-option-container {
        width: 100%;
        padding: 10px;
    }
}

@media only screen and (max-width: 662px) {
    .glass-option-container > .option-fields label {
        font-size: 16px;
        white-space: nowrap;
    }

    .dialog {
        width: 90%;
    }

    .glass-option-container {
        width: 100%;
        padding: 10px;
    }

    .option-header .option-title {
        max-width: 200px;
    }

    .option-header .given-value {
        margin-left: 8px !important;
    }

    .size-container .option-fields {
        display: flex;
        flex-direction: column;
    }

    .option-fields input[type="number"],
    .option-fields select {
        margin: 0 0 10px 0 !important;
        padding: 5px 10px !important;
    }

    .model-container .option-fields {
        padding: 0;
        display: flex;
        flex-direction: row !important;
    }

    .model-options {
        flex-direction: column;
    }

    .packaging-container .option-fields {
        padding: 0;
    }

    .model-options div {
        margin-bottom: 8px;
    }

    .model-options .img-options {
        width: 100%;
        justify-content: normal;
    }

    .model-options .option-img {
        width: 60px;
        height: 60px;
    }

    .model-options .option-setup {
        max-width: none;
    }

    .option-extra-input {
        margin-left: 0 !important;
    }

    .totals-container {
        width: 100%;
    }
}

/* Dropdown Button met nieuwe kleuren */
.dropbtn {
    background-color: #ae8d69;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
    background-color: rgb(212,179,143);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.show {
    display:block;
}

.product-type-glass .summary .price {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: baseline;
}

.product-type-glass .summary .price span.price {
    margin: 0;
    font-size: inherit;
}

.product-type-glass span.woocommerce-Price-amount.amount {
    margin: 0 5px;
}
