/*
Theme Name: Flower Shop Child
Theme URI: http://cmsmasters.net/flower-shop-child/
Author: cmsmasters
Author URI: http://cmsmasters.net/
Description: Flower Shop Child Theme
Template: flower-shop
Version: 1.0.0
License:
License URI:
Text Domain: flower-shop-child
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

.woocommerce form .form-row select.flower-shop-generated-city-select,
.wc-block-components-address-form select.flower-shop-generated-city-select:not(.wc-blocks-components-select__select),
.wc-block-components-checkout-step__content select.flower-shop-generated-city-select:not(.wc-blocks-components-select__select) {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 42px !important;
}

.woocommerce form .form-row select.flower-shop-generated-barangay-select,
.wc-block-components-address-form select.flower-shop-generated-barangay-select:not(.wc-blocks-components-select__select),
.wc-block-components-checkout-step__content select.flower-shop-generated-barangay-select:not(.wc-blocks-components-select__select) {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 42px !important;
}

.wc-block-components-text-input.wc-block-components-address-form__city {
    margin-top: 0;
}

.wc-block-components-text-input.wc-block-components-address-form__city>label {
    display: none;
}

input[type="text"], input[type="email"], input[type="tel"] {
    padding-top: 26px !important;
    padding-left: 10px !important;
    padding-bottom: 10px !important;
    height: 60px !important;
}

input, select, textarea {
    color: #000 !important;
    font-weight: 400 !important;
}

textarea {
    padding-top: 30px !important;
    line-height: 20px !important;
}

.wc-block-components-form .wc-block-components-text-input label, .wc-block-components-text-input label {
    color: #000 !important;
    top: 6px !important;
    transform: scale(.82) !important;
}

.wc-block-components-address-form__country.wc-block-components-country-input {
    margin-top: 12px !important;
}

/* Reorder address fields: Country → State → City → Name → Address */
.wc-block-components-address-form {
    /* display: grid !important; */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1em;
}

.wc-block-components-address-form__first_name  { order: 1;  grid-column: 1; }
.wc-block-components-address-form__last_name   { order: 2;  grid-column: 2; }
.wc-block-components-address-form__company     { order: 3;  grid-column: 1 / -1; }
.wc-block-components-address-form__country     { order: 10; grid-column: 1 !important; }
.wc-block-components-address-form__state       { order: 11; grid-column: 2 !important; }
.wc-block-components-address-form__city        { order: 12; grid-column: 1 !important; }
.wc-block-components-address-form__address_1   { order: 13; grid-column: 2 !important; margin-top: 0 !important; }
.wc-block-components-address-form__address_2   { order: 40; grid-column: 1 / -1; }
.wc-block-components-address-form__postcode    { order: 50; grid-column: 1; }
.wc-block-components-address-form__phone       { order: 51; grid-column: 2; }

.wc-block-components-address-form__address_1.flower-shop-has-generated-barangay > input,
.wc-block-components-address-form__address_1.flower-shop-has-generated-barangay > label {
    display: none !important;
}

/* Always show address_2 field and hide its toggle button */
button.wc-block-components-address-form__address_2-toggle {
    display: none !important;
}
.wc-block-components-address-form .wc-block-components-address-form__address_2 {
    display: block !important;
}

.prad-block-content.prad-ellipsis-2, 
a.prad-absolute.prad-fron-edit-addon{
    display: none !important;
}

.wc-block-cart-items .wc-block-cart-items__header th,
.wc-block-cart-items .wc-block-cart-items__row td {
    border-left: none !important;
    border-right: none !important;
}

.footer_logo_wrap, .footer_custom_html_wrap {
    display: none !important;
}

.flower-shop-category-featured-image {
    max-width: 1200px;
    margin: auto !important;
}

.headline_aligner, .cmsmasters_breadcrumbs_aligner {
    min-height: auto !important;
}

.wc-block-components-button:not(.is-link) .wc-block-components-button__text {
    text-transform: uppercase;
    font-weight: bold;
}

.prad-addons-wrapper::before {
    content: "ADD-ONS ( Best paired with)";
    display: block;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

@media only screen and (max-width: 600px) {
    .cmsmasters_products .product {
        width: 50% !important;
        clear: none !important;
        float: left !important;
        padding: 20px !important;
    }
}


@media only screen and (min-width: 1024px) {
    .single-product .cmsmasters_single_product {
        display: flex;
        align-items: stretch;
        position: relative;
        overflow: visible !important;
    }

    .single-product .cmsmasters_single_product .cmsmasters_product_left_column {
        float: none;
        position: relative;
        width: 41.8%;
        flex: 0 0 41.8%;
        overflow: visible !important;
    }

    .single-product .cmsmasters_single_product .cmsmasters_product_right_column {
        float: none;
        width: 58.2%;
        flex: 0 0 58.2%;
        overflow: visible !important;
    }

    .single-product .cmsmasters_single_product .cmsmasters_product_images {
        position: -webkit-sticky;
        position: sticky;
        top: 100px;
        z-index: 20;
    }
}

@media only screen and (max-width: 1023px) {
    .single-product .cmsmasters_single_product {
        display: block;
    }

    .single-product .cmsmasters_single_product .cmsmasters_product_left_column,
    .single-product .cmsmasters_single_product .cmsmasters_product_right_column,
    .single-product .cmsmasters_single_product .cmsmasters_product_images {
        float: none;
        position: static;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        min-height: 0;
    }
}