/*
Theme Name: Dog Culture
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.1
Text Domain:  Avada
*/

.full-desc-link {
    margin-left: 17px
}
.full-desc-link:before {
    position: absolute;
    content: "\f107" !important;
    font-family: awb-icons !important;
    margin-left: -17px;
}

/* Mega Menu */

.fusion-main-menu .parks-and-beaches-menu .fusion-megamenu-wrapper .fusion-megamenu-submenu,
.fusion-main-menu .shop-menu .fusion-megamenu-wrapper .fusion-megamenu-submenu {
  min-height: 220px;
}

.fusion-main-menu .parks-and-beaches-menu ul .fusion-megamenu-title {
  color: #fff;
  position: absolute;
  padding-bottom: 30px;
  width: 100%;
  bottom: 0;
  background: rgb(0, 0, 0);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
  transition: all 0.3s ease;
}

.fusion-main-menu .parks-and-beaches-menu ul .fusion-megamenu-title a {
  padding-top: 140px;
  color: #fff;
  position: relative;
  z-index: 999;
}

.fusion-main-menu .parks-and-beaches-menu ul li .fusion-megamenu-title::before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgb(0, 0, 0);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 998;
  transition: opacity 0.3s linear;
  opacity: 0;
}

.fusion-main-menu .parks-and-beaches-menu ul li:hover .fusion-megamenu-title::before {
  opacity: 1;
}

.avada-has-megamenu-item-divider .fusion-main-menu .shop-menu ul li ul.sub-menu {
  padding-bottom: 40px;
}

.avada-has-megamenu-item-divider .fusion-main-menu .shop-menu ul li ul.sub-menu a {
  border: 0;
  padding-top: 5px;
  padding-bottom: 5px;
}

.avada-has-megamenu-item-divider .fusion-main-menu .shop-menu ul li ul.sub-menu a .fusion-megamenu-icon {
  width: 15px;
}

/* WooCommerce */

.woocommerce-cart main#main {
  padding-bottom: 0;
}

.woocommerce-cart tr.coupon-gift-voucher-row {
  border-bottom: 0;
}

.woocommerce-cart .cart_totals table th {
  width: 35% !important;
}

.woocommerce-cart .woocommerce-shipping-totals ul > li {
  margin-bottom: 2px;
  text-align: right;
  font-size: 14px;
}

.woocommerce-cart .woocommerce-shipping-totals ul li.dc-shipping-destination-note {
  font-style: italic;
  font-size: 14px;
  margin-top: 10px;
}

.woocommerce-cart .woocommerce-shipping-totals ul > li label {
  display: flex;
  text-align: left;
}

.woocommerce-cart .woocommerce-shipping-totals ul > li label .amount{
  margin-left: auto;
}

.woocommerce-cart div.fusion-woo-cart-totals-wrapper .order-total .amount {
  color: #4E4E4E !important;
  font-weight: 600 !important;
}

.woocommerce-cart .fusion-update-cart {
  display: none !important;
}

.woocommerce-cart .cross-sells {
  border: 0;
}

.woocommerce-cart .cross-sells h2 {
  border-bottom: 0;
}

.woocommerce button.single_add_to_cart_button.button.alt {
  margin: 20px 0;
}

.woocommerce-checkout .secure-checkout > div p strong {
  font-weight: 700; 
  }
  
@media only screen and (max-width: 1024px) {
  .woocommerce-checkout .secure-checkout > div {
  justify-content: center !important;
  }
}

.woocommerce-checkout .checkout-wrap { 
  max-width: 1000px; 
  margin: auto !important; 
}

.woocommerce-checkout .checkout-header h2 { 
  margin-bottom: 0; 
}

.woocommerce-checkout .shop_table .product-name {
  width: auto;
}

.woocommerce-checkout .fusion-woo-checkout-billing-tb.fusion-woo-checkout-billing-tb-1,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields  {
  padding: 20px;
  border: 1px solid #E0DEDE;
}

.woocommerce-checkout div#ship-to-different-address > label {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 600;
}

/* Hide shipping fields by default when checkbox is unchecked */
.woocommerce-checkout .shipping_address {
  display: none;
  margin-top: 20px;
}

