/*
Theme Name: WB Altitude Two Child
Theme URI: https://web.bird.digital/
Author: Web Bird Digital
Author URI: https://web.bird.digital/
Description: A child theme of the Altitude Two Template
Version: 0.0.1
Template: wb_altitude_two
License: Private - Do Not Modify, Do Not Distribute
License URI: https://web.bird.digital/terms-and-conditions/
Text Domain: wb

This theme is private and not to be modified or distributed without permission from Web Bird Digital. This theme remains the property of Web Bird Digital.
*/

body{
    --wp--preset--color--foreground: var( --wp--preset--color--primary );
    --wbd-selected-item-text-color: var( --wp--preset--color--primary );
    --wbd-hover-item-text-color: var( --wp--preset--color--primary );
    --wbd-selected-item-box-shadow: 0 0 0 4px var( --wp--preset--color--primary )
}

/* Anchor Tag Fix */
.entry-content [id] {
    scroll-margin-top: 130px;
}

:root :where(.wp-element-button:visited, .wp-block-button__link:visited),
:root :where(.wp-element-button, .wp-block-button__link){
    color: var( --wp--preset--color--base );
}
:root :where(.wp-element-button:visited, .wp-block-button__link:visited):hover,
:root :where(.wp-element-button, .wp-block-button__link):hover{
    color: var( --wp--preset--color--base );
    background: var( --wp--preset--color--contrast );
}

/* Background image on group blocks (snow caps) */
/* .wp-block-group.alignfull{
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: contain !important;
} */

/* Single product image gallery */
.woocommerce .wp-block-woocommerce-product-image-gallery{
    max-width: 800px;
    margin-left: auto;
}

/* Single product qty input */
.woocommerce div.product form.cart div.quantity .qty{
    height: 46px !important;
    min-width: 65px;
}

/* WC Single price original (<del> tag) */
.woocommerce .wc-block-components-product-price>del{
    opacity:0.6;
    font-size: 0.6em;
}

/* WC Single Product - on sale badge over gallery */
.woocommerce .wp-block-woocommerce-product-image-gallery span.onsale{
    left: 1em;
    top: 1em;
    min-width: 100px;
    border-radius: 50px;
    min-height: 2em;
    line-height: 2em;
}
.woocommerce div.product div.images img{
    max-height: 75vh;
    object-fit: contain;
}
div.wc-block-add-to-cart-form.wc-block-add-to-cart-form--stepper .wc-block-components-quantity-selector input[type=number].input-text.qty.text{
    padding-top: 0;
    padding-bottom: 0;
}

/* WC Category listing block */
.wc-block-product-categories-list{
    padding-left: 0;
    margin-left: 0;
}
.wc-block-product-categories-list-item{
    margin-left: 0 !important;
    padding-left: 0;
    list-style: none !important;
}

.wc-block-product-categories-list-item a{
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    padding: 0.75em 1em;
    background: var( --wp--preset--color--base );
    border-radius: 50px;
}
.wc-block-product-categories-list--has-images .wc-block-product-categories-list-item__image{
    margin-left: 0 !important;
}

/* Product categories grid for homepage */
.wc-block-product-categories.is-style-grid ul.wc-block-product-categories-list {
    display: grid;
    grid-template-columns: 4fr 4fr 4fr;
    gap: 1em;
}
.wc-block-product-categories.is-style-grid ul.wc-block-product-categories-list li{
    margin: 0 !important;
}

/* WC Product image to be relative height */
.wc-block-components-product-image[data-width="100%"]{
    height: 0;
    padding-bottom: 100%;
    position: relative;
}
.wc-block-components-product-image[data-width="100%"] > *,
.wc-block-components-product-image[data-width="100%"] img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    box-sizing: border-box;
}

/* WC Product title to be min-height of 2 lines */
.wc-block-product .wp-block-post-title{
    min-height: 2.5em;
    margin-bottom: 0;
}
.wc-block-product .wc-block-components-product-summary{
    min-height: 2.5em;
    margin-top: 0;
}
.wc-block-product .wc-block-components-product-summary p{
    margin-top:0;
    margin-bottom:0;
    line-height: 1.2;
}

