/* Sandra's Creation – custom cakes (cake page, cart details, request form). */
:root {
	--sc-rose: #a94b6c;
	--sc-rose-dark: #8a3a57;
	--sc-cocoa: #6b3f4a;
	--sc-heading: #3e2a2f;
	--sc-muted: #6b5a5d;
	--sc-text: #4d4245;
	--sc-blush: #fbeaef;
	--sc-cream: #fff7f2;
	--sc-line: #eadcd7;
	--sc-error: #b3261e;
}

/* ---------- Quick facts under the short description ---------- */
ul.sc-cake-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 1.4em; padding: 0; }
ul.sc-cake-chips > li { margin: 0 !important; padding: 5px 12px; border-radius: 4px; background: var(--sc-blush); color: var(--sc-cocoa); font-size: 13px; font-weight: 600; line-height: 1.4; }
ul.sc-cake-chips > li::before { content: "\2713\00a0"; color: var(--sc-rose); }

/* ---------- Steps ---------- */
.sc-cake-step { display: flex; align-items: center; gap: 10px; margin: 1.7em 0 0.85em; }
.sc-cake-sizes > .sc-cake-step:first-of-type { margin-top: 0.3em; }
.sc-cake-step-num { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--sc-rose); color: #fff; font-size: 13px; font-weight: 700; line-height: 26px; text-align: center; }
.sc-cake-form h3.sc-cake-step-title,
h3.sc-cake-step-title { margin: 0; padding: 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--sc-heading); text-transform: none; }
.sc-opt { margin-left: 4px; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--sc-muted); }
.sc-size-guide { margin-left: auto; font-size: 13px; color: var(--sc-rose); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.sc-size-guide:hover { color: var(--sc-rose-dark); }

/* ---------- Size cards ---------- */
.sc-size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sc-cake-form .sc-size-card,
.sc-size-card {
	display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px;
	width: 100%; min-height: 0; margin: 0; padding: 12px 14px;
	border: 1px solid var(--sc-line); border-radius: 4px; background: #fff; box-shadow: none;
	color: var(--sc-text); font-size: inherit; font-weight: 400; line-height: 1.35; letter-spacing: 0; text-align: left; text-transform: none;
	cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.sc-size-card:hover { border-color: #d6b3c0; background: #fffafb; }
.sc-size-card:focus-visible { outline: 2px solid var(--sc-rose); outline-offset: 2px; }
.sc-size-card.is-selected { border-color: var(--sc-rose); background: var(--sc-blush); box-shadow: inset 0 0 0 1px var(--sc-rose); }
.sc-size-card:disabled { opacity: .5; cursor: not-allowed; }
.sc-size-name { font-size: 15px; font-weight: 700; color: var(--sc-heading); }
.sc-size-serves { font-size: 13px; color: var(--sc-muted); }
.sc-size-price { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--sc-rose-dark); }
.sc-size-grid.sc-missing .sc-size-card { border-color: var(--sc-error); }

/* The size dropdown is replaced by the cards. */
form.variations_form:has(.sc-size-grid) table.variations tr:has(select[name="attribute_size"]),
.sc-cake-form table.variations tr.sc-size-row { display: none !important; }

/* ---------- Flavor, filling and frosting ---------- */
.sc-cake-form table.variations { width: 100%; margin: 0 0 0.4em; border: 0; }
.sc-cake-form table.variations tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 14px; }
.sc-cake-form table.variations tr,
.sc-cake-form table.variations th,
.sc-cake-form table.variations td { display: block; width: auto; padding: 0; border: 0; text-align: left; }
.sc-cake-form table.variations th.label { padding: 0 0 5px; line-height: 1.3; }
.sc-cake-form table.variations th.label label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--sc-heading); }
.sc-cake-form table.variations td.value select { width: 100%; max-width: none; margin: 0; border-radius: 4px; }
.sc-cake-form table.variations tr.sc-missing select { border-color: var(--sc-error); box-shadow: 0 0 0 1px var(--sc-error); }
.sc-cake-form .reset_variations { display: inline-block; margin-top: 6px; font-size: 12px; }

/* ---------- Make it yours ---------- */
.sc-cake-make .sc-field { margin: 0 0 14px; }
.sc-cake-form .sc-field > label,
.sc-cake-form .sc-label,
.sc-cake-form .sc-extra-more > label { display: block; margin: 0 0 5px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--sc-heading); }
.sc-cake-form .sc-field input[type="text"],
.sc-cake-form .sc-field textarea,
.sc-cake-form .sc-extra-more input[type="text"] { width: 100%; max-width: none; margin: 0; border-radius: 4px; }
.sc-cake-form .sc-field textarea { min-height: 84px; padding-top: 8px; }
.sc-help { display: block; margin-top: 5px; font-size: 12px; line-height: 1.45; color: var(--sc-muted); }
.sc-count { text-align: right; }
.sc-count.is-near { color: var(--sc-rose-dark); }

