/* ==========================================================================
   WooCommerce: brings cart, checkout, My Account, notices and shop grids
   in line with the theme (classic templates and the Cart/Checkout blocks).
   ========================================================================== */

/* Buttons */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,
.woocommerce-page a.button,.woocommerce-page button.button,.wc-block-components-button:not(.is-link){
  background:var(--acs-purple-800);color:#fff;border-radius:10px;font-weight:600;padding:.75rem 1.25rem;border:0;line-height:1.2;font-family:var(--acs-font-body)}
.woocommerce a.button:hover,.woocommerce button.button:hover,.wc-block-components-button:not(.is-link):hover{background:var(--acs-purple-900);color:#fff}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce #place_order,.wc-block-components-checkout-place-order-button,.wc-block-cart__submit-button{
  background:var(--acs-green-600)!important;color:#fff!important}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce #place_order:hover{background:var(--acs-green-700)!important}

/* Course card "added" state (AJAX add to cart) */
.course-card .add.loading{opacity:.6;pointer-events:none}
.course-card .add.added::after,.bundle-card .added::after{content:"\F26E";font-family:bootstrap-icons;margin-left:4px}
.course-card .added_to_cart,.bundle-card .added_to_cart{display:none}

/* Forms */
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,.select2-container .select2-selection--single{
  border:1px solid var(--acs-line);border-radius:10px;padding:.65rem .9rem;min-height:46px;background:#fff}
.select2-container .select2-selection--single .select2-selection__rendered{line-height:24px;padding-left:0}
.select2-container .select2-selection--single .select2-selection__arrow{height:44px}
.woocommerce form .form-row label{font-weight:500;color:var(--acs-ink-900);margin-bottom:6px}
.wc-block-components-text-input input,.wc-block-components-combobox .components-combobox-control__input{border-radius:10px!important}

/* Notices */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner{
  border:0;border-radius:14px;padding:1rem 1.25rem 1rem 3rem;background:var(--acs-sky-100);color:var(--acs-ink-900);list-style:none}
.woocommerce-message{background:var(--acs-green-50)}
.woocommerce-error{background:var(--acs-coral-100)}
.woocommerce-message::before{color:var(--acs-green-600)}
.woocommerce-info::before{color:var(--acs-sky-600)}
.woocommerce-message .button,.woocommerce-info .button{float:right;padding:.4rem .9rem;font-size:.875rem}

/* Tables (cart, order review, account orders) */
.woocommerce table.shop_table{border:1px solid var(--acs-line);border-radius:16px;overflow:hidden;border-collapse:separate}
.woocommerce table.shop_table th{background:var(--acs-bg);font-weight:600;color:var(--acs-ink-900)}
.woocommerce table.shop_table td,.woocommerce table.shop_table th{padding:14px 16px;border-color:var(--acs-line)}
.woocommerce-cart .cart_totals,.woocommerce-checkout #order_review,.wc-block-components-sidebar{background:#fff;border:1px solid var(--acs-line);border-radius:18px;padding:24px}
.woocommerce .quantity .qty{border:1px solid var(--acs-line);border-radius:8px;padding:.4rem}

/* Checkout layout */
.woocommerce-checkout #customer_details h3,.woocommerce-checkout #order_review_heading{font-size:1.25rem;margin-bottom:16px}
.woocommerce-checkout #payment{background:var(--acs-bg);border-radius:14px}
.woocommerce-checkout #payment div.payment_box{background:#fff;border-radius:10px}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:#fff}

/* My Account */
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;padding:8px;margin:0;border:1px solid var(--acs-line);border-radius:16px;background:#fff}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:.65rem .9rem;border-radius:10px;color:var(--acs-ink-700);font-weight:500}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{background:var(--acs-purple-50);color:var(--acs-purple-800)}

/* Shop grid */
.woocommerce ul.products li.product{background:#fff;border:1px solid var(--acs-line);border-radius:18px;padding:10px 10px 16px;text-align:left}
.woocommerce ul.products li.product a img{border-radius:12px;margin-bottom:12px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--acs-font-head);font-size:1.05rem;color:var(--acs-ink-900);padding:0 6px}
.woocommerce ul.products li.product .price{color:var(--acs-purple-800);font-weight:700;padding:0 6px}
.woocommerce ul.products li.product .button{margin:8px 6px 0}
.woocommerce span.onsale{background:var(--acs-coral-600);border-radius:8px;min-height:auto;min-width:auto;line-height:1;padding:6px 10px;font-weight:700}
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;justify-content:center;gap:6px}
.woocommerce nav.woocommerce-pagination ul li{border:0}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{border-radius:10px;border:1px solid var(--acs-line);min-width:40px;padding:.55rem .8rem}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--acs-purple-800);color:#fff;border-color:var(--acs-purple-800)}
.woocommerce-result-count{color:var(--acs-ink-500);font-size:.9rem}
.woocommerce-ordering select{border:1px solid var(--acs-line);border-radius:10px;padding:.5rem .8rem}

/* Single (non-course) product */
.woocommerce div.product .product_title{font-size:2rem}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--acs-purple-800);font:700 1.75rem/1.2 var(--acs-font-head)}
.woocommerce div.product .woocommerce-tabs ul.tabs li{border-radius:10px 10px 0 0}
.woocommerce .star-rating span::before,.woocommerce .star-rating::before{color:var(--acs-amber-500)}
