.elementor-add-to-cart {
  width: auto;
  margin: 0 auto;
  padding: 0 40% 0 0;
}

.elementor-add-to-cart .woocommerce-variation-add-to-cart {
  flex-direction: column;
  gap: 20px;
}

.elementor-add-to-cart form.cart,
.elementor-add-to-cart form.variations_form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-content: flex-start;
  flex-direction: column;
}

.elementor-add-to-cart form.variations_form .single_variation_wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.elementor-add-to-cart
  form.cart
  .controls
  .controls_wrapper
  .qty_button:last-of-type {
  margin: 0;
}

/* .elementor-add-to-cart form.cart .single_add_to_cart_button {
  margin: 0 20%;
}

.elementor-add-to-cart #wc-stripe-express-checkout-element {
  padding: 0 20% 0 0;
} */

/* .controls > * {
  flex: 1;
  min-width: 0;
} */

.controls input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.controls input[type='number'] {
  -moz-appearance: textfield;
  width: 60px;
  text-align: center;
  height: 40px;
  border: 1px solid #ccc;
}

.selector-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.elementor-add-to-cart form.cart .controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.elementor-add-to-cart form.cart .controls label span {
  font-size: 14px;
}

/* Keep minus, input and plus on the same row */
.elementor-add-to-cart form.cart .controls_wrapper {
  display: flex;
  align-items: center;
  gap: 8px; /* spacing between items */
}

/* Optional: style buttons */
.product-quantity .controls_wrapper button.qty_button,
.controls_wrapper button.qty_button {
  width: 25px;
  height: 25px;
  cursor: pointer;
  border-radius: 25px;
  background-color: #c52731;
  vertical-align: last baseline;
  margin: auto 0;
  line-height: 0;
  padding: 0;
  cursor: pointer;
  padding-bottom: 2px;
}

/* Optional: fix input width */

.quantity input.input-text.qty.dynamic-qty::-webkit-outer-spin-button,
.quantity input.input-text.qty.dynamic-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity input.input-text.qty.dynamic-qty {
  width: 86px;
  -moz-appearance: textfield;
  appearance: textfield;
  height: 40px;
  max-height: 40px;
  min-width: 20px;
  text-align: center;
  -moz-appearance: textfield;
}
.elementor-widget-container.intro-cart {
  margin: 20px;
  width: 80%;
}

.elementor-widget-container.intro-cart .elementor-heading-title {
  line-height: 1.5;
}

.elementor-widget-woocommerce-cart .woocommerce .product-name .variation {
  color: #000;
}

#display_price {
  width: 70px;
  text-align: center;
}

.e-shop-table .cart th,
.e-shop-table .cart td.product-subtotal {
  text-align: center;
}

.e-shop-table table.shop_table.shop_table_responsive td .controls_wrapper {
  display: flex;
  gap: 5px;
  justify-content: center;
}
/* Variation Table */
.e-shop-table
  table.shop_table.shop_table_responsive
  .product-name
  dl.variation {
  display: flex;
  flex-flow: row wrap; /* Allows items to wrap to "rows" */
  width: 100%;
  gap: 4px 0; /* Vertical gap of 4px, no horizontal gap */
}

/* The Label (Left side) */
.e-shop-table
  table.shop_table.shop_table_responsive
  .product-name
  dl.variation
  dt {
  flex: 0 0 45%; /* Takes up exactly half the width */
  margin: 0;
  font-weight: bold;
  text-align: left;
}

/* The Value (Right side) */
.e-shop-table
  table.shop_table.shop_table_responsive
  .product-name
  dl.variation
  dd {
  flex: 0 0 55%; /* Takes up the other half */
  margin: 0;
  text-align: left;
}

/* Optional: Remove the default paragraph margins inside dd if they exist */
.e-shop-table
  table.shop_table.shop_table_responsive
  .product-name
  dl.variation
  dd
  p {
  margin: 0;
  display: inline;
}

.woocommerce .e-cart__container {
  flex-wrap: wrap;
  grid-template-columns: auto 350px !important;
}

#wc-stripe-express-checkout-element{

    background: white !important;
    z-index: 2 !important;
    margin-top: 0px !important;
    padding-top: 1rem !important;
}
/**/

