/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/
@media only screen and (max-width: 1023px) {
	.home .wpb_row.first-section .row-bg.using-image {
		background-image: url('img/fruit-boxes.jpg') !important;
	}
}

div.IATS_Div {
	max-width: 400px;
	width: auto!important;
}

form label.IATS_EventTitle {
	font-family: Roboto;
    text-transform: none;
    font-size: 34px;
    line-height: 40px;
    font-weight: 900;
}

form label.IATS_InputRequired {
	display: block;
    float: none;
    font-size: 16px;
    line-height: 20px;
}

form input.IATS_AccountNumberField, form input.IATS_LastAccountNumberField {
	background-color: transparent!important;
    border: 1px solid #ccc!important;
    box-shadow: none!important;
    -webkit-box-shadow: none!important;
    font-size: 16px!important;
    -o-box-shadow: none!important;
    padding: 16px!important;
    width: 100%;
}

form select.IATS_ExpiryMonthField {
	width: 45%;
	margin-right: 5%;
	background-color: transparent!important;
    border: 1px solid #ccc!important;
    box-shadow: none!important;
    -webkit-box-shadow: none!important;
    font-size: 16px!important;
    -o-box-shadow: none!important;
    padding: 16px!important;
    line-height: 18px;
}

form select.IATS_ExpiryYearField {
	width: 45%;
	margin-left: 5%;
	background-color: transparent!important;
    border: 1px solid #ccc!important;
    box-shadow: none!important;
    -webkit-box-shadow: none!important;
    font-size: 16px!important;
    -o-box-shadow: none!important;
    padding: 16px!important;
    line-height: 18px;
}

form input.IATS_OtherAmount {
	background-color: transparent!important;
    border: 1px solid #ccc!important;
    box-shadow: none!important;
    -webkit-box-shadow: none!important;
    font-size: 16px!important;
    -o-box-shadow: none!important;
    padding: 16px!important;
    width: 30%;
    margin-top: 25px;
}

.woocommerce-page table.shop_table.cart td.actions .coupon {
	width: 100%;
	float: left;
}

#IATS_Payment_CVV2 {
	width: 120px;
}

form input.IATS_PaymentInputField {
    background-color: transparent!important;
    border: 1px solid #ccc!important;
    box-shadow: none!important;
    -webkit-box-shadow: none!important;
    font-size: 16px!important;
    -o-box-shadow: none!important;
    padding: 16px!important;
    width: 100%;
}

form select#IATS_PaymentItemInput_State {
	/*display: block!important;
	background-color: transparent!important;
    border: 1px solid #ccc!important;
    box-shadow: none!important;
    -webkit-box-shadow: none!important;
    font-size: 16px!important;
    -o-box-shadow: none!important;
    padding: 16px!important;
    width: 100%;*/
    display: none!important;
}

form input#IATS_PaymentItemInput_State2 {
	/*display: none!important;*/
	display: block!important;
	background-color: transparent!important;
    border: 1px solid #ccc!important;
    box-shadow: none!important;
    -webkit-box-shadow: none!important;
    font-size: 16px!important;
    -o-box-shadow: none!important;
    padding: 16px!important;
    width: 100%;
}

.IATS_RadioAmtButton:checked {
	visibility: visible!important;
	left: 0px!important;
}
.IATS_RadioAmtButton:not(:checked) {
	visibility: visible!important;
	left: 0px!important;
}

form .IATS_RadioAmtLabel:before {
	display: none!important;
}

form .IATS_RadioAmtLabel:after {
	display: none!important;
}

.IATS_Action button.IATS_Action {
	font-size: 1em!important;
    width: auto;
    margin: 0 16px 0 0;
    padding: 16px!important;
    border-radius: 0!important;
    font-family: Roboto;
    font-weight: normal;
    background-color: #333333;
    padding: 7px 11px;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s linear 0s;
    -moz-transition: all 0.2s linear 0s;
    -webkit-transition: all 0.2s linear 0s;
    -o-transition: all 0.2s linear 0s;
    width: auto;
    font-size: 12px;
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    -o-border-radius: 2px;
    text-transform: uppercase;
}

.IATS_Action button.IATS_Action:hover {
	background-color: #C42D2D;
}

.nectar-slide-in-cart {
    display: flex;
    flex-direction: column;
    width: 200px;
    height: 100dvh;
    background-color: #fff;
    box-shadow: -12px 0 56px rgba(0, 0, 0, 0.1);
}

.nectar-slide-in-cart .widget_shopping_cart_content {
    padding: 0;
}

.woocommerce-mini-cart__buttons {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0px 16px 0px 16px;
}

