.woocommerce .product .charit-project .charit-project-section form.cart {
  margin: 0;
}
.woocommerce.woocommerce-page .product .product_meta p {
  padding: 0;
}
.woocommerce.woocommerce-page .product .product_meta .charit-project button.single_add_to_cart_button {
  margin: 0;
  padding: 12px 16px !important;
  font-size: 14px;
}

.woocommerce.woocommerce-page .product .summary .price,
.woocommerce.woocommerce-page .product .summary .first-payment-date {
  display: none;
}

.charit-project-section-title {
  display: none;
  margin: 16px 0;
}

.charit-project-section--goal .charit-project-section-title {
  display: block;
  margin-bottom: 8px;
}

.charit-project .variations {
  padding: 0;
  margin: 0;
  list-style: none;
}
.charit-project .variation-item {
  display: flex;
  flex-direction: row;
  align-items: start;
  margin: 16px 0 24px;
  gap: 16px;
}
.charit-project .variation-item-meta {
  flex: 1;
}
.charit-project .variation-item-title {
  font-weight: 500;
  margin: 0;
}
.charit-project .variation-item-price {
  white-space: nowrap;
}
.charit-project .variation-item-price,
.charit-project .variation-item-title {
  font-weight: 500;
  font-size: 15px;
  line-height: 18px;
}
.charit-project .variation-item-meta-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}
.charit-project .variation-item-description {
  margin: 8px 0;
  font-size: 14px;
  line-height: 20px;
}

.charit-project .variation-item img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
}


.charit-project .custom_price_input {
  display: flex;
  gap: 16px;
}
.charit-project .custom_price_input [name="project_price"] {
  padding: 0 12px;
  flex: 1;
}
.charit-project .custom_price_input button.disabled {
  pointer-events: none;
  opacity: .5;
}

.charit-project .custom_price_suggestions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 8px;
}
.charit-project .custom_price_suggestions_label {
  font-size: 16px;
}
.charit-project .custom_price_suggestion {
  padding: 4px 8px;
  border: 1px solid #0073aa;
  border-radius: 4px;
  background: #fff;
  color: #0073aa;
  cursor: pointer;
  font-size: 15px;
  line-height: 18px;
  transition: all 0.2s ease;
}
.charit-project .custom_price_suggestion:hover {
  background: #0073aa;
  color: #fff;
}


.charit-project .charit-project-subscription {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}


.woocommerce .product .charit-project-section--subscription form.cart .quantity {
  display: none;
}


.charit-project .charit-project-section-separator {
  text-align: center;
  margin: 16px 0;
  font-size: 15px;
  line-height: 20px;
  height: 20px;
}
.charit-project .charit-project-section-separator:before {
  content: '';
  display: block;
  border-top: 1px dashed #e5e5e5;
  position: relative;
  top: 10px;
  z-index: -1;
}
.charit-project .charit-project-section-separator span {
  background-color: #FFF;
  padding: 0 12px;
  text-transform: uppercase;
  color: rgba(0,0,0,.3);
}
.charit-project .charit-project-section-separator:last-child {
  display: none;
}

/* Move to a separate file */
.price-info-details {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 1;
  width: 320px;
  margin-left: -160px;
  margin-top: 5px;
  text-align: left;
  background-color: #FFF;
  border-radius: 5px;
  padding: 10px;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 2px 5px 1px rgba(0,0,0,.2);
  opacity: 0;
  transition: .2s;
  display: none;
  font-weight: normal;
}
.price-info {
  display: inline-block;
  position: relative;
  margin-left: 10px;
  color: #000;
}
.price-info .icon {
  display: block;
  font-weight: 700;
  vertical-align: middle;
  text-align: center;
  background-color: #E5E5E5;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 16px;
  margin: -2px 0;
}
.price-info:hover .price-info-details {
  opacity: 1;
  display: block;
}
.price-info-details p {
  margin-bottom: 8px;
  white-space: normal;
}
.price-info-details p:last-child {
  margin-bottom: 0;
  padding: 0;
}


.woovr-variation-radio .woovr-variation-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px;
}
.woovr-variation-radio .woovr-variation-info .woovr-variation-name {
  font-size: 1.2em;
}
.woovr-variation-radio .woovr-variation-info .woovr-variation-availability {
  display: none;
}
.woovr-variation-radio .woovr-variation-info .woovr-variation-description {
  width: 100%;
  text-wrap-style: balance;
  line-height: 22px;
}

.charit-donation-frequency-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

/* Checkout: subscription cancel notice – muted, inside order totals table */
tr.charit-subscription-cancel-notice-row td.charit-checkout-subscription-cancel-notice {
  padding: 0.75em 1em;
  color: #555;
  font-size: 0.9em;
  line-height: 1.4;
  vertical-align: top;
}
.charit-checkout-subscription-cancel-notice a {
  color: #555;
  text-decoration: underline;
}
.charit-checkout-subscription-cancel-notice a:hover {
  color: #333;
}

/* Checkout: subscription notice – theme-specific (order-review block, row in table) */
.checkout #order_review .order-review tbody tr .charit-checkout-subscription-cancel-notice,
.checkout #order_review tfoot tr .charit-checkout-subscription-cancel-notice {
  font-size: 14px;
  margin-top: 10px;
  font-style: italic;
}
.checkout #order_review .order-review tbody tr .charit-checkout-subscription-cancel-notice a,
.checkout #order_review tfoot tr .charit-checkout-subscription-cancel-notice a {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Checkout: recurring totals – less duplication, clearer layout
   (see includes/checkout_recurring_totals.php for body class)
   ------------------------------------------------------------------------- */

/* Visual separation between "Today's total" and "Recurring totals" */
body.charit-checkout-has-recurring .order-review tr.recurring-totals th,
body.charit-checkout-has-recurring .order-review tr.recurring-totals td {
  border-top: 1px solid #ddd;
  padding-top: 0.75em;
  margin-top: 0.5em;
}
body.charit-checkout-has-recurring .order-review tr.recurring-totals th {
  font-weight: 600;
  font-size: 0.95em;
  color: #333;
}

/* Hide redundant "Recurring subtotal" when it equals "Recurring total" (subscription-only cart) */
body.charit-checkout-has-recurring .order-review tr.recurring-total.cart-subtotal {
  display: none;
}

/* Recurring total = final line of the recurring block; make it stand out */
body.charit-checkout-has-recurring .order-review tr.order-total.recurring-total th,
body.charit-checkout-has-recurring .order-review tr.order-total.recurring-total td {
  font-weight: 600;
  padding-top: 0.35em;
}
body.charit-checkout-has-recurring .order-review tr.order-total.recurring-total td {
  border-top: 1px solid #eee;
}
.woocommerce .woocommerce-checkout-review-order-table table.order-review tr td:not(:first-child) {
  text-align: right;
}
.woocommerce .woocommerce-checkout-review-order-table table.order-review tr th {
  max-width: 50%;
  line-height: 1.25em;
}
