/* Hide Mission campaign title */
body.single-missiondp_campaign .wp-block-post-title {
    display: none !important;
}

/* Mission donation buttons - St Mark's burgundy */
body.single-missiondp_campaign button.mission-df-amount-btn,
body.single-missiondp_campaign button.mission-df-frequency-btn {
    color: #903e3d !important;
    border-color: #903e3d !important;
}

/* Selected amount/frequency */
body.single-missiondp_campaign button.mission-df-amount-btn.active,
body.single-missiondp_campaign button.mission-df-frequency-btn.active {
    background-color: #903e3d !important;
    border-color: #903e3d !important;
    color: #ffffff !important;
}

body.single-missiondp_campaign .mission-df-amount-other-grid input {
    letter-spacing: 1px !important;
}
/* Add a little space after the £ symbol in Other amount */
body.single-missiondp_campaign .mission-df-other-prefix {
    margin-right: 6px !important;
    display: inline-block;
}
/* Hide Mission processing-fee recovery section */
body.single-missiondp_campaign .mission-df-fee-recovery {
    display: none !important;
}
/* TEMP - show Mission tip */
body.single-missiondp_campaign .mission-df-tip {
    display: block !important;
}
/* Hide Mission optional tip after JS has zeroed it */
body.single-missiondp_campaign .mission-df-tip {
    display: none !important;
}

/* Lewis Legacy: clean contribution input */

.single-product .lewis-gift-input-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

.single-product .lewis-gift-input-wrap .lewis-gift-currency {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #79283C !important;
  font-size: 20px !important;
  line-height: 1 !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.single-product .lewis-gift-input-wrap input {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 13px 16px 13px 48px !important;
  text-align: left !important;
  text-indent: 0 !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
}

/* Lewis Legacy Gift Card - Add to Basket button */

body.single-product .woocommerce div.product form.cart button.single_add_to_cart_button,
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button {
    background-color: #79283C !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 16px 28px !important;
    width: 100% !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease !important;
}

/* Hover and keyboard focus */
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover,
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button:focus {
    background-color: #5E1F2E !important;
    color: #FFFFFF !important;
}

/* Lewis Legacy - Force burgundy basket button */

body.single-product button.single_add_to_cart_button,
body.single-product .single_add_to_cart_button,
body.single-product form.cart button[type="submit"] {
    background: #79283C !important;
    background-color: #79283C !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 5px !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    width: 100% !important;
    cursor: pointer !important;
}

body.single-product button.single_add_to_cart_button:hover,
body.single-product .single_add_to_cart_button:hover,
body.single-product form.cart button[type="submit"]:hover {
    background: #5E1F2E !important;
    background-color: #5E1F2E !important;
    color: #FFFFFF !important;
}

/* Lewis Legacy - Checkout Place Order Button */

body .wc-block-checkout__actions_row
.wc-block-components-checkout-place-order-button,
body .wc-block-components-checkout-place-order-button {
    background-color: #79283C !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 18px 24px !important;
    transition: background-color 0.2s ease !important;
}

/* Hover and keyboard focus */
body .wc-block-components-checkout-place-order-button:hover,
body .wc-block-components-checkout-place-order-button:focus-visible {
    background-color: #5E1F2E !important;
    color: #FFFFFF !important;
}

/* Keep button text white */
body .wc-block-components-checkout-place-order-button
.wc-block-components-button__text {
    color: #FFFFFF !important;
}

/* Lewis Legacy - Basket Proceed to Checkout Button */

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart__submit-button:hover {
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 5px !important;
    text-decoration: none !important;
}

/* Normal button appearance */
body.woocommerce-cart .wc-block-cart__submit-button {
    background: #79283C !important;
    background-color: #79283C !important;
    padding: 18px 24px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    width: 100% !important;
    transition: background-color 0.2s ease !important;
}

/* Hover and keyboard focus */
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:focus-visible {
    background: #5E1F2E !important;
    color: #FFFFFF !important;
}

/* Override theme's gold link text */
body.woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text,
body.woocommerce-cart .wc-block-cart__submit-button span {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* LEWIS LEGACY - BASKET PAGE */

/* Basket heading */
body.woocommerce-cart .entry-title,
body.woocommerce-cart h1 {
    color: #79283C;
    font-family: Georgia, serif;
    font-weight: 500;
}

/* Empty basket message */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block
.wc-block-cart__empty-cart__title {
    color: #79283C;
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
}

/* Return to shop button */
body.woocommerce-cart .wp-block-button__link,
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-proceed-to-checkout a {
    background: #79283C !important;
    color: #FFFFFF !important;
    border: 1px solid #79283C !important;
    border-radius: 6px !important;
    padding: 15px 30px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: background 0.2s ease;
}

/* Button hover */
body.woocommerce-cart .wp-block-button__link:hover,
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a:hover {
    background: #5E1F30 !important;
    color: #FFFFFF !important;
}

/* Basket totals panel */
body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-cart .wc-block-components-totals-wrapper {
    border-color: #E5D8C4;
}

/* Product links */
body.woocommerce-cart .wc-block-components-product-name {
    color: #79283C !important;
    font-weight: 600;
}

/* Hide empty basket recommendations heading */
body.woocommerce-cart
.wc-block-cart__empty-cart__title
~ .wp-block-heading {
    color: #79283C;
}

/* LEWIS LEGACY - EMPTY BASKET */

/* Heading */
body.woocommerce-cart
.wc-block-cart__empty-cart__title {
    color: #79283C !important;
    font-family: Georgia, serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
}

/* Empty basket content */
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block {
    background: #FAF8F4;
    border: 1px solid #E5D8C4;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
}

/* Empty basket buttons */
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-button__link {
    background: #79283C !important;
    color: #FFFFFF !important;
    border: 1px solid #79283C !important;
    border-radius: 6px !important;
    padding: 15px 28px !important;
    text-decoration: none !important;
    font-weight: 600;
}

/* Hover */
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block
.wp-block-button__link:hover {
    background: #5E1F30 !important;
    color: #FFFFFF !important;
}

/* Description */
body.woocommerce-cart
.wp-block-woocommerce-empty-cart-block p {
    color: #514A46;
    font-size: 16px;
    line-height: 1.7;
    max-width: 650px;
    margin: 20px auto;
}