/* Stackless for WooCommerce: subscriptions (cart, checkout, my account). */
.stackless-subscription-price { white-space: normal; }

/* Classic cart and checkout */
.stackless-recurring-totals-heading th,
.stackless-recurring-totals-heading td { padding-top: 1.5em; }
.stackless-recurring-totals-row th { font-weight: 600; }
.stackless-recurring-totals-row small { display: block; font-weight: 400; opacity: .8; }

/* Blocks */
.stackless-recurring-totals { padding: 16px 0; }
.stackless-recurring-totals__heading { margin: 0 0 8px; font-size: 1em; }
.stackless-recurring-group { padding: 8px 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.stackless-recurring-group:first-of-type { border-top: 0; }
.stackless-recurring-group__title { font-weight: 600; }
.stackless-recurring-group__items { font-size: .875em; opacity: .8; margin-bottom: 4px; }
.stackless-recurring-row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.stackless-recurring-row--total { font-weight: 600; }

/* My Account */
.stackless-subscription-status { display: inline-block; padding: 2px 8px; border-radius: 3px; background: rgba(0, 0, 0, .06); font-size: .875em; }
.stackless-subscription-status--sub-active, .stackless-subscription-status--sub-trial { background: #e6f4ea; color: #1e5631; }
.stackless-subscription-status--sub-onhold { background: #fff4e5; color: #7a4b00; }
.stackless-subscription-status--sub-cancelled, .stackless-subscription-status--sub-expired { background: #f3f3f3; color: #555; }
.stackless-subscription-status--sub-pendcancel { background: #fdecea; color: #8a1f11; }
.stackless-subscription-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0 2em; }
.stackless-subscription-section { margin: 2em 0; }
.stackless-switch-options label, .stackless-token-options label { display: block; margin: 6px 0; }
.stackless-switch-options .stackless-switch-note { display: block; margin-left: 1.6em; font-size: .875em; opacity: .8; }
/* Cart/Checkout blocks: align the heading and group labels with WooCommerce's own totals rows. */
.wc-block-components-totals-wrapper.stackless-recurring-totals .stackless-recurring-totals__heading,
.wc-block-components-totals-wrapper.stackless-recurring-totals .stackless-recurring-group__title,
.wc-block-components-totals-wrapper.stackless-recurring-totals .stackless-recurring-group__items { padding-inline: 16px; }

/* Block themes give every .wp-element-button the same filled style. Keep one primary action:
   pay/renew-style actions become secondary, cancelling becomes a quiet text action, and row buttons stay compact. */
.woocommerce-uses-block-theme .stackless-subscription-actions .wp-element-button:not(.alt),
.woocommerce-uses-block-theme .stackless-subscription-section table .wp-element-button,
.woocommerce-uses-block-theme .stackless-subscriptions-table .wp-element-button { background: transparent; color: inherit; border: 1px solid currentColor; }
.woocommerce-uses-block-theme .stackless-subscription-actions .wp-element-button:not(.alt):hover,
.woocommerce-uses-block-theme .stackless-subscription-section table .wp-element-button:hover,
.woocommerce-uses-block-theme .stackless-subscriptions-table .wp-element-button:hover { background: rgba(0, 0, 0, .06); background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; }
.woocommerce-uses-block-theme .stackless-subscription-actions .wp-element-button.stackless-action-cancel,
.woocommerce-uses-block-theme .stackless-subscription-actions .wp-element-button.stackless-action-cancel_now { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-uses-block-theme .stackless-subscription-actions .wp-element-button.stackless-action-cancel:hover,
.woocommerce-uses-block-theme .stackless-subscription-actions .wp-element-button.stackless-action-cancel_now:hover { background: transparent; text-decoration-thickness: 2px; }
.woocommerce-uses-block-theme .stackless-subscription-section table .wp-element-button,
.woocommerce-uses-block-theme .stackless-subscriptions-table .wp-element-button { padding: .45em 1em; font-size: var(--wp--preset--font-size--small, .875em); white-space: nowrap; }
.stackless-subscription-actions { align-items: center; }