.woocommerce-checkout .woocommerce-additional-fields label {
  font-size: 18px;
  color: #4e4e4e;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.woocommerce-checkout .fusion-woo-checkout-payment-tb .woocommerce-checkout-payment ul.wc_payment_methods {
  padding-left: 0;
}

.woocommerce-checkout .fusion-woo-checkout-payment-tb .woocommerce-checkout-payment ul.wc_payment_methods li {
  list-style: none;
}

@media only screen and (min-width: 801px) and (max-width: 1232px) {
  .woocommerce button.single_add_to_cart_button.button.alt {
    margin: 0 0 20px;
  }
}

@media only screen and (max-width: 355px) {
  .woocommerce button.single_add_to_cart_button.button.alt {
    margin: 0 0 20px;
  }
}

/* WooCommerce Back In Stock */

div#wc_bis_product_form {
    background: #f3f3f3;
    padding: 15px;
}

div#wc_bis_product_form .wc_bis_opt_in {
    margin: 0 0 20px;
}

div#wc_bis_product_form .wc_bis_registrations_count {
    margin: 0;
}

/* WooCommerce Wishlist */

#wl-wrapper.wl-button-wrap,
#wl-wrapper.wl-button-wrap::before {
    border-color: #e0dede;
    border-width: 1px 0;
    border-style: solid;
    margin-top: 6px;
}

#wl-wrapper.wl-button-wrap::before {
    content: '';
    display: block;
    height: 6px;
    width: 100%;
    border-width: 1px 0 0;
    position: absolute;
    top: -14px;
}

#wl-wrapper .wl-already-in ul {
    margin: 10px 0 10px;
}

#wl-wrapper .wl-table td {
    padding: 10px 10px;
}

#wl-wrapper .wl-table tr {
    height: initial; /* overrides Avada */
}

#wl-wrapper .wl-form .form-row {
    margin-bottom: 20px; /* matches Avada */
}

/**
 * Flip mobile menu to screen left
 */
@media only screen and (max-width: 800px) {
    .fusion-header-v4.fusion-mobile-menu-design-modern .fusion-logo .fusion-logo-link {
        text-align: right;
        margin-left: auto;
        margin-right: 0;
    }
    .fusion-header-v4.fusion-mobile-menu-design-modern .fusion-mobile-menu-icons {
        left: 0;
        right: initial;
    }
    .fusion-header .fusion-mobile-menu-icons a {
        margin-left: 0;
        margin-right: 20px;
        float: left;
    }
}

/* Custom Mini Cart */

.fusion-menu-cart-header {
  background-color: #EFC256;
  padding: 20px;
  display: flex;
  margin-bottom: 40px;
  justify-content: space-between;
  align-items: center;
}

.fusion-menu-cart-header span {
  font-size: 20px;
}

.fusion-secondary-menu .fusion-custom-menu-item-contents {
  width: 400px !important;
  overflow: hidden;
  right: -1px !important;
  left: unset !important;
}

@media only screen and (max-width: 768px) {
  .fusion-secondary-menu .fusion-custom-menu-item-contents {
    right: -10px !important;
  }
}

.fusion-menu-cart-item {
  padding: 20px 0;
  display: flex;
  flex-direction: row;
  border: 1px solid #E0DEDE;
  margin: 10px 20px;
  padding: 10px;
}

.fusion-menu-cart-item a {
  margin: 0 0 10px 0;
  border: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fusion-menu-cart-item-top-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    align-items: flex-start;
}

/* Reset default margin for the link inside top row since the row handles margin */
.fusion-menu-cart-item-top-row a {
    margin: 0 !important;
}

