/*!
 * Guideposts Slide Cart
 * Cart, mini-cart and donation styles, extracted from the theme's noem-style.css.
 * Non-cart rules (footer, gift sections, bookstore template, account menu)
 * remain in the theme stylesheet.
 */

.noemheader .top-header {
  padding: 20px 0;
}

.noemheader .container {
  max-width: 1470px;
  margin: 0 auto;
  padding: 0 15px;
}

.elementor-widget-shortcode .noemheader .top-header .container {
  padding: 0 !important;
}

.noemheader .top-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.noemheader .sitelogo img {
  max-width: 240px;
  display: block;
}

.noemheader .shop-header-mainMenu {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #a6a6a6;
}

.noemheader .top-header-promo {
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  background-color: #0e2349;
  color: #d5f2ee;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 20px;
  padding: 15px;
}

.noemheader .top-header-promo a {
  color: #d5f2ee;
  text-decoration: underline;
}

.noemheader .top-header-promo a:hover {
  text-decoration: none;
  color: #fff;
}

.headerlinks a span {
  color: #4a73b6;
  text-transform: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.24px;
}

.headerlinks {
  display: flex;
  column-gap: 30px;
  padding-right: 30px;
}

.headerlinks .linkitem {
  position: relative;
}

.headerlinks .linkitem > a {
  margin-top: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 4px;
}

.headerlinks .linkitem > a::before {
  width: 32px;
  height: 32px;
  display: inline-block;
  font-weight: 400;
  text-align: center;
  background-size: 100%;
  opacity: 1;
  position: relative;
  margin: 0 auto;
  content: "";
}

.headerlinks .linkitem a#donate:before {
  background-image: url(../images/donate-icon.svg);
}

.headerlinks .linkitem a#customerCare:before {
  background-image: url(../images/care-icon.svg);
}

.headerlinks .linkitem a#myAccount:before {
  background-image: url(../images/account-icon.svg);
}

.headerlinks .linkitem a#myCart:before {
  background-image: url(../images/cart-icon.svg);
}

.headerlinks .linkitem a#gift-bounce::before {
  background-image: url(../images/Gift-02.svg);
  transform-origin: 50% 100%;
  animation: gift-bounce 6s ease-in-out infinite;
  transition: transform 0.25s ease;
}

.headerlinks .linkitem .text {
  color: #4a73b6;
  text-transform: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.24px;
  display: block;
}

.headeraction {
  display: flex;
  align-items: center;
}

.headerlinks .linkitem a#myAccount {
  cursor: pointer;
}

.cartBubble {
  position: relative;
}

.cartBubble .cart-quantity {
  right: -25px;
  top: -8px;
  background: #4a73b6;
  border: 0;
  width: 26px;
  height: 22px;
  line-height: 22px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.48px;
  position: absolute;
  text-align: center;
  color: #fff;
}

.custom-woo-header {
  transition: top 0.9s ease-in-out !important;
  background-color: #fff;
}

*/

html.cart-open {
  margin-left: 0;
  margin-right: 17px; /* Width of scrollbar */
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.headerminicart {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}

/* Overlay transition */
.headerminicart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.3s ease-in-out 0.1s; /* Delay for smooth close */
  cursor: pointer;
  z-index: 1;
  pointer-events: none;
}

/* Show overlay when cart is active */
.headerminicart.cartactive {
  pointer-events: auto;
}

/* Show overlay when cart is active */
.headerminicart.cartactive::before {
  opacity: 1;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  transition: opacity 0.3s ease-in-out; /* No delay when opening */
}

/* HIDE the div overlay since we're using ::before */
.mini-cart-overlay {
  display: none !important;
}

/* Slide in when cart has both open AND cartactive classes */
.headerminicart.open.cartactive .minicart {
  transform: translateX(0);
}

/* =========================
   CART PANEL
========================= */

.minicart {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #fff;
  box-shadow: -3px 0 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%); /* Start off-screen */
}

/* Slide in when cart is active */
.headerminicart.cartactive .minicart {
  right: 0;
  transform: translateX(0);
}