/* WC product listing grid sizing */
.wc-block-product-template__responsive{
    grid-column-gap: 1.25em;
    grid-row-gap: 2.5em;
    
    column-gap: 1.25em;
    row-gap: 2.5em;
}

/* WC Pagination */
.wp-block-query-pagination a{
    padding: 1em;
    background: var( --wp--preset--color--contrast );
    color: var( --wp--preset--color--base );
}
.wp-block-query-pagination span.current{
    padding: 1em;
    background: var( --wp--preset--color--primary );
    color: var( --wp--preset--color--base );
}

/* Enquire button on add to cart */
.variation_add_to_cart__row,
.variation_price_estimate__row{
    display:flex;
    gap:5px;
}
.variation_add_to_cart__row>*{
    flex-grow:1;
}
.variation_add_to_cart__row:not(.no_input_qty) .woocommerce-variation-add-to-cart{
    flex-wrap:wrap;
}
.variation_add_to_cart__row:not(.no_input_qty) .woocommerce-variation-add-to-cart .quantity,
.variation_add_to_cart__row:not(.no_input_qty) .woocommerce-variation-add-to-cart .qty_buttons{
    flex-basis:50%;
    flex-basis: calc( 50% - 5px );
    flex-shrink:0;
    flex-grow:1;
    margin-bottom: 5px !important;
}
.variation_add_to_cart__row:not(.no_input_qty) .woocommerce-variation-add-to-cart .qty_buttons{
    flex-shrink:1;
    flex-basis: 100px;
}
.variation_add_to_cart__row .quantity input {
    padding: 8px 10px;
    border: 1.5px solid #CBCBCB;
    border-radius: 5px;
    width:100% !important;
    height:100%;
    box-sizing: border-box;
}
.variation_add_to_cart__row>.variations_button{
    display:flex;
}
.woocommerce .variation_add_to_cart__row button.button,
.woocommerce .variation_add_to_cart__row a.button{
    flex-grow: 1;
    float:none !important;
    border-radius: 50px;
}
div.wc-block-add-to-cart-form.wc-block-add-to-cart-form--stepper form.cart div.wc-block-components-quantity-selector.quantity{
    margin-right: 0;
}
.variation_add_to_cart__row:not(.no_input_qty) .woocommerce-variation-add-to-cart button[type="submit"]{
    padding-top:15px;
    padding-bottom:15px;
}
.variation_add_to_cart__row:not(.no_input_qty) .button{
    align-self: flex-end;
}
.woocommerce.product .single_add_to_cart_button {
    background: var( --wp--preset--color--primary ) !important;
    color: var( --wp--preset--color--base ) !important;
    border: 2px solid var( --wp--preset--color--primary ) !important;
}
.variation_add_to_cart__row .button.btn-secondary{
    background: transparent;
	color: var( --wp--preset--color--primary );
    border: 2px solid var( --wp--preset--color--primary );
    border-radius: 5px;
    transition: color 0.4s linear, border-color 0.4s linear;
    padding-top:12px;
    padding-bottom:12px;
    margin: 0 !important;
}
.variation_add_to_cart__row .button.btn-secondary:hover{
    background:transparent !important;
    color: var( --wp--preset--color--contrast );
    border-color: var( --wp--preset--color--contrast );
}

.variation_price_estimate__row{
    margin:1em 0;
    justify-content:space-between;
    align-items: stretch;
    align-content: stretch;
}
.variation_price_estimate__row .woocommerce-variation-price{
    padding:10px 0;
}
.variation_price_estimate__row .woocommerce-variation-price:before{
    content:'Total: ';
    font-weight:400;
}
/* .variation_price_estimate__row .wb_shipping_estimate{
    padding:10px 1em;
    background: #F2F2F2;
} */

.woocommerce div.product p.price,
.woocommerce div.product span.price{
    margin-top:0;
    margin-bottom:0;

    color: var( --wp--preset--color--primary );
    font-weight:500;
    line-height:1;
    font-size: 1.2em;
}
.price .price_suffix{
    font-size:0.7em;
}

.wp-block-navigation li.wp-block-navigation-item>a::after {
    bottom: -15px;
    left: -6px;
    height: 1px;
}

:where(.wp-site-blocks) > * {
    margin-block-start: unset !important;
}