.fusion-menu-cart-item-top-row .dc-remove-cart-item {
    color: #000 !important;
    font-size: 20px;
    line-height: 1;
    padding: 0 0 0 10px !important;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.fusion-menu-cart-item-top-row .dc-remove-cart-item:hover {
    opacity: 1;
}

.fusion-menu-cart-item a:hover {
  background: none !important;
}

.fusion-menu-cart-item-title {
  font-weight: 600;
  font-size: 12px;
}

.fusion-menu-cart-checkout {
  flex-direction: column;
}

.fusion-menu-cart-checkout-link a:before,
.fusion-menu-cart-link a:before {
  display: none;
}

.fusion-menu-cart-checkout {
  padding: 20px;
  background: #fff !important;
  box-shadow: 0px 0px 20px 10px #E2E2E2B4;
  margin-top: 40px;
}

.fusion-menu-cart-total {
  padding: 0em 1em;
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 600;
  color: #000;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  margin-bottom: 10px;
}

.fusion-menu-cart-total span.amount {
  color: #000 !important;
}

.fusion-menu-cart-checkout-link a {
  background: #EFC256;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  color: #000 !important;
  font-size: 13px;
  padding: 20px;
  display: block;
  font-weight: 600;
  text-transform: none;
  text-align: center;
  font-family: Poppins, Arial, Helvetica, sans-serif;
}

.fusion-menu-cart-link {
  padding: 0;
}

.fusion-menu-cart-link a {
  display: block;
  width: 100%;
  font-size: 14px;
  text-decoration: underline;
  text-align: center;
  padding: 5px;
  color: #4E4E4E !important; 
  opacity: 1;
}

.fusion-body .quantity .minus, .fusion-body .quantity .plus {
  background: #ffffff !important;
}
/* Cart Quantity Input with + and - buttons */
.fusion-menu-cart-item-details {
  display: flex;
  width: 100%;
  max-width: none;
  flex-direction: column;
  gap: 8px;
}

.fusion-menu-cart-item-quantity-wrapper {
  margin: 0;
  padding: 0;
}

.fusion-menu-cart-item-quantity {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.fusion-menu-cart-item-quantity .quantity {
  display: inline-flex;
  align-items: center;
  margin-right: 5px;
}

.fusion-menu-cart-item-quantity .quantity .dc-cart-minus,
.fusion-menu-cart-item-quantity .quantity .dc-cart-plus {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #E0DEDE;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 22px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.fusion-menu-cart-item-quantity .quantity .dc-cart-minus:hover,
.fusion-menu-cart-item-quantity .quantity .dc-cart-plus:hover {
  background: #EFC256;
  border-color: #EFC256;
  color: #000;
}

.fusion-menu-cart-item-quantity .quantity .dc-cart-minus {
  border-radius: 4px 0 0 4px;
  border-right: none;
}

.fusion-menu-cart-item-quantity .quantity .dc-cart-plus {
  border-radius: 0 4px 4px 0;
  border-left: none;
}

.fusion-menu-cart-item-quantity .quantity .dc-cart-quantity-input {
  width: 50px !important;
  height: 24px;
  padding: 0 4px !important;
  text-align: center !important;
  border: 0;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  -moz-appearance: textfield;
  appearance: textfield;
}

.fusion-menu-cart-item-quantity .quantity .dc-cart-quantity-input::-webkit-outer-spin-button,
.fusion-menu-cart-item-quantity .quantity .dc-cart-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.fusion-menu-cart-item-quantity .quantity .dc-cart-quantity-input:focus {
  outline: none !important;
  border-color: #EFC256 !important;
}

.fusion-menu-cart-item-quantity .quantity .dc-cart-quantity-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

.fusion-menu-cart-item.dc-updating {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.fusion-menu-cart-item-quantity-wrapper.dc-loading {
  position: relative;
  opacity: 0.7;
}

.fusion-menu-cart-item-quantity-wrapper.dc-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #EFC256;
  border-top-color: transparent;
  border-radius: 50%;
  animation: dc-spin 0.6s linear infinite;
}

.dc-loading-spinner {
  display: inline-block;
  margin-left: 5px;
  color: #EFC256;
  font-weight: bold;
}

@keyframes dc-spin {
  to {
    transform: rotate(360deg);
  }
}

.fusion-menu-cart-item-quantity .quantity .dc-cart-minus:disabled,
.fusion-menu-cart-item-quantity .quantity .dc-cart-plus:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}

.fusion-menu-cart-item-quantity .dc-cart-price {
  margin-left: 5px;
  font-weight: 600;
  font-size: 14px;
  color: #000;
}

/* Custom Cart Interaction Overrides */
.fusion-menu-cart:hover .fusion-custom-menu-item-contents {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Only show when open class is present */
.fusion-menu-cart.fusion-menu-cart-open .fusion-custom-menu-item-contents {
    visibility: visible !important;
    opacity: 1 !important;
    /* Ensure it stays on top */
    z-index: 99999;
}

@media only screen and (max-width: 768px) {
    .fusion-menu-cart.fusion-menu-cart-open .fusion-custom-menu-item-contents {
        display: none !important;
    }
}

/* Ensure the close button looks clickable */
.fusion-menu-cart-close:hover {
    opacity: 0.7;
}

/* Cart Styling */

.cart-wrap {
  max-width: 800px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.cart-image-wrap {
  margin: auto;
  text-align: center;
}

.cart-image > img {
  height: 122px;
  width: auto;
}

.cart-count > h1 {
  font-weight: 600 !important;
}

.cart-title h2 { 
  margin-bottom: 0; 
}

.cart-subtitle h3 { 
  font-size: 16px; 
}

@media only screen and (max-width: 768px) {
  .cart-image > img {
    height: auto;
    width: 100%;
    max-height: 80px;
  }
}

@media only screen and (max-width: 400px) {
  .cart-image > img {
    max-height: 60px;
  }
}

/* Avada cart overrides */

div.fusion-woo-cart-totals-wrapper.buttons-floated div.wc-proceed-to-checkout {
  flex-direction: column;
}

div.fusion-woo-cart-totals-wrapper div.wc-proceed-to-checkout {
  display: block !important;
}

div.fusion-woo-cart-totals-wrapper div.wc-proceed-to-checkout a.fusion-update-cart {
  color: #000 !important;
  font-size: 13px;
  padding: 20px;
  display: block;
  font-weight: 600;
  text-transform: none;
  text-align: center;
  font-family: Poppins, Arial, Helvetica, sans-serif;
  background: none;
}

div.fusion-woo-cart-totals-wrapper div.wc-proceed-to-checkout a.checkout-button {
  background: #EFC256;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  margin-bottom: 10px;
  color: #000 !important;
  font-size: 13px;
  padding: 20px;
  display: block;
  width: 100%;
  font-weight: 600;
  text-transform: none;
  text-align: center;
  font-family: Poppins, Arial, Helvetica, sans-serif;
}

body.fusion-body .quantity .qty {
  border: 0;
}

.fusion-button-quantity,
.single-product .product .summary .cart .quantity .minus,
.single-product .product .summary .cart .quantity .plus,
.single-product .product .summary .cart .quantity .qty,
body.fusion-body .quantity .minus,
body.fusion-body .quantity .plus,
body.fusion-body .quantity .qty {
  background: white;
  padding: 0;
  height: 36px;
}

.return-to-shop {
  background: #EFC256;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  color: #000 !important;
  font-size: 13px;
  padding: 20px;
  display: block;
  font-weight: 600;
  text-transform: none;
  text-align: center;
  font-family: Poppins, Arial, Helvetica, sans-serif;
}

@media only screen and (max-width: 800px) {
  .shop_table_responsive.woocommerce-cart-form__contents .product-remove {
    top: 5px;
  }
}

/* Cart table */

.fusion-woo-cart_table {
  border: 1px solid #E0DEDE;
  border-radius: 3px;
}

.fusion-woo-cart_table thead tr th {
  padding: 20px;
}

.shop_table .product-name {
  padding-left: 20px;
}

.shop_table .product-remove {
  padding-right: 20px;
}

.fusion-woo-cart_table tbody tr td a.product-title, .fusion-woo-cart_table tbody tr td.product-subtotal .amount,
#order_review table.shop_table tbody tr td .product-info,
#order_review table.shop_table tbody tr td.product-total .amount {
  font-weight: 600 !important;
}

.fusion-woo-cart_table thead tr th,
#order_review table.shop_table thead tr th {
  font-size: 14px;
  font-weight: 600 !important;
  padding: 10px 20px 10px 20px !important;
}

div.fusion-woo-cart-totals-wrapper table.shop_table tbody tr th, #order_review table.shop_table tbody tr th {
  font-size: 16px;
  font-weight: 600 !important;
}

div.fusion-woo-cart-totals-wrapper table.shop_table tbody tr.shipping th, #order_review table.shop_table tbody tr.shipping th {
  vertical-align: top;
}