/* Fast transition for add-to-cart */
.headerminicart.fast-open .minicart {
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =========================
   CART HEADER
========================= */

.minicart .minicarthead {
  width: 100%;
  padding: 10px 15px;
  border-bottom: 1px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.minicart .minicarthead h2 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  font-family: "STIX Two Text", Sans-serif;
  color: #000;
  margin: 0;
}

.minicart .minicarthead h2 span {
  font-weight: 400;
  color: #0047bb;
  margin-left: 5px;
}

.minicart .minicarthead .closeCart {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.minicart .minicarthead .closeCart svg {
  width: 10px;
  height: 10px;
}

.minicart .minicarthead .closeCart:hover svg path {
  fill: #0047bb;
}

.closeCart svg,
.closeCart svg * {
  pointer-events: none;
}

/* =========================
   CART ITEMS
========================= */

.minicartitems {
  padding: 15px;
}

.minicartitems table.shop_table {
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
}

/* Responsive table styles */
.woocommerce-js .minicartitems .shop_table tr {
  display: block;
  width: 100%;
  float: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.woocommerce-js .minicartitems table.shop_table tr td.product-thumbnail {
  display: block;
  text-align: center !important;
  width: 22%;
  float: left;
  padding: 10px 0;
  border: 0;
}

.woocommerce-js .minicartitems table.shop_table_responsive tr td.product-name {
  text-align: left !important;
  width: 78%;
  float: left;
  border-top: 0;
  font-size: 14px;
  padding: 10px;
  border: 0;
}

.woocommerce-js .minicartitems .shop_table td.product-price,
.woocommerce-js .minicartitems .shop_table td.product-quantity,
.woocommerce-js .minicartitems .shop_table td.product-subtotal {
  display: inline-flex;
  float: left;
  width: 33.333333%;
  flex-direction: column;
  align-items: center;
  border: 0;
  border-top: 1px solid #ddd !important;
  padding: 8px;
}

.woocommerce-js .minicartitems .shop_table td.product-subtotal a.remove {
  font-size: 14px;
}

.woocommerce-js .minicartitems table.shop_table_responsive tr td::before {
  content: attr(data-title) ":";
  font-weight: 700;
  float: left;
  font-size: 14px !important;
  line-height: 16px !important;
  margin-bottom: 2px;
}

.woocommerce-js .minicartitems table.shop_table td a.remove::before,
.woocommerce-js .minicartitems table.shop_table td.product-thumbnail::before,
.woocommerce-js
  .minicartitems
  table.shop_table_responsive
  tr
  td.product-name::before,
.woocommerce-js
  .minicartitems
  table.shop_table_responsive
  tr
  td.product-name
  a::before {
  display: none;
}

/* Quantity buttons */
.minicartitems table.shop_table .qib-button-wrapper button.qib-button,
.minicartitems
  table.shop_table
  .qib-button-wrapper
  .quantity
  input.input-text.qty.text {
  height: 34px !important;
  min-height: 34px !important;
  padding: 5px !important;
}

.minicartitems
  table.shop_table
  .qib-button-wrapper
  div.quantity.wqpmb_quantity {
  height: 34px !important;
}

.minicartitems table.shop_table .susb_terms,
.minicartitems table.shop_table .skucart {
  margin: 5px 0 0;
}

.minicartitems table.shop_table .susb_terms {
  font-size: 14px !important;
  line-height: 16px !important;
  color: #000 !important;
  font-weight: 400 !important;
}

.minicartitems table.shop_table td .product-name .sprtr,
.minicartitems table.shop_table td .product-name a,
.minicartitems table.shop_table .variation-details {
  font-weight: 600;
}

/* =========================
   DONATION SECTION
========================= */

.minidonatecart {
  width: 100%;
  padding: 15px;
}

.minidonatecart .donatecart .product-item {
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
}

.minidonatecart .donatecart .donation-panel {
  width: 100%;
}

.minidonatecart .donatecart .value-select .price-select {
  font-size: 14px;
  padding: 6px;
}

.minidonatecart .donatecart .value-select {
  margin-bottom: 10px;
}

/* Donation Styles */
/* Donation Styles */
.donatecart .value-select {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.donatecart .price-select,
.donatecart .donation-select {
  flex: 1;
  min-width: calc(33.333% - 10px);
  padding: 10px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  transition: all 0.2s ease;
  user-select: none;
}

.donatecart .price-select:hover,
.donatecart .donation-select:hover {
  border-color: #0047bb;
  background: #f8f9fa;
}

.donatecart .price-select.selected,
.donatecart .donation-select.selected {
  background: #0047bb;
  color: #fff;
  border-color: #0047bb;
}

.donatecart .custom-amount-input-wrapper {
  position: relative;
  flex: 1;
}

.donatecart .custom-amount-input-wrapper .currency-symbol {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.donatecart .custom-donation-input-field {
  width: 100%;
  padding: 10px 10px 10px 25px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.donatecart .custom-donation-input {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.donatecart .add-donation-btn {
  padding: 12px 20px;
  background: #0047bb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
  width: 100%;
}

.donatecart .add-donation-btn:hover {
  background: #003a9b;
}

.donatecart .add-donation-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.donatecart .add-donation-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.donatecart .success.message {
  margin-top: 10px;
  padding: 10px;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  text-align: center;
}

.donatecart .msg.error {
  color: #721c24;
  font-size: 12px;
  margin-top: 5px;
}

/* Loading state */
.donatecart .add-donation-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.donation-loading {
  text-align: center;
  padding: 20px;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0047bb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

/* Disabled state after donation added */
.donatecart .price-select.disabled,
.donatecart .donation-select.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.donation-product {
  border: 1px solid #ddd;
  padding: 20px;
  margin: 20px 0;
}

.price-section,
.quantity-section,
.subtotal-section {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.donation-amount-input {
  width: 100px;
  padding: 5px;
}

.add-to-cart-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

.remove-donation {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  margin-left: 10px;
  cursor: pointer;
}

/* =========================
   CART FOOTER
========================= */

.bottomcartitems {
  width: 100%;
  padding: 0 15px;
}

.minicartTable {
  padding: 15px 0;
}

.woocommerce-js .minicartTable table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  margin: 0;
}

.woocommerce-js .minicartTable table.shop_table tr {
  border-bottom: 1px solid #d9d9d9;
}

.woocommerce-js .minicartTable table.shop_table tr th {
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #262626;
  padding: 10px 0;
  border: 0;
}

.woocommerce-js .minicartTable table.shop_table tr td {
  text-align: right;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #262626;
  padding: 10px 0;
  border: 0;
}


.woocommerce-js .minicartTable table.shop_table tr:last-child {
  border-bottom: none;
}

.woocommerce-js .minicartTable table.shop_table tr td .usecode {
  font-size: 12px;
}

.woocommerce-js .minicartTable table.shop_table tr td .usecode span {
  color: #0047bb;
}

.woocommerce-js .minicartTable table.shop_table tr td.cart-order-total-amount .amount{
  font-weight: 700;
}

.woocommerce-js .minicartTable table.shop_table tr.order-total th,
.woocommerce-js .minicartTable table.shop_table tr.order-total td {
  font-size: 16px;
  font-weight: 700 !important;
}

.woocommerce-js .minicartTable table.shop_table tr.order-total td .amount {
  font-weight: 700 !important;
}

.woocommerce-js .minicartTable table.shop_table tr td .amount bdi {
  font-weight: 600;
}

.minicartTable .cartnote {
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  text-align: center;
  font-size: 14px;
  padding: 10px 0;
  margin: 10px 0 0;
}

/* =========================
   CHECKOUT BUTTONS
========================= */

.minicart .wc-proceed-to-checkout {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-wrap: wrap;
}

.minicart .wc-proceed-to-checkout .checkout-button {
  flex-direction: row;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  font-size: 15px;
  padding: 0 !important;
}

.minicart .wc-proceed-to-checkout .checkout-button.multipaladdess {
  border: 2px solid #0047bb;
  background: transparent;
}

.minicart .wc-proceed-to-checkout .checkout-button img {
  width: 17px;
  display: block;
}

.minicart .wc-proceed-to-checkout .checkout-button::before {
  display: none;
}

/* =========================
   SHIPPING INFO CARDS
========================= */

.minicart .checkout-shipping-wrapper.card {
  padding: 15px 0;
}

.minicart .checkout-shipping-wrapper .item .text {
  font-size: 8px !important;
  line-height: 14px;
}

/* =========================
   EMPTY CART
========================= */

.minicart .empty-cart-message {
  padding: 0 15px;
  text-align: center;
  font-family: "STIX Two Text", Sans-serif;
  font-weight: 600;
}

/* =========================
   LOADING / UPDATING STATE
========================= */

.minicart.updating {
  pointer-events: none;
}

.minicart.updating::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

/* =========================
   MESSAGES
========================= */

.mini-cart-message {
  padding: 10px 14px;
  margin: 10px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

.mini-cart-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.mini-cart-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* =========================
   TOAST ERROR (TOP RIGHT)
========================= */

.cart-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #d9534f;
  color: #fff;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transform: translateX(120%);
  transition: transform 220ms ease-out;
  z-index: 99999;
}

.cart-toast.show {
  transform: translateX(0);
}

.donatecart .value-select .donation-select {
  border: 1px solid #e5e5e5;
  width: calc(33% - 5px);
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  padding: 6px;
  cursor: pointer;
  user-select: none;
}

.donatecart .value-select .donation-select.selected {
  background: #001a72;
  border-color: #001a72;
  color: #fff;
}

.minidonatecart .custom-donation-input input[type="number"] {
  height: 42px;
  padding-left: 25px;
  padding-right: 10px;
  width: 100%;
  font-size: 14px;
}

.minidonatecart .donatecart .custom-amount-input-wrapper {
  width: 130px;
}

.minidonatecart .donatecart .custom-donation-input .button {
  height: 42px !important;
  width: calc(100% - 140px) !important;
}

@media (max-width: 979px) {
.noemheader .top-header {
    padding: 0;
  }
}

@media (max-width: 767px) {
.headerlinks .linkitem > a::before {
    width: 25px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
  }
.headerlinks .linkitem > a {
    height: 30px;
  }
.headerlinks .linkitem a .text {
    display: none;
  }
.cartBubble .cart-quantity {
    right: -20px;
    width: 24px;
    height: 20px;
    font-size: 10px;
  }
.woocommerce-js .bottomcartitems .minicartTable table.shop_table tr {
    display: flex;
    justify-content: space-between;
  }
.woocommerce-js .bottomcartitems .minicartTable table.shop_table tr th {
    display: initial!important;
  }
.woocommerce-js .bottomcartitems .minicartTable table.shop_table tr td::before {
    display: none!important;
  }
.minicartTable { padding-top: 0;}
}

/* Discount Code Section Styles */
.minicart-discount-code {
  margin: 15px 0;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.discount-code-wrapper {
  text-align: center;
}

.discount-code-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  color: #000;
  text-align: left;
  font-size: 14px;
}

.discount-code-input-group {
  display: flex;
  gap: 0;
  margin-bottom: 5px;
}

.discount-code-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.discount-code-input:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 1px #007cba;
}

.discount-code-apply-btn {
  padding: 10px 20px;
  background-color: #4a73b6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.discount-code-apply-btn:hover {
  background-color: #001a72;
}

.discount-code-note {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  text-align: left;
}

.coupon-message {
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

.coupon-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.coupon-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.applied-coupons {
  margin: 15px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #e9ecef;
}

.applied-coupons-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #000;
  font-size: 15px;
}

.applied-coupon-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #dee2e6;
  flex-wrap: wrap;
}

.applied-coupon-item:last-child {
  border-bottom: none;
}

.coupon-code {
  font-weight: 400;
  color: #000;
  font-size: 14px;
  order: 1;
}

.coupon-description {
  font-size: 12px;
  margin-top: 2px;
  color: #28a745;
  width: 100%;
  order: 4;
}

.coupon-amount {
  font-weight: 600;
  color: #000;
  font-size: 14px;
  order: 2;
  margin-left: auto;
  margin-right: 10px;
}

.remove-coupon {
  color: #4a73b6;
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
  order: 3;
}

.remove-coupon:hover {
  color: #001a72;
  text-decoration: underline;
}

/* Disabled quantity controls */
.cart-quantity-input.disabled,
.qib-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading state for quantity inputs */
.minicartitems table.shop_table tr.updating {
  position: relative;
}

.minicartitems table.shop_table tr.updating::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.minicartitems table.shop_table tr.updating td {
  position: relative;
  z-index: 2;
}

/* Loading text */
.loading {
  color: #666;
  font-style: italic;
  font-size: 12px;
}

/* Disable pointer events on entire cart when updating */
.headerminicart.updating {
  pointer-events: none;
}

.headerminicart.updating .minicart {
  opacity: 0.5;
}

/* Specific styling for disabled donation buttons */
.donatecart .price-select.disabled,
.donatecart .donation-select.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Disabled input field */
.donatecart .custom-donation-input-field:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

/* Enhanced disabled states for better UX */
.cart-quantity-input.disabled,
.qib-button.disabled,
.discount-code-apply-btn.disabled,
.add-donation-btn.disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Loading state for all buttons */
button.loading,
a.loading {
  position: relative;
  color: transparent !important;
}

button.loading::after,
a.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Global updating overlay */
.headerminicart.updating::before {
  background: rgba(0, 0, 0, 0.3) !important;
  cursor: wait !important;
}

.headerminicart.updating * {
  cursor: wait !important;
}

/* Global updating state for cart */
.headerminicart.global-updating .minicart {
  position: relative;
}

.headerminicart.global-updating .minicart::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 999;
  pointer-events: none;
}

/* Disabled state for all interactive elements */
.minicart .cart-quantity-input.disabled,
.minicart .qib-button.disabled,
.minicart .remove-cart-item.disabled,
.minicart .remove-donation-btn.disabled,
.minicart .discount-code-apply-btn.disabled,
.minicart .add-donation-btn.disabled,
.minicart .checkout-button.disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Global loading cursor */
.headerminicart.updating,
.headerminicart.global-updating {
  cursor: wait !important;
}

html.cartactive body {
  position: fixed;
  overflow: hidden;
  width: 100%;
  padding-right: var(--scrollbar-width, 0px);
}

.headerminicart.updating *,
.headerminicart.global-updating * {
  cursor: wait !important;
}

.donation-checkbox-wrapper {
  margin: 0;
  padding: 5px 15px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.donation-checkbox-wrapper input {
  width: 20px;
}

.donation-checkbox-wrapper input[type="checkbox"]:checked {
  border-color: #4a73b6;
  background-color: #4a73b6;
  box-shadow: none;
}

.donation-checkbox-wrapper label {
  color: #262626;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 16.8px;
  letter-spacing: -0.26px;
  text-transform: capitalize;
}

.donation-checkbox-wrapper svg:hover {
  cursor: pointer;
}

.donation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.donation-modal {
  padding: 2rem;
  border: 1px solid #000;
  background: #fff;
  text-align: center;
  position: relative;
  max-width: 580px;
}

.donation-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.donation-modal-donate {
  padding: 0.5rem 1rem;
  background: #0047bb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 60%;
}

.donation-modal h3 {
  color: #262626;
  font-family: Inter;
  font-size: 26.727px;
  font-style: normal;
  font-weight: 700;
  line-height: 32.073px;
  letter-spacing: -0.535px;
  margin-bottom: 20px;
  text-transform: capitalize;
}

.donation-modal p {
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.32px;
  color: #262626;
}

@media (max-width: 841px) {
.donation-modal {
    max-width: 350px;
    padding: 1.2rem;
    margin-top: 250px;
  }
.donation-modal-donate {
    width: 100%;
    padding: 0.7rem 1rem;
  }
.donation-modal h3 {
    font-size: 26.727px;
    line-height: 32.073px;
  }
.donation-modal-overlay {
    background: rgba(151, 149, 149, 0.6);
  }
}

.donation-checkbox-container {
  margin: 15px 0;
}

.donation-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.donation-checkbox-wrapper:hover {
  border-color: #4caf50;
  background: #f0f9f0;
}

.donation-checkbox-wrapper.checked {
  border-color: #4caf50;
  background: #e8f5e9;
}

.custom-checkbox-visual {
  width: 22px;
  height: 22px;
  border: 2px solid #666;
  border-radius: 4px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.donation-checkbox-wrapper.checked .custom-checkbox-visual {
  background: #4caf50;
  border-color: #4caf50;
}

.donation-label {
  font-size: 16px;
  color: #333;
  cursor: pointer;
  margin: 0;
  flex-grow: 1;
  font-weight: 500;
  transition: all 0.2s ease;
}

.donation-checkbox-wrapper.checked .donation-label {
  color: #2e7d32;
  font-weight: 600;
}

.info-icon {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.info-icon:hover {
  opacity: 1;
}

/* Basic checkbox styling */
#add-donation-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: middle;
  cursor: pointer;
}

.donation-label {
  cursor: pointer;
  font-size: 16px;
  vertical-align: middle;
}

/* .info-icon {
    display: none;
    margin-left: 10px;
    vertical-align: middle;
}

*/

/* Show info icon when checkbox is checked */
#add-donation-checkbox:checked ~ .info-icon {
  display: inline-block;
}

.cartBubble {
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------------
 * Slide cart totals block
 * ------------------------------------------------------------------ */

.minicartTable .gsc-cart-totals {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.woocommerce-js .minicartTable .gsc-cart-totals tr,
.minicartTable .gsc-cart-totals tr {
  border: 0;
}

.minicartTable .gsc-cart-totals th,
.minicartTable .gsc-cart-totals td {
  border: 0;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 400;
  color: #262626;
  background: transparent;
  vertical-align: top;
}

.minicartTable .gsc-cart-totals th {
  text-align: left;
}

.minicartTable .gsc-cart-totals td {
  text-align: right;
  white-space: nowrap;
}

/* Coupon row */
.minicartTable .gsc-cart-totals tr.coupon-row th {
  font-weight: 400;
  line-height: 1.4;
}

.minicartTable .gsc-cart-totals tr.coupon-row th .coupon-label {
  display: block;
}

.minicartTable .gsc-cart-totals tr.coupon-row th .coupon-code {
  display: block;
}

.minicartTable .gsc-cart-totals tr.coupon-row td {
  white-space: normal;
}

.minicartTable .gsc-cart-totals .remove-coupon {
  display: block;
  color: #4a73b6;
  font-size: 14px;
  text-decoration: none;
  font-weight: 400;
}

.minicartTable .gsc-cart-totals .remove-coupon:hover {
  color: #001a72;
  text-decoration: underline;
}

.minicartTable .gsc-cart-totals .coupon-amount {
  display: block;
  font-weight: 600;
}

.minicartTable .gsc-cart-totals .coupon-description {
  color: #1a8c3c;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 2px;
  text-align: right;
  white-space: normal;
}

/* Estimated tax pending state */
.minicartTable .gsc-cart-totals tr.cart-tax.tax-pending td {
  color: #262626;
}

/* Order total */
.minicartTable .gsc-cart-totals tr.cart-order-total th,
.minicartTable .gsc-cart-totals tr.cart-order-total td {
  border-top: 1px solid #e0e0e0;
  padding-top: 14px;
  font-size: 16px;
}

.minicartTable .gsc-cart-totals tr.cart-order-total th strong,
.minicartTable .gsc-cart-totals tr.cart-order-total td strong {
  font-weight: 700;
}

.minicartTable .cartnote {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
  font-size: 13px;
  color: #5a5a5a;
  text-align: center;
}
