/* =====================================================================
   LUNAR HAZE — SEND THIS CART (assets/css/send-cart.css)
   The "🎁 Drop a hint" button + window (cart + product pages) on the cart page, and the link
   page someone opens (lunarhaze.co/c/K7Q2M). assets/js/send-cart.js
   ===================================================================== */

/* ----- The cart page: under "Blast off to checkout" ----- */
.sc-send[hidden] { display: none; }
.sc-or { display: flex; align-items: center; gap: 8px; margin: 0 0 14px;   /* (the summary window already has 14px between things: same space above and below "or") */ font: 700 11.5px var(--body); letter-spacing: .14em; text-transform: uppercase; color: #6E5488; }
.sc-or::before, .sc-or::after { content: ""; flex: 1; border-top: 1px solid var(--lav-mid); }
.sc-send-btn { width: 100%; justify-content: center; padding-top: 14px; padding-bottom: 14px; line-height: 18px; }
/* the checkout button and this one: exactly the same height (the emoji can make one a hair taller otherwise) */
.win-summary .sum-go, .sc-send-btn { box-sizing: border-box; min-height: 54px; }
.sc-send + .cards { margin-top: 8px; }   /* (the card logos + "Ships from Seattle" sit at the very bottom) */

/* ----- send_this_cart (the window) ----- */
.sc-layer { z-index: 86; overflow-y: auto; }
.sc-win { width: min(100%, 480px); }
.sc-win .win-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sc-win p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--plum); }
.sc-wh { margin: 0; font: 800 clamp(22px, 3vw, 26px)/1.1 var(--display); color: var(--plum); }
.sc-field { display: grid; gap: 4px; font: 700 13px var(--body); color: var(--plum); }
.sc-field small { font-weight: 400; color: #6E5488; }
.sc-field input, .sc-field textarea { width: 100%; min-width: 0; box-sizing: border-box; margin: 0; padding: 9px 10px; border: 3px solid; border-color: var(--bevel-in); background: #fff; font: 15px var(--body); color: var(--plum); resize: vertical; }
.sc-make { justify-self: start; }
.sc-make[hidden] { display: none; }
.sc-err, .sc-warn { padding: 8px 10px; font-size: 13.5px !important; }
.sc-err { background: #FDECEF; border-left: 4px solid #D4588A; color: #8A1F3D !important; }
.sc-warn { background: #FFF6E0; border-left: 4px solid #E8B94A; color: #8A6418 !important; }
.sc-err[hidden], .sc-done[hidden] { display: none; }
.sc-done { display: grid; gap: 8px; }
.sc-link { display: flex; gap: 8px; }
.sc-link input { flex: 1; min-width: 0; box-sizing: border-box; padding: 9px 10px; border: 3px solid; border-color: var(--bevel-in); background: #fff; font: 700 14px var(--body); color: var(--plum); }
.sc-link .btn { flex: none; }
.sc-share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.sc-share .btn { justify-content: center; white-space: nowrap; }
.sc-hint { font-size: 12.5px !important; color: #6E5488 !important; }
/* Drop a hint from a product page: what they picked, as a little box */
.sc-kit { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 6px; background: var(--lav); border: 1px solid var(--lav-mid); }
.sc-kit b { display: block; font-size: 14.5px; color: var(--plum); }
.sc-kit small { display: block; font-size: 12.5px; color: #6E5488; }
/* the 🎁 square next to the wishlist heart (stash/product.php) */
.gift-sq span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; padding-top: 5px; }   /* (centered the same way as the heart beside it: the gift emoji sits a little high in its box, so 5px down) */

/* ----- The link page (c/index.php) ----- */
.sc-page { max-width: 640px; margin: 0 auto; padding-bottom: 50px; }
.sc-r .win-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.sc-note { position: relative; justify-self: start; max-width: 100%; margin: 6px 0 14px; padding: 12px 16px; background: var(--lime); border: 2px solid var(--plum); font: 700 15.5px/1.45 var(--body); color: var(--plum); transform: rotate(-1deg); overflow-wrap: anywhere; }
.sc-note::after { content: ""; position: absolute; left: 26px; bottom: -12px; border: 10px solid transparent; border-top-color: var(--plum); border-bottom: 0; }
.sc-from { margin: 0 0 6px 6px; font-size: 13px; color: #6E5488; }
.sc-h { margin: 8px 0 4px; font: 800 clamp(26px, 4vw, 32px)/1.1 var(--display); color: var(--plum); overflow-wrap: anywhere; }
.sc-lede { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; color: var(--plum); }
.sc-items { list-style: none; margin: 0 0 6px; padding: 0; }
.sc-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--lav-mid); }
.sc-item:last-child { border-bottom: 0; }
.sc-photo { display: block; width: 72px; height: 72px; overflow: hidden; border-radius: 14px; background: var(--lav); box-shadow: 0 0 0 2px var(--lav-mid); }   /* (same rounded square + photo as the cart) */
.sc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-info { display: grid; gap: 2px; min-width: 0; }
.sc-name { font: 700 15px var(--body); color: var(--plum); text-decoration: none; }
.sc-name:hover { text-decoration: underline; }
.sc-info small { font-size: 12.5px; line-height: 1.45; color: #6E5488; }
.sc-price { font: 700 15px var(--body); color: var(--plum); }
.sc-off .sc-photo, .sc-off .sc-name, .sc-off small, .sc-off .sc-price { opacity: .5; }
.sc-tag { justify-self: start; margin-top: 3px; padding: 1px 7px; background: #FFF6E0; border: 1px solid #F2D58A; color: #8A6418; font: 700 11.5px var(--body); }
.sc-loading { padding: 20px 0; color: #6E5488; }
.sc-gift { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 12px; padding: 10px 12px; background: var(--lav); border: 1px solid var(--lav-mid); font-size: 14px; color: var(--plum); cursor: pointer; }
.sc-gift input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pink); flex: none; }
.sc-gift small { display: block; margin-top: 2px; font-size: 12.5px; color: #6E5488; }
.sc-add { width: 100%; justify-content: center; }
.sc-add:disabled { opacity: .6; cursor: default; }
.sc-small { margin: 10px 0 0; font-size: 12.5px; color: #6E5488; text-align: center; }
@media (max-width: 420px) {
    .sc-item { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; }
    .sc-photo { width: 60px; height: 60px; }
    .sc-add { padding-left: 10px; padding-right: 10px; }
}
