/* Wardeina cart page — Sanader. Loaded on the cart page only. */
body.woocommerce-cart { background: #f8f9fb; }
body.woocommerce-cart .entry-content > .wd-cp, body.woocommerce-cart .entry-content { max-width: var(--wd-container); margin-inline: auto; padding: 1.5rem var(--wd-gap) 3rem; }
.wd-cartwrap { padding-block: 1.5rem 3rem; }
.wd-cp.is-busy { opacity: .65; pointer-events: none; transition: opacity .15s; }
.wd-cp__head { margin-bottom: 1.25rem; }
.wd-cp__title { margin: 0; font-size: 1.9rem; font-weight: 700; color: #111827; }
.wd-cp__title span { font-size: 1.2rem; font-weight: 400; color: var(--wd-muted); }
.wd-cp__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.5rem; align-items: start; }
.wd-cp__main { display: grid; gap: 1rem; min-width: 0; }
.wd-card { background: #fff; border: 1px solid var(--wd-border); border-radius: 18px; padding: 1.1rem 1.25rem; min-width: 0; }

/* Delivery details */
.wd-cp__delivery { padding: 0; overflow: hidden; }
.wd-cp__delivery-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--wd-border); }
.wd-cp__delivery-head > div:first-child strong { display: block; font-size: 1rem; }
.wd-cp__delivery-head > div:first-child span { font-size: .85rem; color: var(--wd-primary); }
.wd-cp__sel { display: flex; align-items: center; gap: .9rem; text-align: end; }
.wd-cp__sel-text { font-size: .88rem; line-height: 1.35; }
.wd-cp__sel-text small { display: block; color: var(--wd-muted); font-size: .75rem; }
.wd-cp__change { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border: 1px solid var(--wd-border); border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.wd-cp__change:hover { border-color: var(--wd-primary); color: var(--wd-primary); }
.wd-cp__items { display: grid; }
.wd-ci { display: flex; gap: 1rem; padding: 1.1rem 1.25rem; }
.wd-ci + .wd-ci { border-top: 1px solid var(--wd-border); }
.wd-ci__img { flex: none; width: 88px; height: 88px; border-radius: 14px; overflow: hidden; background: var(--wd-soft); }
.wd-ci__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-ci__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.wd-ci__row1 { display: flex; justify-content: space-between; gap: 1rem; }
.wd-ci__name { font-size: .95rem; line-height: 1.4; }
.wd-ci__name:hover { color: var(--wd-primary); }
.wd-ci__price { flex: none; font-weight: 700; }
.wd-ci__row2 { display: flex; align-items: center; gap: 1rem; margin-top: auto; }

/* Message card */
.wd-cp__msgcard { background: linear-gradient(180deg, #fff7ea, #fff); border-color: #f1dcb8; }
.wd-cp__msg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.wd-cp__msg-title { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; }
.wd-cp__msg-title i { color: var(--wd-primary); }
.wd-cp__msg-title em { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: .15rem .55rem; border-radius: 99px; background: var(--wd-primary); color: #fff; }
.wd-cp__addmsg { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border: 1px solid var(--wd-border); border-radius: 999px; background: #fff; cursor: pointer; font-size: .9rem; }
.wd-cp__addmsg:hover { border-color: var(--wd-primary); color: var(--wd-primary); }
.wd-cp__occ-q { margin: 0 0 .6rem; font-size: .9rem; color: #374151; }
.wd-cp__chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
.wd-cp__chips::-webkit-scrollbar { display: none; }
.wd-chip { all: unset; box-sizing: border-box; flex: none; padding: .35rem .9rem; border: 1px solid var(--wd-border); border-radius: 999px; background: #fff; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.wd-chip:hover { border-color: var(--wd-primary); }
.wd-chip.is-on { background: var(--wd-primary); border-color: var(--wd-primary); color: #fff; }
.wd-cp__msgbox { margin-top: .75rem; }
.wd-cp__msgbox[hidden] { display: none; }
.wd-cp textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--wd-border); border-radius: 12px; font: inherit; resize: vertical; background: #fff; }
.wd-cp textarea:focus { outline: 0; border-color: var(--wd-primary); }

/* Delivery instructions */
.wd-cp__instr summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; }
.wd-cp__instr summary::-webkit-details-marker { display: none; }
.wd-cp__instr summary::after { content: ""; width: 9px; height: 9px; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-block-end: 4px; }
.wd-cp__instr[open] summary::after { transform: rotate(-135deg); margin-block-end: -3px; }
.wd-cp__instr textarea { margin-top: .9rem; }

/* Rails inside cards */
.wd-cp__rail .wd-sec__title { font-size: 1.35rem; margin: 0 0 1rem; }
.wd-cp__rail .wd-rail__viewport { --inset: 0px; }
.wd-cp__rail .wd-rail__track { padding-inline: 0; }
.wd-cp__rail .wd-rail--products .wd-rail__item { flex: 0 0 158px; }
.wd-cp__rail .wd-rail__btn--prev { inset-inline-start: -8px; }
.wd-cp__rail .wd-rail__btn--next { inset-inline-end: -8px; }
.wd-cp__addons { background: linear-gradient(180deg, #fdf1dc, #fff 55%); border-color: #f1dcb8; }

/* Totals */
.wd-cp__side { display: grid; gap: 1rem; position: sticky; top: 100px; }
.wd-cp__totals { padding: 0; overflow: hidden; }
.wd-cp__totals summary { list-style: none; display: block; padding: 1rem 1.25rem; cursor: pointer; }
.wd-cp__totals summary::-webkit-details-marker { display: none; }
.wd-cp__totals summary span { display: flex; align-items: center; gap: .7rem; }
.wd-cp__totals summary i { color: var(--wd-muted); }
.wd-cp__totals summary b { margin-inline-start: auto; font-size: 1.05rem; }
.wd-cp__lines { margin: 0; padding: 0 1.25rem 1rem; display: grid; gap: .5rem; font-size: .9rem; }
.wd-cp__lines > div { display: flex; justify-content: space-between; gap: 1rem; }
.wd-cp__lines dt { color: #4b5563; }
.wd-cp__lines dd { margin: 0; font-weight: 600; }
.wd-cp__checkout { display: flex; align-items: center; justify-content: center; height: 54px; margin: 0 1.25rem 1.25rem; border-radius: 999px; background: var(--wd-primary); color: #fff; font-weight: 600; font-size: 1.05rem; box-shadow: 0 4px 0 rgba(0, 0, 0, .28); text-align: center; }
.wd-cp__checkout:hover { filter: brightness(1.15); color: #fff; }
.wd-cp__coupon-t { margin: 0 0 .75rem; font-size: .9rem; }
.wd-cp__coupon-t i { color: var(--wd-primary); margin-inline-end: .35rem; }
.wd-cp__coupon-form { display: flex; align-items: center; border: 1px solid var(--wd-border); border-radius: 12px; overflow: hidden; background: #fff; }
.wd-cp__coupon-form input { flex: 1; min-width: 0; height: 46px; border: 0; padding-inline: 1rem; font: inherit; outline: 0; }
.wd-cp__coupon-form button { all: unset; box-sizing: border-box; padding-inline: 1rem; height: 46px; display: grid; place-items: center; cursor: pointer; font-weight: 600; color: var(--wd-primary); }
.wd-cp__coupon-msg { margin: .5rem 0 0; font-size: .85rem; color: var(--wd-muted); }
.wd-cp__coupon-msg:empty { display: none; }
.wd-cp__applied { display: inline-flex; align-items: center; gap: .5rem; margin: .6rem .4rem 0 0; padding: .25rem .4rem .25rem .8rem; border-radius: 99px; background: #ecfdf5; color: #047857; font-size: .8rem; font-weight: 600; }
.wd-cp__applied button { all: unset; cursor: pointer; width: 20px; height: 20px; display: grid; place-items: center; font-size: 16px; }
.wd-cp__trust { display: grid; justify-items: center; gap: .6rem; padding: .5rem 1rem; text-align: center; font-size: .8rem; color: var(--wd-muted); }
.wd-cp__trust .wd-footer__pay { color: #6b7280; font-size: 1.7rem; justify-content: center; flex-wrap: wrap; }
.wd-cp__trust strong { color: var(--wd-text); font-size: 1rem; }
.wd-cp__bar { display: none; }
.wd-cp__empty { display: grid; justify-items: center; gap: 1rem; padding: 4rem 1rem; text-align: center; }
.wd-cp__empty h1 { margin: 0; font-size: 1.5rem; }
.wd-cp__empty .wd-mc__go { padding-inline: 2rem; }

/* Delivery preference popup */

@media (max-width: 1024px) {
	.wd-cp__grid { grid-template-columns: minmax(0, 1fr); }
	.wd-cp__side { position: static; }
	.wd-cp__totals .wd-cp__checkout { display: none; }
	.wd-cp__bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: #fff; border-top: 1px solid var(--wd-border); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
	.wd-cp__bar span { display: grid; font-size: .8rem; color: var(--wd-muted); }
	.wd-cp__bar b { font-size: 1.1rem; color: var(--wd-text); }
	.wd-cp__bar .wd-cp__checkout { margin: 0; flex: 1; max-width: 240px; height: 48px; }
	.wd-cartwrap { padding-bottom: 6rem; }
}
@media (max-width: 767px) {
	.wd-cp__title { font-size: 1.5rem; }
	.wd-cp__delivery-head { flex-direction: column; align-items: stretch; }
	.wd-cp__sel { justify-content: space-between; text-align: start; }
	.wd-ci { padding: 1rem; }
	.wd-ci__img { width: 72px; height: 72px; }
	.wd-cp__rail .wd-rail--products .wd-rail__item { flex-basis: 140px; }
}

/* Delivery preference popup: one clean card. Date chips on top, a segmented delivery type, time cards with fees. */
.wd-dp-open { overflow: hidden; }
.wd-dp { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 1rem; }
.wd-dp[hidden] { display: none; }
.wd-dp__overlay { position: absolute; inset: 0; background: rgba(20, 10, 10, .55); backdrop-filter: blur(2px); }
.wd-dp__panel { position: relative; display: flex; flex-direction: column; width: min(100%, 620px); max-height: min(92dvh, 720px); background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); outline: 0; }
.wd-dp__close { all: unset; box-sizing: border-box; position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #f1f1f1; color: #444; cursor: pointer; }
.wd-dp__close:hover { background: var(--wd-primary); color: #fff; }
.wd-dp__dates { display: flex; flex-wrap: wrap; gap: .6rem; padding: 1.4rem 1.5rem 1rem; }
.wd-dp__title { flex: 0 0 100%; margin: 0 0 .4rem; padding-inline-end: 2.6rem; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.wd-dp__title i { color: var(--wd-accent); }
.wd-dp__day { all: unset; box-sizing: border-box; flex: 1 1 0; min-width: 96px; display: grid; justify-items: center; gap: .1rem; padding: .75rem .5rem; border: 1.5px solid var(--wd-border); border-radius: 16px; cursor: pointer; color: var(--wd-muted); text-align: center; transition: border-color .15s, background .15s; }
.wd-dp__day strong { font-size: 1.02rem; color: var(--wd-text); }
.wd-dp__day span { font-size: .85rem; }
.wd-dp__day:hover { border-color: var(--wd-primary); }
.wd-dp__day.is-on { background: var(--wd-primary); border-color: var(--wd-primary); color: rgba(255, 255, 255, .85); }
.wd-dp__day.is-on strong { color: #fff; }
.wd-dp__later { position: relative; display: inline-flex; align-items: center; gap: .35rem; }
.wd-dp__date { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.wd-dp__main { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.wd-dp__types { display: flex; gap: 4px; margin: 0 1.5rem; padding: 4px; background: #f3f1ee; border-radius: 14px; }
.wd-dp__type { all: unset; box-sizing: border-box; flex: 1; text-align: center; padding: .65rem .5rem; border-radius: 11px; cursor: pointer; font-weight: 500; color: var(--wd-muted); }
.wd-dp__type.is-on { background: #fff; color: var(--wd-primary); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); font-weight: 600; }
.wd-dp__slots { flex: 1; overflow-y: auto; padding: 1.1rem 1.5rem; }
.wd-dp__panel-slots[hidden] { display: none; }
.wd-dp__group + .wd-dp__group { margin-top: 1.1rem; }
.wd-dp__group h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-size: .85rem; font-weight: 600; color: var(--wd-muted); text-transform: uppercase; letter-spacing: .04em; }
.wd-dp__group h3 i { color: var(--wd-accent); }
.wd-dp__slotlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.wd-dp__slot { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: .65rem; padding: .85rem .9rem; border: 1.5px solid var(--wd-border); border-radius: 14px; cursor: pointer; }
.wd-dp__slot::before { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid #c9c5be; border-radius: 50%; }
.wd-dp__slot span { flex: 1; font-weight: 500; }
.wd-dp__slot strong { font-size: .8rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: #f3f1ee; color: var(--wd-muted); white-space: nowrap; }
.wd-dp__slot:hover { border-color: var(--wd-primary); }
.wd-dp__slot.is-sel { border-color: var(--wd-primary); background: #fdf6ee; }
.wd-dp__slot.is-sel::before { border-color: var(--wd-primary); background: radial-gradient(var(--wd-primary) 0 45%, #fff 50%); }
.wd-dp__slot.is-sel strong { background: var(--wd-primary); color: #fff; }
.wd-dp__none { color: var(--wd-muted); text-align: center; padding: 2.5rem 1rem; }
.wd-dp__foot { padding: .9rem 1.5rem 1.4rem; border-top: 1px solid var(--wd-border); }
.wd-dp__confirm { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border-radius: 999px; background: var(--wd-primary); color: #fff; font-size: 1.05rem; font-weight: 600; cursor: pointer; }
.wd-dp__confirm:hover { filter: brightness(1.15); }
@media (max-width: 640px) {
	.wd-dp { padding: 0; place-items: end center; }
	.wd-dp__panel { width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; }
	.wd-dp__dates { padding: 1.1rem 1rem .8rem; }
	.wd-dp__types { margin-inline: 1rem; }
	.wd-dp__slots { padding: 1rem; }
	.wd-dp__slotlist { grid-template-columns: minmax(0, 1fr); }
	.wd-dp__foot { padding: .8rem 1rem 1.2rem; }
}