@media (max-width: 768px) {
  .elementor-add-to-cart {
    padding: 0;
  }

  .elementor-widget-container .elementor-add-to-cart form.cart .controls {
    flex-wrap: nowrap !important;
  }


  .e-shop-table table.shop_table.shop_table_responsive td .controls {
    display: flex;
    align-items: center;
  }

  .e-shop-table table.shop_table.shop_table_responsive td .controls_wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
  }

  .e-shop-table table.shop_table.shop_table_responsive td .controls > * {
    flex: 1;
    min-width: 0;
  }

  .e-shop-table table.shop_table.shop_table_responsive td.product-price,
  .e-shop-table table.shop_table.shop_table_responsive td.product-quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .e-shop-table table.shop_table.shop_table_responsive td.product-price::before,
  .e-shoptable
    table.shop_table.shop_table_responsive
    td.product-quantity::before {
    float: none;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
  }

  .e-shop-table table.shop_table.shop_table_responsive tr {
    padding: 16px;
  }
}

/* Container Layout */
.optional-donation .radioGroup__wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: stretch; /* Forces equal height */
  margin-top: 20px;
}

.optional-donation .radio-item {
  flex: 1; /* Distributes width evenly */
  display: flex;
}

/* Hide the native radio button */
.optional-donation .radio__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* Base Button Style (The Label) */
.optional-donation .radio__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 5px;
  border: 2px solid #d3e4fe;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease-in-out;
  text-align: center;
  box-sizing: border-box;
  min-height: 60px; /* Ensures consistent height */
}

/* Typography Adjustments */
.optional-donation .radio--numeric .label-text {
  font-size: 0.9rem; /* Numeric values slightly smaller */
  font-weight: bold;
}

.optional-donation .radio--no-thanks .label-text {
  font-size: 0.85rem;
  line-height: 1.2;
}

/* Custom Amount Input Styling */
.optional-donation .custom-input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.optional-donation .custom-label-text {
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.8;
}

.optional-donation .radio__labelInput {
  width: 50px;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  text-align: center;
  padding: 2px;
  font-size: 14px;
  outline: none;
}

/* Hover State */
.optional-donation .radio__label:hover,
.optional-donation .radio__label.radio__selected {
  border-width: 8pt;
}

/* Adjust input color when parent is selected */
.optional-donation .radio__input:checked + .radio__label .radio__labelInput {
  color: #000;
  border-bottom-color: #fff;
}

/* Responsive: Allow wrapping on very small screens if needed */
@media (max-width: 480px) {
  .optional-donation .radioGroup__wrapper {
    flex-wrap: wrap;
  }
  .optional-donation .radio-item {
    flex: 1 1 45%; /* 2 per row on mobile */
  }

  .elementor-widget-woocommerce-cart .e-cart__container {
        grid-template-columns: repeat(1, 1fr) !important;
  }
}

.e-cart-section.optional-donation {
  border-width: 5px;
}

/* ui quatity with €*/

.contribute_wrapper .quantity {
  display: flex;
  vertical-align: middle;
  align-items: center;
  border: 1px solid #d2e4fe;
  padding-right: 6px;
}

.contribute_wrapper .quantity::after {
  content: '€';
}

.contribute_wrapper .quantity input {
  border: none;
  width: 60px;
}



@media (min-width: 760px) {
  .e-cart__column-inner.e-sticky-right-column.e-sticky-right-column--active {
      position: initial;
      height: 100%;
  }

  .e-cart__column-inner  .e-cart-totals.e-cart-section {
      height: 100%;
  }

  .e-cart__column-inner  .cart-collaterals {
      height: 100%;
  }

  .e-cart__column-inner  .cart_totals {
      height: 100%;
      display: flex;
      flex-direction: column;
  }


  .e-cart__column-inner  .wc-proceed-to-checkout {
      flex-grow: 2;
      display: flex;
      justify-content: end;
  }


  .e-cart__column-inner  .cart-collaterals h2 {
      position: sticky;
      top: 133px;
  }

  .e-cart__column-inner  table.shop_table.shop_table_responsive {
      position: sticky;
      top: 150px;
      margin-bottom: 40px !important;
      background: #fff;
  }
}