.woocommerce-mini-cart__buttons a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important;
    padding: 8px 16px !important;
    border-radius: 100px !important;
    background: #ffcd0a !important;
    color: #337656 !important;
    text-align: center !important;
    font-family: Roboto !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
    text-decoration: none !important;
    margin: 0 !important;
}

.custom-go-to-cart{
    display: block !important;
    padding: 0 !important;
    font-size: 12px !important;
    margin: 0 !important;
}

.custom-subtotal {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0px;
    margin-bottom: 18px;
}

.custom-subtotal .title {
    display: flex;
    color: #337656;
    text-align: center;
    font-family: Roboto;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
  
.custom-subtotal .amount {
    display: flex;
    color: #337656;
    font-family: Roboto;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    text-transform: uppercase;
}

/* start cart content style */
.custom-mini-cart-container {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: scroll;
}
  /* this adds a scrollbar for content overflow */
  .custom-mini-cart-container::-webkit-scrollbar {
    width: 4px;
}
  .custom-mini-cart-container::-webkit-scrollbar-track {
    background: lightgray;
}
  .custom-mini-cart-container::-webkit-scrollbar-thumb {
    background: #15ba00;
}

.nectar-slide-in-cart .widget_shopping_cart .cart_list {
    /* display: block !important; */
    /* max-height: 65%; */
    /* overflow-y: auto; */
    /* overflow-x: hidden; */
    width: auto;
    height: 100%;
}

.nectar-slide-in-cart .widget_shopping_cart .cart_list li {
    padding: 0;
}

.side-cart-content .category {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: #337656;
}
.side-cart-content .category span {
    color: #fff;
    text-align: center;
    font-family: Roboto;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
}
.side-cart-content .category.category-light-green {
    background: #15ba00;
}

.woocommerce-mini-cart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 !important;
    border-bottom: 1px solid #878787 !important;
}

.woocommerce-mini-cart-item .details {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .woocommerce-mini-cart-item .details div img {
      width: 45px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 40px;
    object-fit: contain;
    object-position: center;
  }
  .woocommerce-mini-cart-item .details .label {
    color: #424242;
    text-align: center;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
  }

  .woocommerce-mini-cart-item .details .label .amount {
    color: #424242;
    text-align: center;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
  }

  .woocommerce-mini-cart-item .details .label .amount span {
    color: #424242;
    text-align: center;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
  }

  .woocommerce-mini-cart-item .actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
  }

  .woocommerce-mini-cart-item .actions .side-cart-remove {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    font-size: unset !important;
    /* height: unset !important; */
    /* width: unset !important; */
    text-align: center !important;
    line-height: unset !important;
    border-radius: 0 !important;
    color: unset !important;
    text-decoration: none !important;
    font-weight: unset !important;
    border: 0 !important;
  }

  .woocommerce-mini-cart-item .actions .side-cart-remove:hover {
    transform: none !important;
  }

  .woocommerce-mini-cart-item .actions .side-cart-remove img {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    aspect-ratio: 1/1 !important;
    object-fit: contain !important;
    object-position: center !important;
    opacity: 0.8 !important;
    transition: 0.3s !important;
  }

  .woocommerce-mini-cart-item .actions .side-cart-remove:hover img {
    opacity: 1 !important;
  }

  .custom-mini-cart-container {
    max-height: 80vh !important; /* Set a max height relative to the viewport */
    overflow-y: auto !important; /* Enable vertical scrolling if content overflows */
}

.woocommerce-mini-cart-item .actions .quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 2px;
    border: 1px solid #424242;
 }

 /* Style for the quantity select dropdown */
.side-cart-content .actions .quantity select {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4ch; /* You can adjust the width as needed */
    height: 24px;
    padding: 0;
    margin: 0;
    border-radius: 0;
    border: none;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1em;
    appearance: none;
    background-color: transparent; /* To ensure no default background */
    text-align: center;
    cursor: pointer;
  }
  
  /* Style for the select options to match the previous input style */
  .side-cart-content .actions .quantity select option {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 5px;
    background-color: transparent;
    text-align: center;
  }
  
  /* Optional: Add a custom dropdown arrow */
  .side-cart-content .actions .quantity select::-ms-expand {
    display: none; /* Hide default arrow in IE */
  }
  .side-cart-content .actions .quantity select::after {
    content: ' ▼'; /* Customize the arrow */
    font-size: 12px;
  }

  /* Example of loading animation for the mini-cart */
.woocommerce-mini-cart.loading {
  opacity: 0.5; /* Reduce opacity to show loading */
  pointer-events: none; /* Disable interactions */
  position: relative;
}

/* Loading spinner overlay */
.woocommerce-mini-cart.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 4px solid transparent;
  border-top: 4px solid #000; /* Spinner color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

/* Keyframes for spinning animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
