/*
 * Carrier Vent Quick
 * PrestaShop 1.6
 */

/* =========================================================
   FULL WIDTH PAGE
   ========================================================= */

body.cvq-full-width-page #left_column {
    display: none !important;
}

body.cvq-full-width-page #right_column {
    display: none !important;
}

body.cvq-full-width-page #center_column {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.cvq-full-width-page #center_column.col-sm-8,
body.cvq-full-width-page #center_column.col-sm-9,
body.cvq-full-width-page #center_column.col-md-8,
body.cvq-full-width-page #center_column.col-md-9 {
    width: 100% !important;
}


/* =========================================================
   MAIN MODULE
   ========================================================= */

.cvq {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 20px 0 40px;
}

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


/* =========================================================
   HEADER
   ========================================================= */

.cvq-header {
    width: 100%;
    margin: 0 0 25px;
}

.cvq-title {
    margin: 0 0 10px;
    padding: 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
}

.cvq-subtitle {
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   ROOMS
   ========================================================= */

.cvq-rooms {
    width: 100%;
}

.cvq-room {
    position: relative;
    width: 100%;
    margin: 0 0 15px;
    padding: 0;
}


/*
 * ОСНОВНИЯТ РЕД:
 *
 * № | Квадратура | Продукт
 *
 * Избраният продукт остава в същата product колона.
 */

.cvq-room-row {
    display: flex;
    align-items: flex-end;
    width: 100%;
}


/* =========================================================
   ROOM NUMBER
   ========================================================= */

.cvq-room-number {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-right: 12px;
    margin-bottom: 0;
    line-height: 42px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid #ddd;
    background: #f7f7f7;
    border-radius: 3px;
}


/* =========================================================
   AREA
   ========================================================= */

.cvq-area-wrap {
    flex: 0 0 220px;
    width: 220px;
    margin-right: 15px;
}

.cvq-area-label {
    display: block;
    width: 100%;
    height: 22px;
    margin: 0 0 6px;
    padding: 0;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    white-space: nowrap;
}

.cvq-area-input-wrap {
    position: relative;
    width: 100%;
    height: 42px;
}

.cvq-area {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 8px 45px 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    font-size: 15px;
    line-height: 24px;
    outline: none;
}

.cvq-area:focus {
    border-color: #55c65e;
    box-shadow: 0 0 0 1px rgba(85, 198, 94, 0.15);
}

.cvq-area-unit {
    position: absolute;
    right: 12px;
    top: 0;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
    pointer-events: none;
}


/* =========================================================
   PRODUCT COLUMN
   ========================================================= */

.cvq-product-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 70px;
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.cvq-dropdown {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 1000;
    width: 100%;
    max-height: 360px;
    margin-top: 5px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cvq-dropdown.open {
    display: block;
}


/* =========================================================
   DROPDOWN OPTION
   ========================================================= */

.cvq-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 90px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    background: #fff;
    cursor: pointer;
}

.cvq-option:last-child {
    border-bottom: 0;
}

.cvq-option:hover {
    background: #f7f7f7;
}

.cvq-option-image {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    margin-right: 12px;
    text-align: center;
}

.cvq-option-image img {
    display: block;
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 0 auto;
}

.cvq-option-info {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 10px;
}

.cvq-option-name {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

.cvq-option-reference,
.cvq-option-area {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
}

.cvq-option-price {
    flex: 0 0 120px;
    width: 120px;
    text-align: right;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   LOADING / NO RESULTS
   ========================================================= */

.cvq-loading,
.cvq-no-results {
    padding: 18px 15px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.cvq-loading {
    min-height: 55px;
}

.cvq-no-results {
    color: #666;
}


/* =========================================================
   SELECTED PRODUCT
   ========================================================= */

/*
 * ВАЖНО:
 * .cvq-selected вече НЕ е под search реда.
 * Той заема цялата product колона на същия ред.
 */

.cvq-selected {
    display: none;
    position: relative;
    width: 100%;
    height: 70px;
    margin: 0;
}

.cvq-selected.active {
    display: block;
}

.cvq-selected-product {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 70px;
    min-height: 70px;
    padding: 6px 42px 6px 8px;
    border: 1px solid #ddd;
    background: #fafafa;
    border-radius: 3px;
}

.cvq-selected-image {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    margin-right: 12px;
    text-align: center;
}

.cvq-selected-image img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin: 0 auto;
}

.cvq-selected-info {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.cvq-selected-name {
    margin: 0 0 3px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}

.cvq-selected-name a {
    text-decoration: none;
}

.cvq-selected-meta {
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.35;
}

.cvq-selected-price {
    flex: 0 0 115px;
    width: 115px;
    margin-left: 10px;
    text-align: right;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
}

.cvq-remove {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 25px;
    height: 25px;
    margin-top: -12px;
    line-height: 23px;
    text-align: center;
    font-size: 24px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
}

.cvq-remove:hover {
    color: #333;
}


/* =========================================================
   NO IMAGE
   ========================================================= */

.cvq-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    font-size: 11px;
    line-height: 1.3;
    color: #999;
    text-align: center;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.cvq-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 20px 0 25px;
}

.cvq-actions-left {
    display: flex;
    align-items: center;
}

.cvq-add-room {
    display: inline-block;
    height: 42px;
    margin: 0;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f7f7f7;
    font-size: 14px;
    line-height: 24px;
    cursor: pointer;
}

.cvq-add-room:hover {
    background: #eee;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.cvq-summary {
    display: none;
    width: 100%;
    margin: 25px 0 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.cvq-summary-title {
    margin: 0;
    padding: 0 0 15px;
    border-bottom: 1px solid #ddd;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.cvq-summary-products {
    display: block;
    width: 100%;
}


/* =========================================================
   SUMMARY PRODUCTS
   ========================================================= */

.cvq-summary-product {
    display: block;
    width: 100%;
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.cvq-summary-product:last-child {
    border-bottom: 0;
}

.cvq-summary-product-inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.cvq-summary-product-image {
    flex: 0 0 100px;
    width: 100px;
    margin-right: 20px;
    text-align: center;
}

.cvq-summary-product-image-link {
    display: block;
    text-decoration: none;
}

.cvq-summary-product-image img {
    display: block;
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto;
}

.cvq-summary-product-info {
    flex: 1 1 auto;
    min-width: 0;
}

.cvq-summary-product-name {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.cvq-summary-product-name a {
    text-decoration: none;
}

.cvq-summary-product-reference,
.cvq-summary-product-area {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.5;
}

.cvq-summary-product-price {
    flex: 0 0 130px;
    width: 130px;
    text-align: right;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   TOTAL
   ========================================================= */

.cvq-summary-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    padding: 18px 0;
    border-top: 2px solid #ddd;
}

.cvq-summary-total-label {
    margin-right: 15px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.cvq-summary-total-price {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   CART BUTTON
   ========================================================= */

.cvq-summary-cart {
    display: block;
    width: 100%;
    margin: 0;
    padding: 5px 0 0;
    text-align: right;
}

.cvq-summary-cart .cvq-add-selected {
    display: inline-block;
    min-height: 44px;
    margin: 0;
    padding: 10px 22px;
    border: 1px solid #55c65e;
    border-radius: 3px;
    background: #55c65e;
    color: #fff;
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.cvq-summary-cart .cvq-add-selected:hover {
    border-color: #4eb856;
    background: #4eb856;
    color: #fff;
}

.cvq-summary-cart .cvq-add-selected:active {
    border-color: #4aa951;
    background: #4aa951;
}

.cvq-summary-cart .cvq-add-selected:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.cvq-message {
    display: none;
    width: 100%;
    margin: 20px 0 0;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.5;
}

.cvq-message.error {
    border-color: #e0b4b4;
    background: #fff5f5;
}

.cvq-message.success {
    border-color: #b4d8b4;
    background: #f5fff5;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .cvq {
        padding-top: 15px;
    }

    .cvq-area-wrap {
        flex: 0 0 190px;
        width: 190px;
    }

    .cvq-option-price {
        flex-basis: 105px;
        width: 105px;
    }

    .cvq-selected-price {
        flex-basis: 100px;
        width: 100px;
        font-size: 14px;
    }

    .cvq-summary-product-price {
        flex-basis: 115px;
        width: 115px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .cvq {
        padding: 15px 0 30px;
    }

    .cvq-title {
        font-size: 23px;
    }

    .cvq-subtitle {
        font-size: 14px;
    }


    /*
     * На телефон всичко се подрежда вертикално.
     */

    .cvq-room-row {
        display: block;
    }


    .cvq-room-number {
        display: inline-block;
        margin: 0 0 10px;
    }


    .cvq-area-wrap {
        width: 100%;
        margin: 0 0 12px;
    }


    .cvq-product-wrap {
        width: 100%;
        height: auto;
        min-height: 70px;
    }


    .cvq-dropdown {
        position: absolute;
        top: 70px;
        max-height: 320px;
    }


    .cvq-selected {
        width: 100%;
        height: auto;
        min-height: 70px;
    }


    .cvq-selected-product {
        align-items: flex-start;
        height: auto;
        min-height: 70px;
        padding: 8px 38px 8px 8px;
    }


    .cvq-selected-image {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }


    .cvq-selected-image img {
        width: 60px;
        height: 60px;
    }


    .cvq-selected-info {
        padding-right: 5px;
    }


    .cvq-selected-name {
        font-size: 14px;
    }


    .cvq-selected-meta {
        font-size: 12px;
    }


    .cvq-selected-price {
        flex: 0 0 auto;
        width: auto;
        margin-left: 5px;
        font-size: 14px;
    }


    .cvq-option {
        align-items: flex-start;
        min-height: 80px;
        padding: 9px;
    }


    .cvq-option-image {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
        margin-right: 9px;
    }


    .cvq-option-image img {
        width: 60px;
        height: 60px;
    }


    .cvq-option-info {
        padding-right: 5px;
    }


    .cvq-option-name {
        font-size: 14px;
    }


    .cvq-option-reference,
    .cvq-option-area {
        font-size: 12px;
    }


    .cvq-option-price {
        flex: 0 0 auto;
        width: auto;
        margin-left: 5px;
        font-size: 14px;
    }


    .cvq-actions {
        display: block;
        margin: 15px 0 20px;
    }


    .cvq-add-room {
        width: 100%;
    }


    .cvq-summary {
        padding: 15px;
    }


    .cvq-summary-title {
        font-size: 18px;
    }


    .cvq-summary-product {
        padding: 12px 0;
    }


    .cvq-summary-product-inner {
        position: relative;
        flex-wrap: wrap;
        align-items: flex-start;
        padding-bottom: 28px;
    }


    .cvq-summary-product-image {
        flex: 0 0 80px;
        width: 80px;
        margin-right: 12px;
    }


    .cvq-summary-product-image img {
        width: 70px;
        height: 70px;
    }


    .cvq-summary-product-info {
        flex: 0 0 calc(100% - 92px);
        width: calc(100% - 92px);
    }


    .cvq-summary-product-name {
        font-size: 14px;
    }


    .cvq-summary-product-reference,
    .cvq-summary-product-area {
        font-size: 12px;
    }


    .cvq-summary-product-price {
        position: absolute;
        left: 92px;
        bottom: 0;
        width: auto;
        min-width: 0;
        text-align: left;
        font-size: 15px;
    }


    .cvq-summary-total {
        justify-content: space-between;
        padding: 15px 0;
    }


    .cvq-summary-total-label {
        margin-right: 10px;
        font-size: 16px;
    }


    .cvq-summary-total-price {
        font-size: 19px;
    }


    .cvq-summary-cart {
        text-align: center;
        padding-top: 5px;
    }


    .cvq-summary-cart .cvq-add-selected {
        width: 100%;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .cvq-option {
        flex-wrap: wrap;
    }


    .cvq-option-info {
        width: calc(100% - 75px);
    }


    .cvq-option-price {
        width: 100%;
        margin: 7px 0 0 75px;
        text-align: left;
    }


    .cvq-selected-product {
        flex-wrap: wrap;
    }


    .cvq-selected-info {
        width: calc(100% - 70px);
        flex: 0 0 calc(100% - 70px);
    }


    .cvq-selected-price {
        width: 100%;
        margin: 5px 0 0 70px;
        text-align: left;
    }


    .cvq-summary-product-info {
        width: calc(100% - 92px);
        flex-basis: calc(100% - 92px);
    }


    .cvq-summary-total-label {
        font-size: 15px;
    }


    .cvq-summary-total-price {
        font-size: 18px;
    }

}