/* Photo upload */
.sc-upload { position: relative; }
.sc-upload .sc-file { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.sc-cake-form label.sc-upload-btn,
label.sc-upload-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 1px dashed #d4adbb; border-radius: 4px; background: #fff; color: var(--sc-rose-dark); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
label.sc-upload-btn:hover { background: var(--sc-blush); border-color: var(--sc-rose); }
.sc-upload .sc-file:focus-visible + .sc-upload-btn { outline: 2px solid var(--sc-rose); outline-offset: 2px; }
.sc-upload.has-file label.sc-upload-btn { display: none; }
.sc-upload.sc-missing label.sc-upload-btn { border-color: var(--sc-error); }
.sc-upload-preview { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--sc-line); border-radius: 4px; background: #fff; }
.sc-upload-preview[hidden] { display: none; }
.sc-upload-preview img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.sc-upload-name { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sc-cake-form button.sc-upload-remove,
button.sc-upload-remove { flex: 0 0 auto; min-height: 0; margin: 0; padding: 4px 2px; border: 0; background: none; box-shadow: none; color: var(--sc-rose-dark); font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.4; text-decoration: underline; text-transform: none; }
.sc-error { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--sc-error); }
.sc-error[hidden] { display: none; }

/* ---------- Extras ---------- */
ul.sc-extras { margin: 0; padding: 0; list-style: none; border: 1px solid var(--sc-line); border-radius: 4px; background: #fff; }
ul.sc-extras li.sc-extra { margin: 0; padding: 0; border-top: 1px solid var(--sc-line); transition: background-color .15s; }
ul.sc-extras li.sc-extra:first-child { border-top: 0; border-radius: 4px 4px 0 0; }
ul.sc-extras li.sc-extra:last-child { border-radius: 0 0 4px 4px; }
ul.sc-extras li.sc-extra.is-on { background: #fffafb; }
.sc-cake-form label.sc-extra-row,
label.sc-extra-row { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; font-size: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; cursor: pointer; }
.sc-extra-row input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--sc-rose); }
.sc-extra-text { flex: 1 1 auto; min-width: 0; }
.sc-extra-name { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--sc-heading); }
.sc-extra-note { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.45; color: var(--sc-muted); }
.sc-extra-price { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--sc-rose-dark); white-space: nowrap; }
.sc-extra-more { margin: 0; padding: 0 14px 14px 44px; }
.sc-extra-more[hidden] { display: none; }
.sc-cake-form label.sc-consent,
label.sc-consent { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.45; text-transform: none; color: var(--sc-text); cursor: pointer; }
.sc-consent input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--sc-rose); }

/* ---------- Cake total and button ---------- */
.sc-cake-form .single_variation_wrap { margin-top: 0.4em; }
.sc-cake-form .woocommerce-variation-price { display: none; }
.sc-cake-form .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.sc-cake-total { flex: 1 1 100%; width: 100%; margin: 1.3em 0 12px; padding: 14px 16px; border: 1px solid var(--sc-line); border-radius: 4px; background: var(--sc-cream); }
.sc-ct-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sc-ct-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sc-muted); }
.sc-ct-amount { font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--sc-heading); font-variant-numeric: tabular-nums; }
.sc-cake-total:not(.is-ready) .sc-ct-amount { visibility: hidden; }
.sc-ct-lines { margin-top: 4px; }
.sc-ct-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; line-height: 1.55; color: var(--sc-muted); }
.sc-ct-line > span:last-child { font-variant-numeric: tabular-nums; }
.sc-cake-alert { flex: 1 1 100%; width: 100%; margin: 0 0 12px; padding: 10px 14px; border-radius: 4px; background: #fdecea; color: #8c1d18; font-size: 14px; line-height: 1.45; }
.sc-cake-alert[hidden] { display: none; }
.sc-cake-form .single_add_to_cart_button { flex: 1 1 auto; margin: 0; border-radius: 4px; }
.sc-cake-after { flex: 1 1 100%; width: 100%; margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--sc-muted); }
.sc-cake-after p { margin: 0 0 6px; }
.sc-cake-quote a { color: var(--sc-rose); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cake page layout ---------- */
.sc-cake-product .product_meta .sku_wrapper { display: none; }
@media (min-width: 850px) {
	.sc-cake-product .product-main .product-gallery { position: sticky; top: 110px; align-self: flex-start; }
	.admin-bar.sc-cake-product .product-main .product-gallery { top: 142px; }
}

/* ---------- Tabs ---------- */
ol.sc-howto { margin: 0 0 1.4em 1.25em; }
ol.sc-howto li { margin-bottom: 0.55em; padding-left: 0.2em; }
table.sc-chart { width: 100%; max-width: 560px; margin: 0 0 0.8em; border-collapse: collapse; }
table.sc-chart th,
table.sc-chart td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--sc-line); text-align: left; }
table.sc-chart thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sc-muted); }
table.sc-chart td:first-child { font-weight: 600; color: var(--sc-heading); }
.sc-fine { font-size: 13px; color: var(--sc-muted); }
.sc-flavor-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 28px; margin: 1.4em 0; }
.sc-flavor-lists h4 { margin: 0 0 0.4em; font-size: 15px; }
.sc-flavor-lists ul { margin: 0; padding: 0; list-style: none; }
.sc-flavor-lists li { position: relative; margin: 0 0 0.25em; padding-left: 1.1em; }
.sc-flavor-lists li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-rose); }
.sc-care h4 { margin: 1.3em 0 0.3em; font-size: 15px; }
.sc-care h4:first-child { margin-top: 0; }
.sc-care p { max-width: 42em; }