.afterpay-paragraph {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.afterpay-paragraph span {
  font-size: 14px !important;
}

/* Checkout Layout  */

.avada-myaccount-user {
  display: none !important;
}

.checkout-wrap,
.woocommerce-checkout #main > .fusion-row {
  max-width: 800px !important;
  margin: auto !important;
}

.avada-woo-one-page-checkout .woocommerce .checkout #customer_details .col-1,
.avada-woo-one-page-checkout .woocommerce .checkout #customer_details .col-2 {
  width: 100% !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

.avada-woo-one-page-checkout .woocommerce .checkout #customer_details .col-2 {
  border: 0 !important;
}

.woocommerce .checkout h3 {
  border-bottom: 0 !important;;
  margin-bottom: 0 !important;;
}

.woocommerce-billing-fields {
  padding: 20px !important;
}

.woocommerce-shipping-fields {
  margin-bottom: 20px !important;
}

#order_review table.shop_table tbody {
  border: 1px solid #E0DEDE;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

#order_review table.shop_table tbody tr td.product-total {
  padding-right: 20px !important;
}

#order_review .shop_table tfoot {
  border: 0 !important;
}

.checkout .shop_table tfoot tr:first-child th, .checkout .shop_table tfoot tr:first-child td {
  padding-top: 40px !important;
}


