/* Puremed Cart + Checkout Pages */
.puremed-cart-page,
.puremed-checkout-page {
    --pm-commerce-accent: #009f9d;
    --pm-commerce-lime: #89f000;
    --pm-commerce-navy: #11263f;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    font-family: inherit;
}
.puremed-cart-page *, .puremed-cart-page *::before, .puremed-cart-page *::after,
.puremed-checkout-page *, .puremed-checkout-page *::before, .puremed-checkout-page *::after { box-sizing: border-box; }
.puremed-cart-page__inner,
.puremed-checkout-page__inner { width: 100%; margin: 0 auto; }
.puremed-cart-page__heading,
.puremed-checkout-page__heading { position: relative; }
.puremed-cart-page__title,
.puremed-checkout-page__title { margin: 0 !important; padding: 0 !important; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.08; font-weight: 780; letter-spacing: -.03em; }
.puremed-cart-page__subtitle,
.puremed-checkout-page__subtitle { max-width: 720px; margin: 10px 0 0 !important; padding: 0 !important; font-size: 15px; line-height: 1.65; }
.puremed-cart-page__heading[style*="center"] .puremed-cart-page__subtitle,
.puremed-checkout-page__heading[style*="center"] .puremed-checkout-page__subtitle { margin-inline: auto !important; }
.puremed-cart-page__decor,
.puremed-checkout-page__decor { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; height: 12px; }
.puremed-cart-page__decor span,
.puremed-checkout-page__decor span { display: block; width: 30px; height: 1px; opacity: .62; }
.puremed-cart-page__decor i,
.puremed-checkout-page__decor i { display: block; width: 9px; height: 9px; font-style: normal; font-size: 16px; font-weight: 800; line-height: 8px; background: transparent !important; }
.puremed-cart-page__secure-note,
.puremed-checkout-page__security { display: flex; align-items: center; gap: 9px; width: fit-content; margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.puremed-cart-page__secure-note > span,
.puremed-checkout-page__security > span { display: inline-grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #fff; background: var(--pm-commerce-accent); font-size: 12px; }
.puremed-checkout-page__security { margin: -8px 0 22px; padding: 8px 12px; border: 1px solid rgba(0,159,157,.18); border-radius: 999px; }
.puremed-commerce-warning { padding: 18px 20px; border: 1px solid rgba(217,80,80,.25); border-radius: 14px; color: #8e2929; background: rgba(255,244,244,.94); }

/* Notices */
.puremed-cart-page .woocommerce-notices-wrapper,
.puremed-checkout-page .woocommerce-notices-wrapper { width: 100%; }
.puremed-cart-page .woocommerce-message,
.puremed-cart-page .woocommerce-info,
.puremed-cart-page .woocommerce-error,
.puremed-checkout-page .woocommerce-message,
.puremed-checkout-page .woocommerce-info,
.puremed-checkout-page .woocommerce-error { margin: 0 0 20px !important; padding: 14px 18px 14px 48px !important; border: 1px solid rgba(0,159,157,.16); border-radius: 14px; box-shadow: none; font-size: 13px; line-height: 1.55; }
.puremed-cart-page .woocommerce-message::before,
.puremed-cart-page .woocommerce-info::before,
.puremed-checkout-page .woocommerce-message::before,
.puremed-checkout-page .woocommerce-info::before { top: 50%; left: 17px; color: var(--pm-commerce-accent); transform: translateY(-50%); }

/* CART */
.puremed-cart-page .woocommerce { display: flex; align-items: flex-start; gap: var(--pm-cart-gap, 28px); width: 100%; }
.puremed-cart-page .woocommerce > .woocommerce-notices-wrapper,
.puremed-cart-page .woocommerce > .woocommerce-message,
.puremed-cart-page .woocommerce > .woocommerce-info,
.puremed-cart-page .woocommerce > .woocommerce-error { flex: 0 0 100%; }
.puremed-cart-page .woocommerce-cart-form { flex: 1 1 auto; min-width: 0; overflow: hidden; border: 1px solid rgba(0,159,157,.15); }
.puremed-cart-page .cart-collaterals { flex: 0 0 32%; min-width: 300px; margin: 0; padding: 0; }
.puremed-cart-page .cart-collaterals .cart_totals { float: none !important; width: 100% !important; margin: 0; overflow: hidden; }
.puremed-cart-page.is-sticky-summary .cart_totals { position: sticky; }
.puremed-cart-page table.shop_table { width: 100%; margin: 0 !important; border: 0 !important; border-collapse: separate; border-spacing: 0; background: transparent; }
.puremed-cart-page table.shop_table thead th { padding: 14px 12px; border: 0; border-bottom: 1px solid rgba(0,159,157,.12); color: #617389; background: transparent; font-size: 11px; line-height: 1.2; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.puremed-cart-page table.shop_table tbody td { padding: 20px 12px; border: 0; border-bottom: 1px solid rgba(0,159,157,.10); vertical-align: middle; background: transparent; }
.puremed-cart-page table.shop_table tbody tr:last-child td { border-bottom: 0; }
.puremed-cart-page td.product-remove { width: 35px; padding-inline: 4px !important; }
.puremed-cart-page td.product-remove a.remove { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(232,76,76,.18); border-radius: 50%; color: #df5454 !important; background: rgba(255,255,255,.74); font-size: 20px; line-height: 1; text-decoration: none; transition: .2s ease; }
.puremed-cart-page td.product-remove a.remove:hover { color: #fff !important; background: #df5454; transform: translateY(-2px); }
.puremed-cart-page td.product-thumbnail { width: 125px; }
.puremed-cart-page td.product-thumbnail a { display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(0,159,157,.11); border-radius: 16px; background: rgba(255,255,255,.72); }
.puremed-cart-page td.product-thumbnail img { display: block; margin: 0; padding: 4px; object-fit: contain; object-position: center; }
.puremed-cart-page td.product-name a { display: inline-block; margin-bottom: 6px; text-decoration: none; font-weight: 750; line-height: 1.38; }
.puremed-cart-page td.product-name dl.variation { margin: 4px 0 0; color: #728297; font-size: 11px; }
.puremed-cart-page td.product-price,
.puremed-cart-page td.product-subtotal { font-weight: 780; white-space: nowrap; }
.puremed-cart-page .quantity { display: inline-flex; align-items: stretch; height: 40px; border: 1px solid rgba(0,159,157,.18); border-radius: 11px; overflow: hidden; background: rgba(255,255,255,.84); }
.puremed-cart-page .quantity .qty { width: 46px !important; min-width: 46px; height: 38px; margin: 0; padding: 0 4px; border: 0 !important; border-radius: 0 !important; text-align: center; box-shadow: none !important; appearance: textfield; }
.puremed-cart-page .quantity .qty::-webkit-inner-spin-button,
.puremed-cart-page .quantity .qty::-webkit-outer-spin-button { margin: 0; appearance: none; }
.puremed-cart-page .puremed-qty-btn { display: inline-grid; width: 35px; min-width: 35px; height: 38px; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 0; color: #24435a; background: transparent; font-size: 17px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.puremed-cart-page .puremed-qty-btn:hover { color: #fff; background: var(--pm-commerce-accent); }
.puremed-cart-page .actions { padding: 18px 0 0 !important; border: 0 !important; }
.puremed-cart-page .actions .coupon { display: inline-flex; align-items: center; gap: 10px; }
.puremed-cart-page .actions .coupon .input-text { width: min(230px, 48vw) !important; min-height: 44px; padding: 8px 13px; border: 1px solid rgba(0,159,157,.18); outline: 0; }
.puremed-cart-page .button,
.puremed-cart-page .checkout-button { display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px; border: 0 !important; text-decoration: none !important; font-weight: 760 !important; line-height: 1.1 !important; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.puremed-cart-page .button:hover,
.puremed-cart-page .checkout-button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,159,157,.20); }
.puremed-cart-page .button[disabled] { opacity: .5; transform: none !important; box-shadow: none !important; }
.puremed-cart-page .cart_totals h2 { margin: 0 0 18px !important; padding: 0 0 16px !important; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 24px; line-height: 1.2; }
.puremed-cart-page .cart_totals h2,
.puremed-cart-page .cart_totals h2.elementor-heading-title { display: block !important; width: auto !important; min-height: 0 !important; color: inherit !important; background: transparent !important; background-image: none !important; box-shadow: none !important; text-shadow: none !important; }
.puremed-cart-page .cart_totals h2::before, .puremed-cart-page .cart_totals h2::after { display: none !important; content: none !important; }
.puremed-cart-page .cart_totals table, .puremed-cart-page .cart_totals tbody, .puremed-cart-page .cart_totals tr, .puremed-cart-page .cart_totals th, .puremed-cart-page .cart_totals td { background-color: transparent !important; background-image: none !important; box-shadow: none !important; }
.puremed-cart-page .cart_totals table { margin: 0 0 18px !important; border: 0 !important; background: transparent !important; }
.puremed-cart-page .cart_totals th,
.puremed-cart-page .cart_totals td { padding: 13px 0 !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.09) !important; background: transparent !important; font-size: 13px; }
.puremed-cart-page .cart_totals td { text-align: right; }
.puremed-cart-page .cart_totals .order-total th,
.puremed-cart-page .cart_totals .order-total td { padding-top: 18px !important; border-bottom: 0 !important; font-size: 17px; }
.puremed-cart-page .wc-proceed-to-checkout { padding: 0 !important; }
.puremed-cart-page .wc-proceed-to-checkout .checkout-button { width: 100%; margin: 0 !important; font-size: 15px; }
.puremed-cart-page .woocommerce-shipping-calculator a { color: inherit; }
.puremed-cart-page .cart-empty { width: 100%; margin-bottom: 14px !important; text-align: center; }
.puremed-cart-page .return-to-shop { width: 100%; text-align: center; }

/* CHECKOUT */
.puremed-checkout-page .woocommerce { width: 100%; }
.puremed-checkout-page form.checkout { position: relative; display: flex !important; align-items: flex-start; gap: var(--pm-checkout-gap, 24px); width: 100%; }
.puremed-checkout-page #customer_details { flex: 1 1 0 !important; float: none !important; width: auto !important; min-width: 0; margin: 0 !important; border: 1px solid rgba(0,159,157,.15); }
.puremed-checkout-page #customer_details .col-1,
.puremed-checkout-page #customer_details .col-2 { float: none; width: 100%; }
.puremed-checkout-page #customer_details .col-2 { margin-top: 24px; }
.puremed-checkout-page #customer_details h3 { margin: 0 0 22px !important; padding: 0 0 15px !important; border-bottom: 1px solid rgba(0,159,157,.12); font-size: 24px; line-height: 1.2; }
.puremed-checkout-order-wrap { flex: 0 0 var(--pm-order-width,36%); width: var(--pm-order-width,36%); min-width: 330px; margin: 0; overflow: hidden; background: rgba(13,58,69,.97); }
.puremed-checkout-page.is-sticky-order .puremed-checkout-order-wrap { position: sticky; }
.puremed-checkout-page #order_review_heading,
.puremed-checkout-page #order_review { float: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.puremed-checkout-page #order_review_heading { padding-bottom: 17px !important; border-bottom: 1px solid rgba(255,255,255,.12) !important; font-size: 24px; line-height: 1.2; }
.puremed-checkout-page #order_review table { width: 100%; margin: 16px 0 20px !important; border: 0 !important; border-collapse: collapse; background: transparent !important; }
.puremed-checkout-page #order_review th,
.puremed-checkout-page #order_review td { padding: 12px 0 !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.09) !important; background: transparent !important; font-size: 13px; line-height: 1.45; }
.puremed-checkout-page #order_review td.product-total,
.puremed-checkout-page #order_review tfoot td { text-align: right; white-space: nowrap; }
.puremed-checkout-page #order_review .order-total th,
.puremed-checkout-page #order_review .order-total td { padding-top: 18px !important; border-bottom: 0 !important; font-size: 17px; font-weight: 800; }
.puremed-checkout-page .form-row { padding: 0 !important; }
.puremed-checkout-page .form-row label { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 720; line-height: 1.35; }
.puremed-checkout-page input.input-text,
.puremed-checkout-page textarea,
.puremed-checkout-page select,
.puremed-checkout-page .select2-selection { width: 100%; margin: 0; padding: 10px 14px; border: 1px solid rgba(0,159,157,.20); outline: 0; box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.puremed-checkout-page textarea { min-height: 120px; resize: vertical; }
.puremed-checkout-page .select2-container { width: 100% !important; }
.puremed-checkout-page .select2-container .select2-selection--single { display: flex; align-items: center; }
.puremed-checkout-page .select2-container .select2-selection__rendered { padding: 0; color: inherit; line-height: 1.3; }
.puremed-checkout-page .select2-container .select2-selection__arrow { top: 50%; right: 10px; transform: translateY(-50%); }
.puremed-checkout-page .woocommerce-account-fields,
.puremed-checkout-page .woocommerce-shipping-fields { margin-top: 18px; }
.puremed-checkout-page #payment { margin: 0; padding: 16px; color: inherit; }
.puremed-checkout-page #payment ul.payment_methods { padding: 0 !important; border-bottom: 0 !important; }
.puremed-checkout-page #payment ul.payment_methods li { margin: 0 0 9px; padding: 12px 13px; border: 1px solid rgba(255,255,255,.10); border-radius: 12px; background: rgba(255,255,255,.04); }
.puremed-checkout-page #payment ul.payment_methods li label { color: inherit; font-size: 13px; font-weight: 720; }
.puremed-checkout-page #payment .payment_box { margin: 10px 0 0; padding: 13px; color: inherit; font-size: 12px; line-height: 1.55; }
.puremed-checkout-page #payment .payment_box::before { border-bottom-color: rgba(255,255,255,.10); }
.puremed-checkout-page #payment .place-order { padding: 16px 0 0 !important; }
.puremed-checkout-page #place_order { display: inline-flex !important; align-items: center; justify-content: center; float: none !important; width: 100%; border: 0 !important; text-decoration: none; font-weight: 800 !important; line-height: 1.1 !important; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.puremed-checkout-page #place_order:hover { transform: translateY(-2px); }
.puremed-checkout-page .woocommerce-form-coupon-toggle,
.puremed-checkout-page .woocommerce-form-login-toggle { margin-bottom: 14px; }
.puremed-checkout-page form.checkout_coupon,
.puremed-checkout-page form.login { margin: 0 0 20px; padding: 18px; border: 1px solid rgba(0,159,157,.15); border-radius: 16px; background: rgba(255,255,255,.72); }

/* Editor previews */
.puremed-cart-demo,
.puremed-checkout-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 34%); align-items: start; gap: 28px; }
.puremed-cart-demo__items,
.puremed-checkout-demo__form { padding: 22px; border: 1px solid rgba(0,159,157,.15); border-radius: 24px; background: rgba(255,255,255,.8); }
.puremed-cart-demo__item { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(0,159,157,.1); }
.puremed-cart-demo__image { width: 80px; height: 80px; border-radius: 15px; background: linear-gradient(135deg,#fff,#e9f8f7); }
.puremed-cart-demo__copy { display: flex; flex-direction: column; gap: 5px; }
.puremed-cart-demo__copy span { color: #1d9b69; font-size: 11px; }
.puremed-cart-demo__qty { padding: 10px 12px; border: 1px solid rgba(0,159,157,.18); border-radius: 11px; }
.puremed-cart-demo__price { color: #009f9d; font-weight: 800; }
.puremed-cart-demo__coupon { display: flex; gap: 10px; padding-top: 18px; }
.puremed-cart-demo__coupon input { flex: 1; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(0,159,157,.18); border-radius: 11px; }
.puremed-cart-demo__coupon button,
.puremed-cart-demo__summary button,
.puremed-checkout-demo__order button { border: 0; border-radius: 12px; color: #fff; background: #009f9d; font-weight: 750; }
.puremed-cart-demo__coupon button { padding: 10px 16px; }
.puremed-cart-demo__summary,
.puremed-checkout-demo__order { padding: 26px; border-radius: 24px; color: #e7f1f2; background: #123b47; }
.puremed-cart-demo__summary h2,
.puremed-checkout-demo__order h3 { margin: 0 0 18px; color: #fff; }
.puremed-cart-demo__summary > div,
.puremed-checkout-demo__order > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.puremed-cart-demo__summary .is-total,
.puremed-checkout-demo__order .is-total { font-size: 17px; }
.puremed-cart-demo__summary .is-total strong,
.puremed-checkout-demo__order .is-total strong { color: #89f000; }
.puremed-cart-demo__summary button,
.puremed-checkout-demo__order button { width: 100%; min-height: 50px; margin-top: 18px; }
.puremed-checkout-demo__form h3 { margin: 0 0 20px; }
.puremed-checkout-demo__form label { display: block; margin: 0 0 16px; font-size: 12px; font-weight: 700; }
.puremed-checkout-demo__form label span { display: block; height: 48px; margin-top: 7px; border: 1px solid rgba(0,159,157,.18); border-radius: 12px; background: #fff; }
.puremed-checkout-demo__form label span.is-textarea { height: 110px; }
.puremed-checkout-demo__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.puremed-checkout-demo__payment { display: block !important; margin-top: 12px; padding: 15px !important; border: 1px solid rgba(255,255,255,.1) !important; border-radius: 12px; }

@media (max-width: 1024px) {
    .puremed-cart-page .woocommerce { flex-direction: column; }
    .puremed-cart-page .woocommerce-cart-form,
    .puremed-cart-page .cart-collaterals { width: 100% !important; flex-basis: auto !important; min-width: 0; }
    .puremed-cart-page.is-sticky-summary .cart_totals { position: static; }
    .puremed-checkout-page form.checkout { flex-direction: column; }
    .puremed-checkout-page #customer_details,
    .puremed-checkout-order-wrap { flex: 0 0 auto !important; width: 100% !important; min-width: 0; }
    .puremed-checkout-page.is-sticky-order .puremed-checkout-order-wrap { position: static; }
    .puremed-cart-demo,
    .puremed-checkout-demo { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .puremed-cart-page__title,
    .puremed-checkout-page__title { font-size: 30px; }
    .puremed-cart-page .woocommerce-cart-form { overflow: visible; }
    .puremed-cart-page table.shop_table thead { display: none; }
    .puremed-cart-page table.shop_table,
    .puremed-cart-page table.shop_table tbody,
    .puremed-cart-page table.shop_table tr,
    .puremed-cart-page table.shop_table td { display: block; width: 100% !important; }
    .puremed-cart-page table.shop_table tr.cart_item { position: relative; display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 4px 13px; padding: 17px 0; border-bottom: 1px solid rgba(0,159,157,.11); }
    .puremed-cart-page table.shop_table tbody td { padding: 3px 0; border: 0; text-align: left !important; }
    .puremed-cart-page td.product-remove { position: absolute; z-index: 2; top: 12px; right: 0; width: auto !important; }
    .puremed-cart-page td.product-thumbnail { grid-row: 1 / span 4; grid-column: 1; }
    .puremed-cart-page td.product-name,
    .puremed-cart-page td.product-price,
    .puremed-cart-page td.product-quantity,
    .puremed-cart-page td.product-subtotal { grid-column: 2; padding-right: 36px; }
    .puremed-cart-page td.product-thumbnail img { width: 82px !important; height: 82px !important; }
    .puremed-cart-page td.product-price::before,
    .puremed-cart-page td.product-quantity::before,
    .puremed-cart-page td.product-subtotal::before { display: inline; margin-right: 7px; color: #6e8094; font-size: 10px; font-weight: 750; text-transform: uppercase; }
    .puremed-cart-page td.product-price::before { content: "Price:"; }
    .puremed-cart-page td.product-quantity::before { content: "Qty:"; }
    .puremed-cart-page td.product-subtotal::before { content: "Subtotal:"; }
    .puremed-cart-page .actions .coupon { display: grid; grid-template-columns: 1fr auto; width: 100%; }
    .puremed-cart-page .actions .coupon .input-text { width: 100% !important; }
    .puremed-cart-page .actions > button[name="update_cart"] { width: 100%; margin-top: 10px; }
    .puremed-checkout-page #customer_details h3,
    .puremed-checkout-page #order_review_heading { font-size: 21px; }
    .puremed-checkout-page .form-row-first,
    .puremed-checkout-page .form-row-last { float: none !important; width: 100% !important; }
    .puremed-cart-demo__item { grid-template-columns: 70px minmax(0,1fr); }
    .puremed-cart-demo__qty,
    .puremed-cart-demo__price { grid-column: 2; }
    .puremed-cart-demo__image { width: 65px; height: 65px; }
    .puremed-checkout-demo__row { grid-template-columns: 1fr; gap: 0; }
}

/* Ensure WooCommerce notice rows do not break the cart's two-column flex layout. */
.puremed-cart-page .woocommerce { flex-wrap: wrap; }
.puremed-cart-page .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
.puremed-cart-page .woocommerce > .woocommerce-cart-form,
.puremed-cart-page .woocommerce > .cart-collaterals { margin-top: 0; }


/* v2.5.3: keep the coupon field and action on one clean row. */
.puremed-cart-page .actions .coupon,
.puremed-cart-demo__coupon {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    gap: 10px;
    width: 100%;
}
.puremed-cart-page .actions .coupon .input-text,
.puremed-cart-demo__coupon input {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0 !important;
}
.puremed-cart-page .actions .coupon button[name="apply_coupon"],
.puremed-cart-page .actions .coupon .button,
.puremed-cart-demo__coupon button {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    padding-inline: 14px !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}
@media (max-width: 420px) {
    .puremed-cart-page .actions .coupon,
    .puremed-cart-demo__coupon { gap: 8px; }
    .puremed-cart-page .actions .coupon button[name="apply_coupon"],
    .puremed-cart-page .actions .coupon .button,
    .puremed-cart-demo__coupon button {
        min-width: 108px;
        padding-inline: 10px !important;
        font-size: 12px !important;
    }
}
