/* Spar-Abo in My Account (inc/commerce/abo-account.php): dialogs "Bestelltermin verschieben" and "Produkt bearbeiten"
   on the design's dialog (.ll-cmp-dialog / .ll-cmp) with the buy box's card grammar (border, petrol when chosen). */

/* Subscriptions' own remove column: removing happens in "Produkt bearbeiten". */
:root .woocommerce-MyAccount-content .order_details :is(th, td).remove_item { display: none; }

:root .ll-abo-deadline td { font-size: var(--ll-tiny); line-height: var(--ll-lh-relaxed); color: var(--ll-ink-soft); }

:root .ll-abo-edit-btn {
	display: block;
	margin-top: var(--ll-space-8);
	padding: 0;
	background: none;
	border: 0;
	font-size: var(--ll-small);
	font-weight: 700;
	color: var(--ll-petrol);
	text-decoration: underline;
	text-underline-offset: var(--ll-space-4);
	cursor: pointer;
}
:root .ll-abo-edit-btn:hover { color: var(--ll-petrol-deep); }

:root .ll-abo__current { font-size: var(--ll-small); font-weight: 700; margin-bottom: var(--ll-space-16); }

/* Options: cards like the buy box's quantity cards; the radio stays the real control. */
:root .ll-abo__options { display: grid; gap: var(--ll-space-8); margin: 0 0 var(--ll-space-16); padding: 0; border: 0; }
:root .ll-abo-option {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: var(--ll-space-12);
	align-items: center;
	padding: var(--ll-space-12) var(--ll-space-16);
	background: var(--ll-white);
	border: var(--ll-border-w-strong) solid var(--ll-border);
	border-radius: var(--ll-r-md);
	cursor: pointer;
	transition: border-color var(--ll-t-fast) ease, background var(--ll-t-fast) ease;
}
:root .ll-abo-option:hover { border-color: var(--ll-border-strong); }
:root .ll-abo-option:has(input:checked) { border-color: var(--ll-petrol); background: var(--ll-petrol-soft); }
:root .ll-abo-option input { grid-row: span 2; margin: 0; accent-color: var(--ll-petrol); width: var(--ll-radio); height: var(--ll-radio); }
:root .ll-abo-option__name { font-size: var(--ll-body); line-height: var(--ll-lh-relaxed); font-weight: 700; }
:root .ll-abo-option__date { grid-column: 2; font-size: var(--ll-tiny); line-height: var(--ll-lh-relaxed); color: var(--ll-ink-soft); }

/* Calendar */
:root .ll-cal { margin-bottom: var(--ll-space-16); padding: var(--ll-space-16); border: var(--ll-border-w-strong) solid var(--ll-border); border-radius: var(--ll-r-md); }
:root .ll-cal[hidden] { display: none; }
:root .ll-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--ll-space-12); }
:root .ll-cal__title { margin: 0; font-size: var(--ll-body); font-weight: 700; }
:root .ll-cal__nav {
	display: grid;
	place-items: center;
	width: var(--ll-tap);
	height: var(--ll-tap);
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	font-size: var(--ll-h4);
	color: var(--ll-ink);
	cursor: pointer;
}
:root .ll-cal__nav:hover:not(:disabled) { background: var(--ll-beige); }
:root .ll-cal__nav:disabled { color: var(--ll-border-strong); cursor: default; }
:root .ll-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--ll-space-2) var(--ll-space-4); }
:root .ll-cal__wd { padding-bottom: var(--ll-space-4); text-align: center; font-size: var(--ll-tiny); font-weight: 700; color: var(--ll-ink-mute); }
:root .ll-cal__day {
	justify-self: center;
	width: var(--ll-tap);
	height: var(--ll-tap);
	padding: 0;
	background: none;
	border: var(--ll-border-w-strong) solid transparent;
	border-radius: 50%;
	font-size: var(--ll-small);
	font-variant-numeric: tabular-nums;
	color: var(--ll-ink);
	cursor: pointer;
}
:root .ll-cal__day:hover:not([aria-disabled]) { border-color: var(--ll-border-strong); }
:root .ll-cal__day[aria-disabled] { color: var(--ll-border-strong); cursor: default; }
:root .ll-cal__day[aria-pressed="true"] { background: var(--ll-petrol); border-color: var(--ll-petrol); color: var(--ll-white); font-weight: 700; }