#order_review table.shop_table thead {
  border-top: 1px solid #E0DEDE;
  border-left: 1px solid #E0DEDE;
  border-right: 1px solid #E0DEDE;
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;
}

.woocommerce-checkout main#main {
  padding-top: 0;
}

.woocommerce-checkout .ywgc_enter_code > div > p:first-child {
  font-size: 18px !important;
  color: #4E4E4E !important;
  margin-bottom: 10px !important;
  font-weight: 600 !important;
}

.woocommerce-checkout .ywgc_enter_code {
  border: 1px solid #E0DEDE;
  width: 49% !important;
  float: right !important;
  margin-top: 0 !important;
  margin-top: 20px !important;
}

.woocommerce-checkout .ywgc_enter_code .form-row {
  margin-bottom: 0 !important;
}

.woocommerce-checkout .checkout_coupon_box {
  width: 50% !important;
  float: left !important;
  border: 1px solid #E0DEDE !important;
  flex-direction: column !important;
  justify-content: left !important;
  align-items: flex-start !important;
  padding: 20px !important;
}

.woocommerce-checkout .checkout_coupon_box button#dc_apply_coupon,
.woocommerce-checkout .ywgc_enter_code button[type="submit"] {
  padding: 9px 25px !important;
  color: #000 !important;
  font-weight: 700 !important;
  text-transform: none;
}

.woocommerce-checkout p#order_comments_field {
  margin-bottom: 0;
}

.woocommerce-checkout .checkout_coupon_box h2 {
  margin-bottom: 0px !important;
  border-bottom: 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #4E4E4E !important;
}

.woocommerce-checkout .woocommerce-account-fields .create-account {
  display: none !important;
}

.woocommerce-checkout .checkout_coupon_box .coupon-contents {
  float: none !important;
}

#ship-to-different-address {
  padding-bottom: 0 !important;
}

#ship-to-different-address label {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}

#ship-to-different-address input[type="checkbox"] {
  float: right;
}

.woocommerce-checkout .shop_table {
  margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-content-box {
  border: 0;
  padding: 0;
}

.checkout .shop_table tfoot th {
  display: block;
  float: right;
  max-width: 100px;
  text-align: left !important;
}

.checkout .shop_table tfoot .order-total th, #order_review table.shop_table tfoot .order-total td {
  padding-top: 15px;
  border-top: 1px solid #E0DEDE;
  border-bottom: 1px solid #E0DEDE;
  padding-bottom: 15px;
  line-height: normal;
}

.checkout .shop_table tfoot .order-total .amount {
  color: #4E4E4E !important;
  font-weight: 600 !important;
  font-size: 15px !important;
}

