/* Birdie cart page (woocommerce/cart/*.php, inc/birdie-cart-page.php). Scoped to .bcp. */
.birdie-cart-page .wd-content-layout{padding-top:0}
/* white page, like the listings */
body.birdie-cart-page,.birdie-cart-page .wd-page-wrapper,.birdie-cart-page .website-wrapper,.birdie-cart-page .wd-page-content,.birdie-cart-page .main-page-wrapper,.birdie-cart-page .wd-content-layout,.birdie-cart-page .wd-content-area,.birdie-cart-page .entry-content{background:#fff!important;background-image:none!important}

/* only our empty view speaks: hide WooCommerce's / WoodMart's extra "cart is empty" lines if a plugin re-adds them */
.birdie-cart-page .woocommerce-info.cart-empty,.birdie-cart-page .wc-empty-cart-message:not(.bcp-empty *),.birdie-cart-page .wd-empty-block-text,.birdie-cart-page .return-to-shop{display:none!important}

/* gift card plugin box (YITH) above the cart */
.birdie-cart-page .ywgc_have_code{margin:20px 0 0}
.birdie-cart-page .ywgc_have_code .woocommerce-info{position:relative;display:block;margin:0;padding:12px 16px 12px 46px;line-height:1.45;border:0;border-radius:12px;background:#eef7f1;color:#0f4a32;font-size:15px}
.birdie-cart-page .ywgc_have_code .woocommerce-info::before{content:"";position:absolute;left:16px;top:13px;width:20px;height:20px;margin:0;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='9' width='18' height='12' rx='1'/%3E%3Cpath d='M2 6h20v3H2zM12 6v15'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='9' width='18' height='12' rx='1'/%3E%3Cpath d='M2 6h20v3H2zM12 6v15'/%3E%3C/svg%3E") center/contain no-repeat}
.birdie-cart-page .ywgc_have_code a{font-weight:700;color:#0f7a43;text-decoration:underline;text-underline-offset:3px}
.birdie-cart-page .ywgc_enter_code{margin:10px 0 0;padding:14px 16px;border:1px solid #e3e8e3;border-radius:14px}
.birdie-cart-page .ywgc_enter_code p{margin:0 0 8px;font-size:14px;color:#4f564f}
.birdie-cart-page .ywgc_enter_code .form-row{float:none;width:auto;display:inline-block;margin:0 6px 0 0;vertical-align:middle}
.birdie-cart-page .ywgc_enter_code input.input-text{height:46px;padding:0 14px;border:1.5px solid #e3e8e3;border-radius:12px;box-shadow:none}
.birdie-cart-page .ywgc_enter_code .button{height:46px;padding:0 16px;border-radius:12px;background:#0f4a32;color:#fff;font-weight:700;text-transform:none;letter-spacing:0}
.bcp{
	--ink:#1a1a1a;--muted:#4f564f;--line:#e3e8e3;--field:#f4f7f4;
	--g900:#0f4a32;--g700:#0f7a43;--g600:#0f6e3c;--brand:#179252;--sale:#C2410C;--ease:cubic-bezier(.16,1,.3,1);
	font-family:Roboto,"Roboto Fallback",Arial,sans-serif;color:var(--ink);font-size:15px;line-height:1.4
}
.bcp *,.bcp *::before,.bcp *::after{box-sizing:border-box}
.bcp a{color:inherit;text-decoration:none}
.bcp button{font:inherit;color:inherit;text-transform:none;letter-spacing:0;box-shadow:none;min-height:0;margin:0;cursor:pointer}
.bcp :focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px}
.bcp svg{display:block;flex:none}
.bcp .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* notices from WooCommerce sit above the steps */
.birdie-cart-page .woocommerce-notices-wrapper:not(:empty){margin:20px 0 0}
.birdie-cart-page .woocommerce-message,.birdie-cart-page .woocommerce-info,.birdie-cart-page .woocommerce-error{margin:0 0 10px;padding:12px 16px;border:0;border-radius:12px;background:#eef7f1;color:#0f4a32;font-size:15px;list-style:none}
.birdie-cart-page .woocommerce-error{background:#fdebe1;color:#9a3412}

/* steps + title */
.bcp-steps{display:flex;align-items:center;gap:10px;margin:28px 0 18px;padding:0;list-style:none;font-size:14px;color:var(--muted)}
.bcp-steps li{display:inline-flex;align-items:center;gap:8px;margin:0}
.bcp-steps li + li::before{content:"";width:28px;height:1.5px;margin-right:2px;background:var(--line)}
.bcp-steps .n{display:grid;place-items:center;width:24px;height:24px;border:1.5px solid var(--line);border-radius:50%;font-style:normal;font-size:12.5px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.bcp-steps .on{color:var(--ink);font-weight:600}
.bcp-steps .on .n{border-color:var(--g900);background:var(--g900);color:#fff}
.bcp .bcp-title{display:flex;align-items:baseline;gap:12px;margin:0 0 22px;font-size:clamp(28px,3vw,40px);font-weight:700;line-height:1.1;letter-spacing:-.02em;text-transform:none;color:var(--ink)}
.bcp-title small{font-size:16px;font-weight:400;letter-spacing:0;color:var(--muted)}

/* layout */
.bcp-form{margin:0}
.bcp-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:40px;align-items:start;padding-bottom:80px}

/* lines */
.bcp .bcp-lines,.bcp .woocommerce-cart-form__contents{margin:0!important;padding:0;border-top:1px solid var(--line)}
.bcp .bcp-main > :empty{display:none}
.bcp-ln{display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:20px;align-items:start;padding:22px 0;border-bottom:1px solid var(--line);transition:opacity .2s}
.bcp-ln.is-pending{opacity:.6}
.bcp-img img{display:block;width:112px;height:112px;object-fit:contain;border-radius:16px;background:var(--field);mix-blend-mode:multiply}
.bcp-t{display:flex;flex-direction:column;gap:4px;min-width:0}
.bcp-t small{font-size:13px;color:var(--muted)}
.bcp .bcp-name{font-size:17px;font-weight:600;line-height:1.3;color:var(--ink)}
.bcp a.bcp-name:hover{color:var(--g700)}
.bcp-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.bcp-chips span{padding:3px 9px;border-radius:999px;background:var(--field);font-size:13px;color:var(--muted)}
.bcp-chips .lead{background:#fff4e5;color:#8a4b0f}
.bcp-chips .now{background:#e8f5ec;color:var(--g600)}
.bcp-act{display:flex;align-items:center;gap:16px;margin-top:12px}
.bcp-qty{display:flex;align-items:center;height:40px;border:1px solid var(--line);border-radius:12px;background:#fff}
.bcp .bcp-step{display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:11px;background:none;color:var(--ink)}
.bcp .bcp-step:hover{background:var(--field)}
.bcp .bcp-step:disabled{opacity:.35;cursor:default;background:none}
.bcp-step svg{width:16px;height:16px}
.bcp-step .t,.bcp-qty.is-one .bcp-step .m{display:none}
.bcp-qty.is-one .bcp-step .t{display:block;color:var(--muted)}
.bcp .bcp-qty input.qty{width:34px;height:38px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-align:center;font:inherit;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink);-moz-appearance:textfield;appearance:textfield}
.bcp .bcp-qty input.qty::-webkit-outer-spin-button,.bcp .bcp-qty input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.bcp .bcp-qty input.qty:focus{outline:none;background:var(--field)}
/* WooCommerce and WoodMart style a.remove as a red round "×"; ours is a quiet text action */
.woocommerce .bcp a.remove.bcp-rm,.bcp a.remove.bcp-rm{display:inline-flex;align-items:center;gap:6px;width:auto;height:auto;margin:0;padding:6px 2px;border-radius:6px;background:none!important;font-size:14px;font-weight:400;line-height:1.2;text-align:left;color:var(--muted)!important}
.bcp a.remove.bcp-rm:hover{color:var(--sale)!important}
.bcp-rm svg{width:16px;height:16px}
.bcp-pr{text-align:right;font-weight:700;font-size:18px;white-space:nowrap;font-variant-numeric:tabular-nums}
.bcp-pr .sub,.bcp-pr .sub .amount{color:var(--g600)}
.bcp-pr del,.bcp-pr del .amount{display:block;font-weight:400;font-size:13px;color:var(--muted)}
.bcp-pr small{display:block;font-weight:400;font-size:12.5px;color:var(--muted)}
.bcp-pr small .amount{color:inherit}
.bcp-hidden-actions{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.bcp .bcp-back{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-weight:600;color:var(--g700)}
.bcp-back svg{width:16px;height:16px}
.bcp-back:hover{text-decoration:underline;text-underline-offset:3px}
/* the plugin's own list after the table is replaced by our cards */
.bcp .bcp-main > .bcu-suggestions{display:none}

/* suggestions */
.bcp-up{margin-top:40px}
.bcp .bcp-up h2{margin:0 0 14px;font-size:20px;font-weight:700;letter-spacing:-.01em;text-transform:none;color:var(--ink)}
.bcp-up-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.bcp-uc{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--line);border-radius:16px;background:#fff}
.bcp-uc .ui img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:12px;background:var(--field);mix-blend-mode:multiply}
.bcp-uc small{font-size:12.5px;color:var(--muted)}
.bcp-uc .un{min-height:2.6em;font-size:14.5px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bcp-uc .un:hover{color:var(--g700)}
.bcp-uc .f{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}
.bcp-uc .f > span{font-weight:700;color:var(--g600);font-size:14.5px}
.bcp-uc .f del{font-weight:400;color:var(--muted)}
.bcp-uc .f ins{text-decoration:none}
.bcp .bcp-add{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:var(--g900);color:#fff}
.bcp .bcp-add:hover{background:var(--g700)}
.bcp .bcp-add.loading{opacity:.5;pointer-events:none}
.bcp-add svg{width:16px;height:16px}

/* summary column */
.bcp-side{position:sticky;top:calc(var(--wd-sticky-header-h,0px) + 20px);display:flex;flex-direction:column;gap:0;padding:22px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 14px 34px -22px rgba(15,40,25,.35)}
.bcp .cart_totals{width:100%;float:none;margin:0;padding:0}
.bcp .cart_totals h2{margin:0 0 14px;font-size:20px;font-weight:700;text-transform:none;letter-spacing:0;color:var(--ink)}
.bcp-sr{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:6px 0;font-size:15px}
.bcp-sr > span:last-child{font-variant-numeric:tabular-nums;text-align:right}
.bcp-disc > span:last-child,.bcp-disc .amount{color:var(--sale);font-weight:600}
/* "[Noņemt]" shown as a round ×: text kept for screen readers, hidden visually */
.bcp-disc .woocommerce-remove-coupon{display:inline-grid;place-items:center;width:22px;height:22px;margin-left:6px;overflow:hidden;border-radius:50%;background:#f4f7f4;color:var(--muted)!important;font-size:0!important;line-height:0;text-decoration:none!important}
.bcp-disc .woocommerce-remove-coupon::before{content:"";width:12px;height:12px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat}
.bcp-disc .woocommerce-remove-coupon:hover,.bcp-disc .woocommerce-remove-coupon:focus-visible{background:#fdebe1;color:#9a3412!important}
.bcp-ship{margin:10px 0 4px;padding:12px 14px;border-radius:14px;background:var(--field)}
.bcp-ship .h{margin-bottom:6px;font-size:12.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.bcp-ship > div:not(.h){display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 0;font-size:14.5px}
.bcp-ship > div > span:first-child{display:flex;align-items:center;gap:9px}
.bcp-ship svg{width:18px;height:18px;color:var(--g700)}
.bcp-ship b{font-weight:600}
.bcp-ship .free{font-weight:700;color:var(--g600)}
.bcp-tot{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:2px 12px;margin:14px 0 16px;padding-top:14px;border-top:1px solid var(--line)}
.bcp-tot .l{font-size:17px;font-weight:700}
.bcp-tot b{justify-self:end;font-size:28px;line-height:1.1;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.bcp-tot b .amount{color:var(--ink)}
.bcp-tot .n,.bcp-tot .v{font-size:13px;line-height:1.4;color:var(--muted)}
.bcp-tot .v{justify-self:end;white-space:nowrap;font-variant-numeric:tabular-nums}
.bcp-tot .v .amount{color:inherit}
.bcp-tot .n:last-child{grid-column:1/-1}
.bcp .wc-proceed-to-checkout{margin:0;padding:0}
.bcp a.bcp-cta,.woocommerce .bcp a.checkout-button.bcp-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:56px;margin:0;padding:0 18px;border:0;border-radius:14px;background:var(--g900)!important;color:#fff!important;font-size:17px;font-weight:700;line-height:1;text-transform:none;letter-spacing:0;box-shadow:none;transition:background-color .15s}
.bcp a.bcp-cta:hover{background:var(--g700)!important}
.bcp a.bcp-cta::after,.bcp .wc-proceed-to-checkout::after{content:none!important;display:none!important}
.bcp-cta svg{width:18px;height:18px}
.bcp-pay{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:12px;font-size:12.5px;color:var(--muted);text-align:center}
.bcp-pay svg{width:14px;height:14px}
.bcp-help{display:flex;align-items:center;gap:12px;margin-top:16px;padding:12px 14px;border-radius:14px;background:#eef7f1;font-size:14px;line-height:1.4}
.bcp-help .ic{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--brand);color:#fff}
.bcp-help .ic svg{width:20px;height:20px}
.bcp-help b{display:block}
.bcp .bcp-help button{margin-left:auto;padding:6px 4px;border:0;background:none;font-weight:700;color:var(--g700);white-space:nowrap}

/* coupon */
.bcp-coupon{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line)}
.bcp-coupon summary{display:flex;align-items:center;justify-content:space-between;padding:4px 0;list-style:none;cursor:pointer;font-weight:600;color:var(--g700)}
.bcp-coupon summary::-webkit-details-marker{display:none}
.bcp-coupon summary svg{width:16px;height:16px;transition:transform .2s var(--ease)}
.bcp-coupon[open] summary svg{transform:rotate(180deg)}
.bcp .bcp-coupon .coupon{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;float:none;width:auto}
.bcp .coupon-error-notice{flex-basis:100%;margin:2px 0 0;font-size:13.5px;color:#9a3412}
.bcp .bcp-coupon input#coupon_code.has-error{border-color:#d9622b}
.bcp .bcp-coupon input#coupon_code{flex:1;min-width:0;width:auto;height:46px;margin:0;padding:0 14px;border:1.5px solid var(--line);border-radius:12px;background:#fff;box-shadow:none;font:inherit;text-transform:uppercase;letter-spacing:.04em;color:var(--ink)}
.bcp .bcp-coupon input#coupon_code:focus{outline:none;border-color:var(--g700)}
.bcp .bcp-coupon button[name="apply_coupon"]{height:46px;margin:0;padding:0 16px;border:1.5px solid var(--g900);border-radius:12px;background:#fff;color:var(--g900);font-weight:700;font-size:15px}
.bcp .bcp-coupon button[name="apply_coupon"]:hover{background:var(--g900);color:#fff}

/* phones: floating "Kopā · Noformēt" card above the bottom bar */
.bcp-mbuy{display:none}

/* empty */
.bcp-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:56px 16px 90px}
.bcp-empty .ic{display:grid;place-items:center;width:84px;height:84px;margin-bottom:18px;border-radius:50%;background:var(--field);color:var(--g700)}
.bcp-empty .ic svg{width:38px;height:38px}
.bcp.bcp-empty h1{margin:0 0 8px;font-size:30px;font-weight:700;text-transform:none;color:var(--ink)}
.bcp-empty p{max-width:42ch;margin:0 0 24px;line-height:1.55;color:var(--muted)}
.bcp-cats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:min(100%,760px)}
.bcp-cats a{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:16px;border:1px solid var(--line);border-radius:16px;text-align:left}
.bcp-cats a:hover{background:var(--field)}
.bcp-cats b{font-size:16px}
.bcp-cats small{font-size:13px;color:var(--muted)}

@media (max-width:1024px){
	.bcp-grid{display:flex;flex-direction:column;gap:0;padding-bottom:40px}
	.bcp-main{display:contents}
	.bcp-lines{order:1}.bcp-back{order:2;align-self:flex-start}.bcp-side{order:3;margin-top:24px}.bcp-up{order:4}
	.bcp-side{position:static;box-shadow:none}
	.bcp-side .wc-proceed-to-checkout,.bcp-side .bcp-pay{display:none}
	.bcp-mbuy{position:fixed;left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom));z-index:340;display:flex;align-items:center;gap:12px;padding:10px 10px 10px 16px;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(15,40,25,.16),0 0 0 1px rgba(15,40,25,.06)}
	.bcp-mbuy .t{flex:1;line-height:1.2}
	.bcp-mbuy small{display:block;font-size:12.5px;color:var(--muted)}
	.bcp-mbuy b,.bcp-mbuy b .amount{font-size:19px;font-variant-numeric:tabular-nums;color:var(--ink)}
	.bcp-mbuy a.bcp-cta{width:auto;height:50px;font-size:15.5px}
	body.birdie-cart-page{padding-bottom:calc(160px + env(safe-area-inset-bottom))!important}
	/* the chat bubble moves above the card */
	body.birdie-cart-page #bch-root.bch-root{--bch-my:calc(160px + env(safe-area-inset-bottom))!important;--bch-dy:calc(160px + env(safe-area-inset-bottom))!important}
	body.birdie-cart-page .bhb-top{bottom:calc(160px + env(safe-area-inset-bottom))!important}
	.bcp-up-grid{display:flex;overflow-x:auto;margin:0 -15px;padding:0 15px 4px;scrollbar-width:none}
	.bcp-up-grid::-webkit-scrollbar{display:none}
	.bcp-uc{flex:none;width:160px}
}
@media (max-width:760px){
	.bcp-steps{margin:16px 0 12px;gap:6px;font-size:12.5px}
	.bcp-steps li + li::before{width:12px}
	.bcp-steps .n{width:22px;height:22px;font-size:11.5px}
	.bcp .bcp-title{margin-bottom:12px;font-size:28px}
	.bcp-ln{grid-template-columns:84px minmax(0,1fr);gap:14px;padding:16px 0}
	.bcp-img img{width:84px;height:84px}
	.bcp .bcp-name{font-size:15.5px}
	.bcp-pr{grid-column:2;margin-top:-4px;text-align:left;font-size:16px}
	.bcp-pr del,.bcp-pr small{display:inline;margin-left:6px}
	.bcp-act{gap:12px;margin-top:8px}
	.bcp-side{padding:18px}
	.bcp-empty{padding:36px 8px 60px}
	.bcp-cats{grid-template-columns:1fr 1fr}
}
@media (prefers-reduced-motion:reduce){.bcp *{transition:none!important}}