:root .ll-abo__summary { min-height: calc(var(--ll-small) * var(--ll-lh-relaxed)); margin-bottom: var(--ll-space-16); font-size: var(--ll-small); font-weight: 700; color: var(--ll-petrol); }
:root .ll-abo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ll-space-16); }
:root .ll-abo__cancel {
	padding: 0;
	background: none;
	border: 0;
	font-size: var(--ll-small);
	font-weight: 700;
	color: var(--ll-ink-soft);
	text-decoration: underline;
	text-underline-offset: var(--ll-space-4);
	cursor: pointer;
}
:root .ll-abo__cancel:hover { color: var(--ll-ink); }
:root .ll-abo__shipping { margin: var(--ll-space-16) 0 0; padding: var(--ll-space-12) var(--ll-space-16); border-radius: var(--ll-r-md); background: var(--ll-beige); font-size: var(--ll-small); line-height: var(--ll-lh-relaxed); color: var(--ll-ink); } /* crossing the free-shipping threshold (abo-shipping.php) */
:root .ll-abo__shipping[hidden] { display: none; }
:root .ll-abo__remove { margin: var(--ll-space-24) 0 0; padding-top: var(--ll-space-16); border-top: 1px solid var(--ll-border); font-size: var(--ll-small); }
:root .ll-abo__remove p { margin: 0; }
:root .ll-abo__remove .ll-abo__shipping { margin-block-end: var(--ll-space-12); } /* the notice right above the link it is about */
:root .ll-abo__remove a { color: var(--ll-ink-soft); }

/* Produkt bearbeiten */
:root .ll-abo-item { display: grid; grid-template-columns: var(--ll-abo-thumb) 1fr; gap: var(--ll-space-16); align-items: center; margin-bottom: var(--ll-space-24); }
:root .ll-abo-item__img { width: 100%; height: auto; border-radius: var(--ll-r-md); background: var(--ll-beige); }
:root .ll-abo-item p { margin: 0; }
:root .ll-abo-item__name { font-size: var(--ll-body); font-weight: 700; }
:root .ll-abo-item__price { display: flex; gap: var(--ll-space-8); align-items: baseline; font-variant-numeric: tabular-nums; }
:root .ll-abo-item__price del { font-size: var(--ll-small); color: var(--ll-ink-mute); }
:root .ll-abo-item__price strong { font-size: var(--ll-h4); color: var(--ll-petrol); }
:root .ll-abo-item__discount { font-size: var(--ll-tiny); font-weight: 700; color: var(--ll-petrol); }

:root .ll-stepper { margin-bottom: var(--ll-space-24); }
:root .ll-stepper__label { display: block; margin-bottom: var(--ll-space-8); font-size: var(--ll-tiny); font-weight: 700; letter-spacing: var(--ll-tracking-caps); text-transform: uppercase; color: var(--ll-ink-mute); }
:root .ll-stepper__ctrl { display: inline-grid; grid-template-columns: var(--ll-tap) var(--ll-abo-qty) var(--ll-tap); border: var(--ll-border-w-strong) solid var(--ll-border); border-radius: var(--ll-r-full); overflow: hidden; }
:root .ll-stepper__ctrl button { height: var(--ll-tap); padding: 0; background: var(--ll-white); border: 0; font-size: var(--ll-h4); color: var(--ll-ink); cursor: pointer; }
:root .ll-stepper__ctrl button:hover:not(:disabled) { background: var(--ll-beige); }
:root .ll-stepper__ctrl button:disabled { color: var(--ll-border-strong); cursor: default; }
:root .ll-stepper__ctrl input { width: 100%; height: var(--ll-tap); padding: 0; border: 0; border-radius: 0; text-align: center; font-size: var(--ll-body); font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
:root .ll-stepper__ctrl input::-webkit-inner-spin-button, :root .ll-stepper__ctrl input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Lieferintervall: radio pills like the buy box (pdp.css .ll-pills) */
:root .ll-abo-interval { margin: 0 0 var(--ll-space-24); padding: 0; border: 0; }
:root .ll-abo-interval__pills { display: flex; flex-wrap: wrap; gap: var(--ll-space-8); }
:root .ll-abo-pill {
	margin: 0;
	position: relative;
	padding: var(--ll-space-8) var(--ll-space-16);
	font-size: var(--ll-small); line-height: var(--ll-lh-relaxed); font-weight: 700;
	background: var(--ll-white);
	border: var(--ll-border-w-strong) solid var(--ll-border);
	border-radius: var(--ll-r-full);
	cursor: pointer;
	transition: border-color var(--ll-t-fast) ease, background var(--ll-t-fast) ease;
}
:root .ll-abo-pill:hover { border-color: var(--ll-border-strong); }
:root .ll-abo-pill:has(input:checked) { border-color: var(--ll-petrol); background: var(--ll-petrol); color: var(--ll-white); }
:root .ll-abo-pill:has(input:focus-visible) { outline: var(--ll-focus-w) solid var(--ll-petrol); outline-offset: var(--ll-focus-offset); }
:root .ll-abo-pill input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
:root .ll-abo-interval__note { margin: var(--ll-space-8) 0 0; font-size: var(--ll-tiny); color: var(--ll-ink-soft); }