#wc-stripe-express-checkout-element {
  padding: 40px 120px 40px;
  border-top: 1px solid #E0DEDE;
  border-bottom: 1px solid #E0DEDE;
  position: relative;
  margin-bottom: 15px !important;
  margin-bottom: 40px !important;
}

#wc-stripe-express-checkout-element::before {
  content: 'Express Checkout';
  display: block;
  font-size: 14px;
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
}

#wc-stripe-express-checkout-element::after {
  content: 'OR';
  position: absolute;
  bottom: -14px;
  font-size: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 5px 8px;
}

/* Fix PayPal Smart Button Display */
#ppc-button-ppcp-gateway {
  width: 100%;
  margin: auto;
}

#wc-stripe-express-checkout-button-separator {
  display: none !important;
}

.checkout .payment_methods li {
  border: 1px solid #E0DEDE;
  padding: 0px;
  position: relative;
}

.checkout .payment_methods li label {
  display: flex;
  flex-direction: row-reverse;
  padding: 15px;
  align-items: center;
  justify-content: left;
}

.checkout .payment_methods .payment_box {
  margin-top: 0 !important;
}

.checkout .payment_methods li label img {
  margin-right: 15px;
}

.checkout .payment_methods li label .payment_box {
  padding: 15px;
}

.checkout .payment_methods li input[type="radio"] {
  visibility: hidden;
}

.checkout .payment_methods li.wc_payment_method.payment_method_stripe label {
  flex-direction: row;
}

.checkout .payment_methods li.wc_payment_method.payment_method_stripe .payment_box {
  background: none;
  padding: 0 15px 15px;
  margin: 20px 0 0;
}

.checkout .payment_method_stripe > label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 15px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2H0zm0 2v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6H0zm3 5a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2H4a1 1 0 0 1-1-1z" clip-rule="evenodd"/></svg>') 
        no-repeat center / contain;
}

.checkout .payment_methods li > input[type="radio"] {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.woocommerce-invalid:after {
  color: #C55142 !important;
  font-size: 12px !important;
}

.woocommerce .woocommerce-checkout #place_order {
  background: #EFC256 !important;
  color: #000 !important;
  border-radius: 30px !important;
  font-size: 16px !important;
  padding: 20px !important;
  display: block;
  font-weight: 600 !important;
  text-transform: none !important;
  text-align: center;
  font-family: Poppins, Arial, Helvetica, sans-serif !important;
  width: 100%;
  margin: 20px 0;
}

/* Checkout Low Stock Message */
h3.dc-low-stock-message {
  font-size: 16px !important;
  color: #C55142 !important;
  font-weight: 600 !important;
  padding-top: 30px !important;
  padding-bottom: 50px !important;
  font-style: italic !important;
}

@media (max-width: 800px) {
  #wc-stripe-express-checkout-element {
    padding: 20px 0px 0px;
  }

  #ppc-button-ppcp-gateway {
    max-width: none;
  }

  #dc-paypal-express-container {
    padding: 0px 0px 40px;
  }

  .woocommerce-checkout .ywgc_enter_code {
    width: 100% !important;
    float: none !important;
  }
  .woocommerce-checkout .checkout_coupon_box .coupon-contents {
    display: flex;
    clear: both;
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .woocommerce-checkout .checkout_coupon_box .coupon-contents .coupon-input {
    width: 50% !important;
    padding-right: 10px;
  }
  .woocommerce-checkout .checkout_coupon_box .coupon-contents .coupon-button {
    width: 50% !important;
    margin-left: 5px;
    text-align: left;
  }
}

@media (max-width: 500px) {
  .woocommerce-checkout .checkout_coupon_box input {
    max-width: 125px;
  }
  .woocommerce-checkout .checkout_coupon_box button#dc_apply_coupon, .woocommerce-checkout .ywgc_enter_code button[type="submit"] {
    padding: 9px 15px !important;
    font-size: 13px;
  }
}

/* Custom New Account Section */
.woocommerce-form-login-toggle {
    display: none !important;
}

.dc-new-account-box {
    border: 1px solid #E0DEDE;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.dc-new-account-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    border-bottom: 0 !important;
}