/* ---------- Cart, checkout and orders ---------- */
.sc-photo-link { display: inline-flex; align-items: center; color: var(--sc-rose); font-weight: 600; }
.sc-photo-link img { flex: 0 0 auto; }
dl.variation dd p { margin-bottom: 0; }
dl.variation dt:has(+ dd .sc-photo-link),
dl.variation dt.variation-Inspirationphoto,
dl.variation dt.variation-Phototoprint { float: none; display: block; margin: 4px 0 0; }
dl.variation dd:has(.sc-photo-link),
dl.variation dd.variation-Inspirationphoto,
dl.variation dd.variation-Phototoprint { float: none; display: block; clear: both; margin: 2px 0 4px; padding: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 549px) {
	.sc-size-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.sc-size-card { padding: 11px 12px; }
	.sc-cake-form table.variations tbody { grid-template-columns: 1fr 1fr; }
	.sc-extra-more { padding-left: 14px; }
	.sc-cake-step { margin-top: 1.5em; }
}

/* =========================================================================
 * Request form (tiered, wedding and quinceañera cakes)
 * ====================================================================== */
.sc-req-form,
.sc-req-done { position: relative; padding: 30px; border-radius: 4px; background: #fff; box-shadow: 0 10px 30px rgba(62, 42, 47, 0.07); }
.sc-req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.sc-req-field { margin: 0 0 16px; }
.sc-req-full { grid-column: 1 / -1; }
.sc-req-form label,
.sc-req-form legend { display: block; margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--sc-heading); }
.sc-req-form input[type="text"],
.sc-req-form input[type="email"],
.sc-req-form input[type="tel"],
.sc-req-form input[type="date"],
.sc-req-form input[type="number"],
.sc-req-form select,
.sc-req-form textarea { width: 100%; max-width: none; margin: 0; border-radius: 4px; }
.sc-req-form textarea { min-height: 130px; padding-top: 10px; }
.sc-req-form input[type="file"] { width: 100%; margin: 0; padding: 8px; border: 1px dashed #d4adbb; border-radius: 4px; background: #fffafb; font-size: 13px; }
.sc-req-form input[type="file"]::file-selector-button { margin-right: 10px; padding: 6px 12px; border: 0; border-radius: 4px; background: var(--sc-blush); color: var(--sc-rose-dark); font-weight: 600; cursor: pointer; }
fieldset.sc-req-radios { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.sc-req-form legend { width: auto; border: 0; }
.sc-req-form .sc-req-radios label { display: inline-flex; align-items: center; gap: 8px; margin: 4px 18px 4px 0; font-weight: 400; color: var(--sc-text); }
.sc-req-radios input { margin: 0; accent-color: var(--sc-rose); }
.sc-req-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sc-req-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 6px; }
.sc-req-submit .button { margin: 0; border-radius: 4px; }
.sc-req-submit small { flex: 1 1 220px; font-size: 13px; line-height: 1.45; color: var(--sc-muted); }
.sc-req-errors { margin: 0 0 20px; padding: 14px 18px; border-radius: 4px; background: #fdecea; color: #8c1d18; font-size: 14px; }
.sc-req-errors p { margin: 0; }
.sc-req-errors ul { margin: 6px 0 0 1.2em; }
.sc-req-errors li { margin: 0 0 2px; }
.sc-req-done { text-align: center; }
.sc-cr-faq .accordion-item { border: 1px solid var(--sc-line); box-shadow: none; }
.sc-req-done h3 { margin-bottom: 0.4em; color: var(--sc-heading); }
.sc-req-done p { color: var(--sc-muted); }
.sc-req-done .button { margin: 0.6em 0 0; border-radius: 4px; }

@media (max-width: 549px) {
	.sc-req-form,
	.sc-req-done { padding: 22px 16px; }
	.sc-req-grid { grid-template-columns: 1fr; }
}
