/* ---------------------- */
/* Text Utilities */
/* ---------------------- */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ---------------------- */
/* Buttons Styles */
/* ---------------------- */
.pt-btn,
button.pt-btn,
.personalization-tool button.pt-btn,
.woocommerce button.pt-btn{
    border: 0;
    background: linear-gradient(to right, #F16522, #FAAF40);
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    padding: .2em 2em;
    position: relative;
    transition: transform 0.1s ease-in-out;
    cursor: pointer;
}

.pt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pt-btn:hover,
.pt-btn:focus,
.pt-btn:active,
button.pt-btn:hover,
button.pt-btn:focus,
button.pt-btn:active,
.personalization-tool button.pt-btn:hover,
.personalization-tool button.pt-btn:focus,
.personalization-tool button.pt-btn:active,
.woocommerce button.pt-btn:hover,
.woocommerce button.pt-btn:focus,
.woocommerce button.pt-btn:active{
    background: linear-gradient(to right, #F16522, #FAAF40);
    color: white;
}

.pt-btn-secondary,
button.pt-btn-secondary,
.personalization-tool button.pt-btn-secondary{
    background: linear-gradient(to right, #808285, #5A5B5D);
}

.pt-btn-secondary:hover,
.pt-btn-secondary:focus,
.pt-btn-secondary:active,
button.pt-btn-secondary:hover,
button.pt-btn-secondary:focus,
button.pt-btn-secondary:active,
.personalization-tool button.pt-btn-secondary:hover,
.personalization-tool button.pt-btn-secondary:focus,
.personalization-tool button.pt-btn-secondary:active{
    background: linear-gradient(to right, #808285, #5A5B5D);
}

.fake-next-button {
    position: absolute;
    cursor: not-allowed;
    z-index: 9999;
    display: none;
    background: transparent;
}

.personalization-tool button.pt-btn.show-blind-options{
    width: 100%;
    text-align: left;
    font-family: "Italiana", Sans-serif;
    font-weight: normal;
    font-size: 1.5em;
    padding: 0 calc(.5em + 10px) 0 .5em;
}

.personalization-tool button.pt-btn.show-blind-options::after{
    content: "";
    display: block;
    width: 25px;
    height: 25px;
    background-image: url('../images/angle-down-icon.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 50%;
    right: .125em;
    transform: translateY(-50%);
}

@media screen and ( min-width: 768px ) {
    .personalization-tool button.pt-btn.show-blind-options{
        font-size: 1.75em;
        padding: 0 calc(.75em + 25px) 0 .75em;
    }

    .personalization-tool button.pt-btn.show-blind-options::after{
        right: .75em;
    }
}

/* ---------------------- */
/* Forms Styles */
/* ---------------------- */
.form-control{
    margin-bottom: .75em;
}

/* ---------------------- */
/* Grid Layout */
/* ---------------------- */
/* Container for grid rows */
.row {
    display: flex;
    flex-wrap: wrap;
    flex-flow: column;
    margin-left: -15px;
    margin-right: -15px;
    position: relative;
}

/* Columns within the grid */
.col {
    flex: 1;
    padding: 4px;
    box-sizing: border-box;
}

/* Clearfix for responsive layouts */
.row::after {
    content: "";
    display: table;
    clear: both;
}

.align-end{
    align-items: end;
}

.align-stretch{
    align-items: stretch;
}

@media screen and (min-width: 767px){
    .row{
        flex-flow: row;
    }
}

/* ---------------------- */
/* Multi-step Form Styles */
/* ---------------------- */
.msf .msf-header {
    margin: 0;
    padding: 0;
    color: transparent;
}

.msf-navigation > .row,
.msf-view > .row{
    flex-flow: row;
    flex-wrap: wrap;
}

.msf-view > .row{
    overflow-x: auto;
    flex-wrap: nowrap;
}

.msf-view > .row > .col{
    min-width: 60vw;
}

.msf-navigation button.msf-nav-button[data-type="next"]::after,
.msf-navigation button.msf-nav-button[data-type="back"]::before{
    content: "";
    display: block;
    width: 25px;
    height: 25px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.msf-navigation button.msf-nav-button[data-type="next"]{
    padding-right: calc(2em + 15px);
}

.msf-navigation button.msf-nav-button[data-type="next"]::after{
    background-image: url('../images/button-next-icon.svg');
    right: .75em;
}

.msf-navigation button.msf-nav-button[data-type="back"]{
    padding-left: calc(2em + 15px);
}

.msf-navigation button.msf-nav-button[data-type="back"]::before{
    background-image: url('../images/button-prev-icon.svg');
    left: .75em;
}

.step-error-message{
    width: calc(100% - 20px);
    /* position: absolute;
    top: 0;
    left: 10px; */
    transform: translateY(-100%);
    text-align: right;
    color: #ff0000;
    margin-top: -25px;
}

@media screen and ( min-width: 768px ) and ( max-width: 1279px ) {

    .msf-view > .row > .col {
        min-width: 200px;
    }
}

@media screen and ( min-width: 1280px ) {
    .msf-view > .row{
        overflow-x: initial;
        flex-wrap: wrap;
    }

    .msf-view > .row > .col {
        min-width: auto;
    }
}

/* ---------------------- */
/* Card Component */
/* ---------------------- */
/* Card Container */
.card {
    overflow: hidden;
    width: 100%;
    height: 420px;
}

label.card {
    background: 
        linear-gradient(to right, black 50%, rgba(255, 255, 255, 0) 0%) repeat-x top,
        linear-gradient(to bottom, black 50%, rgba(255, 255, 255, 0) 0%) repeat-y right,
        linear-gradient(to right, black 50%, rgba(255, 255, 255, 0) 0%) repeat-x bottom,
        linear-gradient(to bottom, black 50%, rgba(255, 255, 255, 0) 0%) repeat-y left;
    background-size: 3px 1px, 1px 3px, 3px 1px, 1px 3px;
    background-position: top left, top right, bottom left, top left;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
}

label.card:hover,
label.card.active-option{
    background-color: #ffefdf;
    transform: scale(1.02);
}

/* Card Body */
.card .card-body {
    padding: 30px 15px;
    text-align: center;
    font-size: .75rem;
    font-weight: normal;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.card .card-body p {
  font-size: 12px;
  line-height: 14px;
}

/* Card Image */
.card .card-img-top {
    margin: auto;
    max-height: 100%;
}

/* Card Title */
.card .card-title {
    font-size: 1.4rem;
    margin: 15px 0 10px;
    color: #2E3A59;
}

@media screen and (min-width: 767px){
    .card {
        height: 500px;
    }
}

/* ---------------------- */
/* Personalization Tool */
/* ---------------------- */
/* Tool Container */
.personalization-tool-container {
    display: flex;
    flex-flow: column;
    padding: 0 1em;
}

/* Left Element (Steps and Gallery) */
.personalization-tool-left {
    box-sizing: border-box;
}

/* Steps */
.personalization-tool-steps .step-title{
    font-size: 2rem;
    padding-left: 30px;
    position: relative;
}

.tooltip-box{
    display: block;
    width: 20px;
    height: 100%;
}

.tooltip-icon{
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../images/step-tooltip-icon.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 7.5px;
    left: 0;
    z-index: 2;
}

.tooltip-icon:hover{
    background-image: url('../images/step-tooltip-active-icon.svg');
}

.tooltip-text {
    visibility: hidden;
    width: calc(100% + 10px);
    height: auto;
    background-color: #DFE0E1;
    padding: 10px 15px 10px 40px;
    position: absolute;
    z-index: 1;
    top: 0;
    left: -10px;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: "Montserrat";
    font-size: 12px;
    font-weight: normal;
    font-style: normal;
}

.tooltip-icon:hover + .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@media screen and ( min-width: 768px ) {
    .personalization-tool-steps .step-title{
        font-size: 2.875rem;
        padding-left: 40px;
    }

    .tooltip-icon{
        top: 15px;
    }
}

/* Preview Element */
.personalization-tool-preview {
    box-sizing: border-box;
    position: relative;
    padding: 20px 0;
}

.sticky-preview {
    position: sticky;
    top: 120px;
}

/* Image Gallery with Filter */
.image-categories {
    margin-bottom: 20px;
}

.image-categories .filters {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.image-categories .filters button.filter {
    border-radius: 0;
    padding: .5em 1em;
    flex-grow: 1;
    flex-basis: 0;
    min-width: 100px;
    text-align: center;
    font-size: .9em;
    font-weight: 600;
    background-color: #f3f4f8;
    border-color: #f3f4f8;
    color: inherit;
}

.image-categories .filters button.filter.active {
    background-color: #574c4c;
    border-color: #574c4c;
    color: #fff;
}

.personalization-tool-gallery {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2em;
}

.personalization-tool-gallery.disabled {
    pointer-events: none;
    opacity: 0.1;
    position: relative;
    display: none;
}

.personalization-tool-gallery.disabled::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 10;
}


.personalization-tool-gallery .image-pool {
    width: 100%;
    height: 350px;
    overflow-y: auto;
}

.personalization-tool-gallery .image-pool .image-item{
    cursor: pointer;
    width: calc(33.33333333333333% - 6.666666666666667px);
    margin-bottom: 10px;
}

.personalization-tool-gallery .image-pool .image-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media screen and ( min-width: 768px ) {
    .personalization-tool-gallery.disabled {
        display: flex;
    }

    .personalization-tool-preview {
        padding: 60px 0 20px;
    }
}

/* Measurement Steps */
.measurement-step {
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Blinds Container */
.blinds-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media screen and ( min-width: 1279px ) {
    .blinds-container{
        display: block;
    }
}

/* Blinds Image */
.blinds-image {
    width: 100%;
}

.blinds-image img {
    width: 100%;
    display: block;
}

.measurement-width,
.measurement-height {
    width: calc(50% - 5px);
}

.measurement-width label,
.measurement-height label {
    white-space: nowrap;
}

.measurement-width input,
.measurement-height input {
    width: 100px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
}

@media screen and ( min-width: 1279px ) {
    .blinds-image {
        margin-bottom: 30px;
    }

    .measurement-width,
    .measurement-height {
        width: auto;
    }
}

/* Action Buttons */
.action-buttons{
    margin-bottom: 40px;
}

.action-buttons.disabled {
    pointer-events: none;
    opacity: 0.5;
    position: relative;
    display: none;
}

.action-buttons.disabled::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 10;
}

#blind-price{
    margin-bottom: .5em;
}

.action-buttons.woocommerce-actions > .row{
    align-items: center;
}

@media screen and (min-width: 768px){
    .personalization-tool-container {
        flex-flow: row;
        align-items: stretch;
        gap: 100px;
        padding: 0;
    }

    .personalization-tool-left {
        width: 50%;
        padding: 20px 0 200px;
    }

    .personalization-tool-preview {
        width: 50%;
        padding: 20px 0;
    }

    .personalization-tool-gallery .image-pool {
        width: 65%;
        height: 352px;
    }

    /* Blinds Image */
    .blinds-image {
        max-width: 450px;
        margin-bottom: 0;
    }

    /* Measurement Inputs */
    .measurement-width,
    .measurement-height {
        max-width: 250px;
        display: flex;
        flex-flow: row-reverse;
        align-items: center;
        gap: 15px;
    }

    .measurement-width {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-75%);
        text-align: center;
    }

    .measurement-height {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-100%);
        text-align: center;
    }

    .action-buttons.disabled {
        display: block;
    }

    .action-buttons.woocommerce-actions > .row{
        align-items: end;
    }
}

/* ---------------------- */
/* Progress Bar */
/* ---------------------- */
.custom-progress-bar {
    display: flex;
    justify-content: space-between;
    gap: 2px;
    margin: 20px 0 40px;
}

.custom-step {
    flex: 1;
    text-align: center;
    padding: 2px;
    background-color: #D3D5D6;
    position: relative;
}

.custom-step.active,
.custom-step.complete {
    background-color: #F16522;
}

/* ---------------------- */
/* Upload Area */
/* ---------------------- */
.upload-area {
    width: 100%;
}

.upload-area .dropzone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    min-height: auto;
    border: 2px dashed #ccc;
    border-radius: 10px;
    background: #f8f8f8;
    padding: 20px;
    text-align: center;
    margin: 30px 20px;
}

.upload-area .dropzone .dz-message {
    font-size: .95em;
    font-weight: bold;
    margin: 0;
}

.upload-area .dropzone .dz-button {
    align-self: center;
    width: auto;
    background-color: #574c4c;
    color: white;
    border-color: #574c4c;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 0;
    font-size: 1.1em;
}

.upload-area .dropzone .dz-button:hover {
    background-color: #574c4c;
}

.upload-area .dropzone .sep {
    position: relative;
}

.upload-area .dropzone .sep::before,
.upload-area .dropzone .sep::after {
    content: "";
    display: block;
    width: 35%;
    height: 1px;
    background-color: #caced7;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.upload-area .dropzone .sep::before {
    left: 5%;
}

.upload-area .dropzone .sep::after {
    right: 5%;
}

.upload-area .dropzone input[type="file"] {
    display: none;
}

.upload-area .dropzone .dz-preview{
    min-height: 60px;
}

.upload-area .dropzone .dz-preview.dz-image-preview{
    background-color: transparent;
}

.upload-area .dropzone .dz-preview .dz-image {
    border-radius: 0;
    overflow: hidden;
}

.upload-area .dropzone .dz-preview .dz-details,
.upload-area .dropzone .dz-preview .dz-success-mark,
.upload-area .dropzone .dz-preview .dz-error-mark {
    display: none;
}

.upload-area .dropzone .maximum-file-size {
    font-size: .85em;
}

@media screen and (min-width: 768px){
    .upload-area {
        width: 35%;
    }

    .upload-area .dropzone {
        margin: 0 0 0 20px;
        min-height: 100%;
    }
}

/* ---------------------- */
/* Image Actions */
/* ---------------------- */
.image-actions{
    padding: 0 25px;
}

.image-actions > .row{
    gap: .5em;
    margin-bottom: .5em;
}

.personalization-tool .image-actions button.pt-btn{
    flex-grow: 1;
    background-color: #574c4c;
    border-color: #574c4c;
    font-size: .9em;
    font-weight: normal;
    padding: .5em 1em;
}

/* ---------------------- */
/* Save Design */
/* ---------------------- */

/* ---------------------- */
/* Woocommerce */
/* ---------------------- */
.woocommerce table.shop_table .product-thumbnail {
    display: none;
}