.banner-border-radius {
    /* border-radius:  0 0 48px 48px; */
}

.woocommerce div.product form.cart div.quantity {
    margin: 0 0 0 0;
}

.border-radius {
    border-radius: 18px;
    /* box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; */
}



/* Woocommerce fixes */

input, textarea, select {
    padding: 6px;
    border-radius: 4px;
    border: 2px solid #45b64a;
}

button, input[type="submit"], input[type="button"], input[type="reset"] {
    margin-top: unset;
    margin-bottom: unset;
}

.wp-block-search__input {
    background-color: var(--wp--preset--color--base);
    padding-left: 1em;
}

.wc_actions a {
    font-size: 14px !important;
}

.wc_actions svg {
    display:none;
}

.wc-block-product-categories-list--has-images .wc-block-product-categories-list-item__image img {
    width: 20px;
}

.wc-block-product-categories-list--has-images .wc-block-product-categories-list-item__image {
    border: 0px solid #eee;
}

.wc-block-product-categories-list--has-images .wc-block-product-categories-list-item {
    clear: both;
    list-style: none outside;
    margin: 14px 0 4px 30px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    z-index: 4;
}

.wc-block-grid .wc-block-grid__product-onsale, .wc-block-grid__product-image .wc-block-grid__product-onsale {
    z-index: 4;
}

.qty_buttons {
    display: none;
}

.qty_text h6 {
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 14px;
    text-transform: none; /* Ensures default case */
}

.qty_text h6::before {
    content: 'Quantity:';
    text-transform: none; /* Ensures it displays in default case */
}

.qty_text h6 {
    visibility: hidden; /* Hides the original text */
}

.qty_text h6::before {
    visibility: visible; /* Makes the new text visible */
}


form.cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

form.cart button.button.alt {
    margin-top: 0px !important;
    margin-left: 10px !important;
    padding: 0;
    flex-grow: 1;
    height: 30px !important;
}

.woocommerce .quantity a.minus, .woocommerce .quantity a.plus, .woocommerce .quantity input.qty {
    height: 30px !important;
    min-height: 30px !important;
    width: 30px !important;
}

.qty_wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.quantity {
    display: flex;
    align-items: center;
}

