.drcake-weight-selector {
  margin: 22px 0;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid rgba(78, 13, 29, .14);
  border-radius: 24px;
  background: #e8b5ae;
  box-shadow: 0 14px 34px rgba(78, 13, 29, .09);
}

.drcake-weight-selector[hidden] { display: none; }

.drcake-weight-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.drcake-weight-heading label { color: #4e0d1d; font-weight: 800; }

.drcake-weight-output {
  min-width: 104px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #4e0d1d;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.drcake-range-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 14px;
  align-items: center;
}

.drcake-range-step {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(78, 13, 29, .22);
  border-radius: 50%;
  background: #f8e7ba;
  color: #4e0d1d;
  cursor: pointer;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  touch-action: manipulation;
}

.drcake-range-step:active { transform: scale(.96); }

#drcake-weight-range {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

#drcake-weight-range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(78, 13, 29, .22);
}

#drcake-weight-range::-webkit-slider-thumb {
  width: 34px;
  height: 34px;
  margin-top: -12px;
  border: 5px solid #f8e7ba;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #4e0d1d;
  box-shadow: 0 3px 12px rgba(78, 13, 29, .3);
}

#drcake-weight-range::-moz-range-track {
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(78, 13, 29, .22);
}

#drcake-weight-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 5px solid #f8e7ba;
  border-radius: 50%;
  background: #4e0d1d;
  box-shadow: 0 3px 12px rgba(78, 13, 29, .3);
}

#drcake-weight-range:focus-visible {
  outline: 3px solid #4e0d1d;
  outline-offset: 4px;
  border-radius: 999px;
}

.drcake-range-scale {
  display: flex;
  justify-content: space-between;
  margin: 2px 66px 0;
  color: rgba(78, 13, 29, .72);
  font-size: 12px;
  font-weight: 700;
}

.drcake-calculated-price {
  min-height: 24px;
  margin: 18px 0 0;
  color: #4e0d1d;
  font-size: 18px;
  font-weight: 800;
}

.drcake-weight-note {
	margin: 8px 0 0;
	color: #8f2d3d;
	font-size: 13px;
	line-height: 1.45;
}

.drcake-composition,
.drcake-flavor-picker,
.drcake-larger-flavor {
	min-width: 0;
	margin: 24px 0 0;
	padding: 0;
	border: 0;
}

.drcake-composition legend,
.drcake-flavor-picker legend,
.drcake-larger-flavor legend {
	margin-bottom: 12px;
	padding: 0;
	color: #4e0d1d;
	font-size: 17px;
	font-weight: 900;
}

.drcake-composition-options,
.drcake-larger-flavor > div {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.drcake-flavor-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}

.drcake-composition-options label,
.drcake-flavor-card,
.drcake-larger-flavor label {
	position: relative;
	min-width: 0;
	cursor: pointer;
}

.drcake-composition-options input,
.drcake-flavor-card input,
.drcake-larger-flavor input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.drcake-composition-options span,
.drcake-larger-flavor label span {
	min-height: 54px;
	padding: 13px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(78, 13, 29, .22);
	border-radius: 16px;
	background: #fffaf6;
	color: #4e0d1d;
	font-weight: 800;
	text-align: center;
	transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.drcake-flavor-card > span {
	min-height: 76px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 5px;
	border: 1px solid rgba(78, 13, 29, .22);
	border-radius: 18px;
	background: #fffaf6;
	color: #4e0d1d;
	transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.drcake-flavor-card strong {
	max-width: 100%;
	font-size: 17px;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.drcake-flavor-card small {
	color: rgba(78, 13, 29, .68);
	font-size: 12px;
	font-weight: 700;
}

.drcake-composition-options input:checked + span,
.drcake-flavor-card input:checked + span,
.drcake-larger-flavor input:checked + span {
	border-color: #4e0d1d;
	background: #4e0d1d;
	color: #fff;
	box-shadow: 0 9px 22px rgba(78, 13, 29, .2);
	transform: translateY(-1px);
}

.drcake-flavor-card input:checked + span small { color: rgba(255, 255, 255, .78); }

.drcake-composition-options input:focus-visible + span,
.drcake-flavor-card input:focus-visible + span,
.drcake-larger-flavor input:focus-visible + span {
	outline: 3px solid #c6cc85;
	outline-offset: 3px;
}

.drcake-composition-options label.is-disabled {
	cursor: not-allowed;
	opacity: .48;
}

.drcake-flavor-card input:disabled + span {
	cursor: not-allowed;
	opacity: .48;
}

.drcake-selection-summary {
	margin-top: 22px;
	padding: 18px 20px;
	display: grid;
	gap: 6px;
	border: 1px solid rgba(78, 13, 29, .16);
	border-radius: 18px;
	background: #c6cc85;
	color: #4e0d1d;
}

.drcake-selection-summary[hidden],
.drcake-flavor-picker[hidden],
.drcake-larger-flavor[hidden] { display: none; }

.drcake-selection-summary > strong { font-size: 22px; }
.drcake-selection-summary > span { line-height: 1.45; overflow-wrap: anywhere; }
.drcake-selection-summary > b { margin-top: 5px; font-size: 18px; }

.drcake-weight-checkout-note { clear: both; font-size: 14px; }

.drcake-fulfilment-choice { margin: 0 0 26px; padding: 22px; border: 1px solid rgba(78,13,29,.18); border-radius: 22px; background: #fffaf6; }
.drcake-fulfilment-choice h3 { margin: 0 0 15px; }
.drcake-fulfilment-choice > label { display: flex; align-items: flex-start; gap: 11px; margin: 9px 0; padding: 14px; border: 1px solid rgba(78,13,29,.16); border-radius: 15px; cursor: pointer; }
.drcake-fulfilment-choice input { margin-top: 3px; accent-color: #4e0d1d; }
.drcake-fulfilment-choice span { display: grid; gap: 3px; }
.drcake-fulfilment-choice small { color: #76645e; }
.drcake-delivery-warning { margin: 14px 0 0; padding: 13px 15px; border-left: 4px solid #b42318; border-radius: 8px; background: #fff0ee; color: #9d1c14; font-weight: 800; }

@media (max-width: 480px) {
  .drcake-weight-selector { margin-right: -4px; margin-left: -4px; border-radius: 20px; }
  .drcake-weight-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .drcake-weight-output { width: 100%; padding: 13px 18px; font-size: 24px; }
  .drcake-range-row { grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 10px; }
  .drcake-range-step { width: 48px; height: 48px; }
	.drcake-range-scale { margin-right: 58px; margin-left: 58px; }
	.drcake-composition-options,
	.drcake-flavor-cards,
	.drcake-larger-flavor > div { grid-template-columns: 1fr; }
	.drcake-composition-options span,
	.drcake-larger-flavor label span { min-height: 58px; }
	.drcake-flavor-card > span { min-height: 72px; }
	.drcake-selection-summary { padding: 16px; }
}
