/*
 Theme Name:     Upland Mfg. (Divi Child Theme)
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Leech Printing
 Author URI:     https://leechprint.com/
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */


:root {
  --um-dark-blue: #253D85;
  --um-lightest-gray: #f7f7f7;
  --um-light-gray: #eeeeee;
  --um-medium-gray: #bbbbbb;
  --um-dark-gray: #666666;
  --um-black: #000000;
  --um-white: #FFFFFF;
}


/* Hide WooCommerce default ordering dropdown menu on Shop pages */

form.woocommerce-ordering {
    display: none;
}



/* CHANGE MOBILE NAV BREAKPOINT */

@media only screen and ( max-width: 1300px ) { /* Change this number to modify breakpoint width */
    
    #top-menu-nav, #top-menu {
        display: none;
    }
    
    #et_top_search {
        display: none;
    }
    
    #et_mobile_nav_menu {
        display: block;
    }
    
    .et_fixed_nav #main-header {
        position: absolute;
    }
    
}


/* hide the alt tag text from displaying when an image hasn't been loaded yet */
img {
    color: transparent;
}


/* MOBILE / NON-MOBILE */

@media all and (max-width: 480px) {
    
    .content-non-mobile-only {
        display: none;
    }

    .content-mobile-only {
        display: inline;   
    }

}

@media all and (min-width: 481px) {
    
    .content-non-mobile-only { 
        display: inline; 
    }

    .content-mobile-only {
        display: none;   
    }

}


/* DIVI STACKING ORDER */

@media all and (max-width: 980px) {

    /*** wrap row in a flex box ***/
    .custom-stacking-order {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap; /* Safari 6.1+ */
        flex-wrap: wrap;
    }

    /*** custom classes that will designate the order of columns in the flex box row ***/
    .first-on-mobile {
        -webkit-order: 1;
        order: 1;
    }

    .second-on-mobile {
        -webkit-order: 2;
        order: 2;
    }

    .third-on-mobile {
        -webkit-order: 3;
        order: 3;
    }

    .fourth-on-mobile {
        -webkit-order: 4;
        order: 4;
    }
    
    /*** add margin to last column ***/
    .custom-stacking-order:last-child .et_pb_column:last-child {
        margin-bottom: 30px;
    }
 
}



/* GRAVITY FORMS */

.hide-this-field {
    display: none !important;
}

p.gform_required_legend {
    margin-bottom: 15px;
    font-size: 0.8em;
}

.custom-form {
    padding: 20px;
    border: 1px solid #DDDDDD;
}

.gform_button,
.gform-footer input.button,
.custom-form .gform_button, 
.custom-form .gform_save_link, 
.custom-form .gform_next_button, 
.custom-form .gform_previous_button, 
.custom-form .gform_button_select_files {
	background-color: var(--um-dark-blue) !important; 
	padding: 15px 35px !important;
	color: var(--um-white) !important;
	border: none !important;
    border-radius: 5px !important;
    font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
}

    .gform_button:hover,
	.gform-footer input.button:hover,
	.custom-form .gform_button:hover, 
    .custom-form .gform_save_link:hover, 
    .custom-form .gform_next_button:hover, 
    .custom-form .gform_previous_button:hover, 
    .custom-form .gform_button_select_files:hover {
		transform: scale(103%, 103%) !important;
		padding: 15px 35px !important;
	}


	.custom-form .gform_save_link:before {
		color: var(--um-white) !important; 
	}

.upland-button{
	background-color: var(--um-dark-blue) !important; 
	padding: 20px 35px !important;
	color: var(--um-white) !important;
	border: none !important;
    border-radius: 5px !important;
    font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
}

button.upland-button:hover{
	transform: scale(103%, 103%) !important;
	padding: 20px 35px !important;
}


.custom-form .gform-body input[type="text"], 
.custom-form .gform-body input[type="tel"],
.custom-form .gform-body textarea,
.custom-form .gform-body select,
.custom-form .gform-body input[type="number"],
.custom-form .gform-body input[type="file"],
.custom-form .gform-body input[type="url"],
.custom-form .gform-body input[type="email"] {
    background-color: var(--um-light-gray);
    border: none;
    border-radius: 4px;
    padding: 10px;
	line-height: 20px;
    box-shadow: none;
}

/* Gravity Form Extentson - repeatable field */

.gfield--type-repeater_start{
	display: none;
}
.gfield--type-repeater_end{
	padding:0px !important;
}
.gf-repeater-field-button-add{
	background-color: var(--um-dark-blue) !important; 
	padding: 6px 10px !important;
	color: #FFFFFF !important;
	border: none;
	font-size:14px;
    border-radius: 3px !important;
}
.gf-repeater-field-button-add:hover{
	transform: scale(103%, 103%) !important;
	box-shadow: reset !important;
}
.repeater-field-item{
	padding:20px 10px;
	margin-bottom: 20px;
	border: 1px solid #cccccc;
	border-radius: 10px;
}
.repeater-field-item:first-child .icon-cancel-1{
	display: none;
}
.repeater-field-header{
	display:flex;
}
.repeater-field-header-acctions ul{
	text-align: right;
}
.container-repeater-field{
	display: flex;
	flex-wrap: wrap;
    gap: 10px;
}
.container-repeater-field .width-50{
	width:49% !important;
}
.container-repeater-field .width-32{
	width:32% !important;
}
.repeater-field-footer{
	margin-top:20px;
}