.quantity input[type="number"] {
    width: 60px;
    text-align: center;
    font-size: 16px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button.add_to_cart {
    background-color: #28a745;
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

button.add_to_cart:hover {
    background-color: #218838;
}

form.cart button.button.alt {
    height: 48px !important;
}

/* Gravity Forms */
.gform-theme--framework .gf_page_steps, .gform-theme--framework .gf_progressbar_wrapper {
    display: none;
}

.gform_wrapper .gf_progressbar_title {
    color: #ffffff;
}

.gform-theme--framework .gf_progressbar .percentbar_blue {
    background-color: #80460d !important;
}

.gform-theme--framework .gform_validation_errors {
    background-color: rgb(233 233 233 / 93%);
}

.gfield--type-html {
    margin-top: -15px;
}

.gform-theme .gfield input {
    border: 1.5px solid #45b64a !important;
    height: 50px !important;
    padding-top: 23px !important;
    font-size: 14px;
    padding-left: 11px !important;
}

.gform-theme .gfield textarea {
    border: 1.5px solid #45b64a !important;
    /* height: 40px !important; */
    padding-top: 23px !important;
    font-size: 14px;
    padding-left: 11px !important;
}

.gform_drop_instructions {
    color: black;
}

.gform-theme .gfield input::placeholder,
.gform-theme .gfield textarea::placeholder  {
    color: grey;
    opacity:0.8;
}



.ginput_container_consent input {
    padding-top:20px !important;
}

.gform-theme .gfield input[type="checkbox"],
.gform-theme .gfield input[type="radio"] {
    height:unset !important;
}

.gform-theme--foundation .gform_fields {
    row-gap: 10px;
}


.gfield--type-checkbox .gform-field-label {
    position: unset !important;
}


.gfield--type-fileupload .ginput_container  input {
    padding-top:0px !important;
}

.gform-theme .gfield input[type="checkbox"]::before, .gform-theme .gfield input[type="radio"]::before {
    content: '\2713';
    color: #45b64a;
    position: absolute;
    left: 3px;
    top: 0px;
    font-size: 16px;
    background-color: transparent !important;
    font-weight: bold;
}

.gform_confirmation_message_1 {
    text-align:center;
}

.gform-subtitle-custom {
    font-size: 15px;
    color: lightgrey;
    line-height: 1px;
}

.gform-theme .gfield input[type="checkbox"],
.gform-theme .gfield input[type="radio"] {
    appearance: none;
    width: 22px;
    height: 20px;
    border: 1.5px solid #45b64a;
    border-radius: 50%;
    position: relative;
}

.gform-theme .gfield input[type="checkbox"]:checked::before,
.gform-theme .gfield input[type="radio"]:checked::before {
    content: '\2713';
}


.gform-theme .gform-field-label--type-sub,
.gform-theme .gfield--type-email .gform-field-label,
.gform-theme .gfield--type-text .gform-field-label,
.gform-theme .gfield--type-name .gform-field-label,
.gform-theme .gfield--type-phone .gform-field-label {
    position: absolute;
    margin: 3px 0 0 12px;
    font-size: 14px;
    color: #0c4341;
}

.ginput_container_consent .gform-field-label--type-sub,
.ginput_container_consent .gform-field-label {
    position: absolute;
    margin: 4px 0 0 30px;
    font-size: 15px;
    color: #ffffff;
}

.gfield--type-consent legend {
    display:none !important;
}

.gfield--type-radio legend {
    position: unset !important;
    padding-bottom: 5px;
}

.gform-theme textarea {
    border-radius: 0 !important;
    padding-top: 12px !important;
    padding-left: 9px !important;
}

.gform_button {
    color: white !important;
    background-color: #161616 !important;
    padding: 13px 50px !important;
    font-weight: bold !important;
    transition: box-shadow 0.3s ease-in-out !important;
}

.gform_button:hover {
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px !important;
}



.gfield--type-fileupload .ginput_container input {
    padding-top: 20px !important;
    height:100px !important;
}

.ginput_container_fileupload .gfield input{

}



input[type="file"].large::-webkit-file-upload-button {
    visibility: hidden;
}
input[type="file"].large::before {
    content: 'Choose file';
    display: inline-block;
    background: -webkit-linear-gradient(top, #f9f9f9, #e3e3e3);
    border: 2px solid #999;
    border-radius: 7px;
    padding: 3px 40px;
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    text-shadow: 1px 1px #fff;
    margin-right: -8%;
    font-size: 10pt;
}

/* Variation swatches */
.wb_input_grid__wrapper>select,
.swatch-variation-wrapper>select{
    display:none !important;
}
.swatch-variable-items-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
      flex-wrap: wrap;
    -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
    /*margin: 0 5px;*/
    margin: 0;
    padding: 0;
    list-style: none;
}
.variable-items-wrapper .variable-item {
    margin: 0;
    padding: 0;
    list-style: none;
    -webkit-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
    -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
    outline: none;
}
.variable-items-wrapper .variable-item:before{
    content:none;
    display:none;
}
.variable-items-wrapper .variable-item .variable-item-contents {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
    -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}
.variable-items-wrapper .variable-item img.swatch-image-preview {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.variable-items-wrapper .variable-item .swatch-color-preview {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.variable-items-wrapper .variable-item > span {
    pointer-events: none;
}
.variable-items-wrapper .variable-item {
    -webkit-box-sizing: border-box;
          box-sizing: border-box;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
    -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
    background-color: #FFFFFF;
    color: #000000;
    -webkit-box-shadow: 0 0 0 1px #A8A8A8;
          box-shadow: 0 0 0 1px #A8A8A8;
    padding: 0;
    margin: 4px;
    width: 60px;
    height: 60px;
}
.variable-items-wrapper .variable-item:first-child {
    /*margin-left: 0;*/
}
.variable-items-wrapper .variable-item:last-child {
    margin-right: 0;
}
.variable-items-wrapper .variable-item.no-stock img.swatch-image-preview,
.variable-items-wrapper .variable-item.no-stock span,
.variable-items-wrapper .variable-item.no-stock .variable-item-contents {
    opacity: 0.6;
}
.variable-items-wrapper .variable-item.no-stock .variable-item-contents::before {
    position: absolute;
    content: " ";
    display: block;
    background-image: var(--wbd-cross);
    background-repeat: no-repeat;
    background-position: center center;
    height: 100%;
    width: 100%;
}
.variable-items-wrapper .variable-item:hover {
    -webkit-box-shadow: var(--wbd-hover-item-box-shadow, 0 0 0 3px #dddddd);
          box-shadow: var(--wbd-hover-item-box-shadow, 0 0 0 3px #dddddd);
    background-color: var(--wbd-hover-item-background-color, #FFFFFF);
    color: var(--wbd-hover-item-text-color, #f79a1e);
}
.variable-items-wrapper .variable-item:focus {
    -webkit-box-shadow: var(--wbd-hover-item-box-shadow, 0 0 0 3px #dddddd);
          box-shadow: var(--wbd-hover-item-box-shadow, 0 0 0 3px #dddddd);
}
.variable-items-wrapper .variable-item.selected,
.variable-items-wrapper .variable-item.selected:hover {
    -webkit-box-shadow: var(--wbd-selected-item-box-shadow, 0 0 0 4px #f79a1e);
          box-shadow: var(--wbd-selected-item-box-shadow, 0 0 0 4px #f79a1e);
    color: var(--wbd-selected-item-text-color, #f79a1e);
}
.variable-items-wrapper .variable-item.disabled,
.variable-items-wrapper .variable-item.disabled:hover {
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}
.variable-items-wrapper .variable-item.disabled img.swatch-image-preview,
.variable-items-wrapper .variable-item.disabled span,
.variable-items-wrapper .variable-item.disabled .variable-item-contents,
.variable-items-wrapper .variable-item.disabled:hover img.swatch-image-preview,
.variable-items-wrapper .variable-item.disabled:hover span,
.variable-items-wrapper .variable-item.disabled:hover .variable-item-contents {
    opacity: 0.6;
}
.variable-items-wrapper .variable-item.disabled .variable-item-contents::before,
.variable-items-wrapper .variable-item.disabled:hover .variable-item-contents::before {
    position: absolute;
    content: " ";
    display: block;
    background-image: var(--wbd-cross);
    background-repeat: no-repeat;
    background-position: center center;
    height: 100%;
    width: 100%;
}
.variable-items-wrapper .variable-item.selected:not(.no-stock) .variable-item-contents::before{
    position: absolute;
    content: " ";
    display: block;
    background-image: var(--wbd-tick);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 60%;
    height: 100%;
    width: 100%;
}
.variable-items-wrapper .variable-item .variable-item-span-color {
    width: 100%;
    height: 100%;
    /*position: relative;*/
    display: block;
}
.variable-items-wrapper .variable-item.button-variable-item {
    text-align: center;
    font-size: 16px;
}
.variable-items-wrapper .variable-item.button-variable-item.selected:not(.no-stock) {
    background-color: #FFFFFF;
    color: #000000;
}
.woocommerce div.product form.cart .variations label{
    position: relative;
    top: -1em;
}
.woocommerce table.variations tr td,
.woocommerce table.variations tr th{
    padding-bottom: 0 !important;
}
/* END Variation Swatches */

@media (max-width: 768px) {
    body{
        --wp--custom--content-padding: 15px !important;
        --scrollbar-width: 10px !important;
    }
    .woocommerce-results-custom {
        margin-bottom: unset;
    }

    .wp-block-navigation li.wp-block-navigation-item>a::after {
        bottom: -5px;
        left: -6px;
        height: 1px;
    }

    .hide_mob {
        display: none !important;
    }

    .smaller_text_mobile {
        font-size: 15px !important;
    }

    .smaller-mobile-h2 {
        font-size: 22px;
    }
    
    .wbcolumnslider__columns .wbcolumnslide__column{
        flex-basis: 60vw !important;
    }
    
    .wc-block-product-categories.is-style-grid ul.wc-block-product-categories-list{
        grid-template-columns: 12fr;
    }
    
    .nav_link.nav_left{
        left: -0.5em;
    }
    .nav_link.nav_right{
        right: -0.5em;
    }
}