.dc-login-toggle-btn {
    position: absolute;
    top: 30px;
    right: 20px;
    text-decoration: underline;
    font-weight: 300;
    font-size: 12px;
    color: #4E4E4E;
}

.dc-login-close {
    position: absolute;
    top: 27px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 10;
}

.dc-login-container {
    position: relative;
}

.dc-login-container .woocommerce-form-login {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dc-login-container .woocommerce-form-login .lost_password {
    float: none !important;
}

.dc-login-container .woocommerce-form-login > p.form-row {
    margin-right: 0 !important;
}

.woocommerce-checkout .woocommerce .woocommerce-form-login {
    overflow: hidden;
}

/* Payment Header */
.dc-payment-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 80px;
}

.dc-payment-header h3 {
    margin: 0;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

.dc-payment-header .woocommerce-terms-and-conditions-wrapper {
    margin: 0;
}

.dc-payment-header .woocommerce-terms-and-conditions-wrapper .form-row {
    margin: 0;
    padding: 0;
}

/* Mobile Cart Layout */
@media only screen and (max-width: 800px) {
  /* Set table row to grid layout */
  .woocommerce-cart .shop_table.cart tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: 140px 1fr !important;
    grid-template-rows: auto auto auto auto !important;
    grid-template-areas:
      "image product"
      "image price"
      "image quantity"
      "image subtotal"
      "image remove" !important;
    gap: 5px 15px !important;
    border-bottom: 1px solid #E0DEDE !important;
    padding: 20px !important;
    position: relative !important;
    place-items: flex-start;
  }

  /* 
   * CRITICAL: Use display: contents to "unwrap" the TD.product-name 
   * so its children (image and info) become direct grid items of the TR.
   */
  .woocommerce-cart .shop_table.cart td.product-name,
  .woocommerce-cart .shop_table.cart td.product-name .fusion-product-name-wrapper {
    display: contents !important;
  }

  /* Reset default TD display styles */
  .woocommerce-cart .shop_table.cart td {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: none !important;
  }
  
  /* Hide default mobile labels */
  .woocommerce-cart .shop_table.cart td::before {
    display: none !important;
  }

  /* Assign Grid Areas */
  
  /* Image is span.product-thumbnail inside td.product-name */
  .woocommerce-cart .shop_table.cart .product-thumbnail { 
    grid-area: image !important; 
    display: block !important;
  }
  
  .woocommerce-cart .shop_table.cart .product-thumbnail img {
    width: 100% !important;
    height: auto !important;
  }

  /* Info is div.product-info inside td.product-name */
  .woocommerce-cart .shop_table.cart .product-info { 
    grid-area: product !important;
    font-weight: 600 !important;
    text-align: left !important;
    padding-right: 20px;
    margin-bottom: 5px !important;
    margin-top: 0 !important;
  }
  
  .woocommerce-cart .shop_table.cart .product-price { 
    grid-area: price !important; 
    margin-bottom: 5px !important;
  }
  
  .woocommerce-cart .shop_table.cart .product-quantity { 
    grid-area: quantity !important; 
  }
  
  .woocommerce-cart .shop_table.cart .product-subtotal { 
    grid-area: subtotal !important;
    display: none !important; 
  }

  .shop_table_responsive.woocommerce-cart-form__contents .product-remove a {
    left: unset !important;
    right: 10px;
  }

  .shop_table_responsive.woocommerce-cart-form__contents tbody tr.avada-cart-actions {
    padding: 0;
  }
  
}

@media only screen and (max-width: 800px) {
  .shop_table_responsive.woocommerce-cart-form__contents .product-thumbnail {
    max-width: 100%;
  }
  .dc-payment-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .checkout .shop_table tfoot .order-total th {
    height: 100%;
    min-height: 85px;
    vertical-align: middle;
    display: flex;
    place-items: center;
  }
}

@media only screen and (max-width: 550px) {
  .woocommerce-cart .shop_table.cart tbody tr.cart_item {
    grid-template-columns: 110px 1fr !important;
  }
  .shop_table_responsive.woocommerce-cart-form__contents .product-thumbnail img {
    width: auto;
  }
}