/* TYPOGRAPHY */

.small-caps {
	font-size: 0.8em;
  text-transform: uppercase;
}

.double-slash h1::before {
    content: "// ";
    color: #AAAAAA;
}

.remove-padding-on-headings h1,
.remove-padding-on-headings h2,
.remove-padding-on-headings h3,
.remove-padding-on-headings h4,
.remove-padding-on-headings h5,
.remove-padding-on-headings h6 {
    padding: 0 !important;   
}

.remove-top-margin-on-headings h1,
.remove-top-margin-on-headings h2,
.remove-top-margin-on-headings h3,
.remove-top-margin-on-headings h4, 
.remove-top-margin-on-headings h5,
.remove-top-margin-on-headings h6 {
    top-margin: 0 !important;   
}

.remove-margin-on-headings h1,
.remove-margin-on-headings h2,
.remove-margin-on-headings h3,
.remove-margin-on-headings h4, 
.remove-margin-on-headings h5,
.remove-margin-on-headings h6 {
    margin: 0 !important;   
}

.main-content p {
    padding-bottom: 0;
}

.main-content p+p {
    padding-top: 10px;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4 {
    margin-bottom: 0 !important;
    line-height: 1.5em;   
}

.main-content h5,
.main-content h5 {
    line-height: 1.5em;   
}

.main-content h3 {
    margin-bottom: 10px;
}

.main-content h1+p,
.main-content h2+p,
.main-content h3+p,
.main-content h4+p {
    margin-top: 7px !important;
}

.main-content p+h1,
.main-content p+h2,
.main-content p+h3,
.main-content p+h4,
.main-content ul+h1,
.main-content ul+h2,
.main-content ul+h3,
.main-content ul+h4,
.main-content ol+h1,
.main-content ol+h2,
.main-content ol+h3,
.main-content ol+h4 {
    margin-top: 40px !important;
}

.main-content ul,
.main-content ol {
    padding-bottom: 0;
}

.main-content ul {
    list-style-type: square;
}

.main-content p+ul,
.main-content h1+ul,
.main-content h2+ul,
.main-content h3+ul,
.main-content h4+ul,
.main-content p+ol,
.main-content h1+ol,
.main-content h2+ol,
.main-content h3+ol,
.main-content h4+ol {
    margin-top: 20px !important;
}

.main-content li {
    margin-bottom: 10px !important;   
}

.main-content li > ol,
.main-content li > ul {
    margin-top: 10px !important;   
}



/* SIDE-BY-SIDE DIVI MODULES */

.side-by-side-1 {
    display: flex;
    gap: 15px;
}

.side-by-side-2 {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

@media only screen and ( max-width: 1300px ) { /* Change this number to modify breakpoint width */
	.side-by-side-2 {
		justify-content: center;
	}
}

/* Product Variation & add to cart module Style- Front End */
.upland-addtocart form.cart .button, .upland-addtocart form.cart div.quantity {
	display:none; /* Remove Add to cart*/
}

.upland-addtocart .variations {
	margin-bottom:0px !important;
}

.upland-addtocart .woocommerce-variation-description {
	background-color: var(--um-lightest-gray);
}

.upland-addtocart .woocommerce-variation-description h2 {
	padding: 20px;
	padding-bottom: 0px;
}

.upland-addtocart .woocommerce-variation-description p {
	padding: 10px 20px;
	margin-bottom: 0!important;
}

.upland-title-medium {
	color: #253D85;
	font-weight: 700;
	font-size: 18px;
}


@media only screen and ( max-width: 480px ) { 
    
	.et-db #et-boc .et-l .et_pb_shop ul.products.columns-1 li.product, .et-db #et-boc .et-l .et_pb_shop ul.products.columns-2 li.product, .et-db #et-boc .et-l .et_pb_shop ul.products.columns-3 li.product, .et-db #et-boc .et-l .et_pb_shop ul.products.columns-4 li.product, .et-db #et-boc .et-l .et_pb_shop ul.products.columns-5 li.product, .et-db #et-boc .et-l .et_pb_shop ul.products.columns-6 li.product{
		width:100% !important;
	}
    
}


/* FORCE 2 images per row on Image Choice fields in Gravity Forms */

.gchoice {
    inline-size: 100% !important;
    width: 50% !important;
    max-inline-size: 100% !important;
} 

.gform-theme--framework .gfield--type-image_choice .gfield_radio,
.gform-theme--framework .gfield--type-image_choice .gfield_checkbox {
    gap: 0 !important;
}
