:root { --ink:#1c2721; --ink-soft:#68756b; --green:#245b43; --green-dark:#164a34; --green-light:#e4efdf; --orange:#e96c43; --bg:#faf9f5; --line:#eae9e2; --shadow:0 14px 38px rgba(29,50,35,.07); }
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif; background:var(--bg); color:var(--ink); word-break:keep-all; }
button,input { font:inherit; }
button { cursor:pointer; }
a { color:inherit; }
.container { max-width:1160px; margin:0 auto; padding:0 28px; }
.site-header { position:sticky; top:0; z-index:30; background:rgba(250,249,245,.93); backdrop-filter:blur(18px); border-bottom:1px solid rgba(31,57,41,.07); }
.header-inner { height:76px; display:flex; align-items:center; gap:30px; }
.logo { display:inline-flex; align-items:center; gap:10px; color:var(--green-dark); text-decoration:none; flex-shrink:0; }
.logo-symbol { display:block; width:38px; height:38px; flex:none; }
.logo-text { letter-spacing:-1.2px; font-weight:850; font-size:24px; }



.header-spacer { flex:1; }
.header-search { display:flex; width:230px; height:41px; border:1px solid #e4e5df; align-items:center; gap:9px; padding:0 13px; border-radius:12px; background:#fff; color:#8a938a; }
.header-search input { border:0; outline:0; min-width:0; width:100%; font-size:13px; color:var(--ink); background:transparent; }
.cart-trigger { display:flex; gap:9px; align-items:center; border:1px solid var(--green); background:var(--green); border-radius:12px; padding:10px 14px; color:white; font-weight:750; white-space:nowrap; font-size:13px; }
.cart-count { display:grid; place-items:center; min-width:21px; height:21px; padding:0 5px; background:#f3c66f; color:#27482e; border-radius:99px; font-size:11px; }
.hero { position:relative; margin-top:34px; border-radius:26px; min-height:0; padding:28px 38px; overflow:hidden; background:#e8f0e3; display:flex; align-items:center; }
.hero::after { content:""; position:absolute; right:-105px; top:-155px; width:500px; height:500px; background:#d4e6cb; border-radius:50%; }
.hero::before { content:""; position:absolute; right:240px; bottom:-145px; width:240px; height:240px; background:#dcead4; border-radius:50%; }
.hero-copy { position:relative; z-index:2; width:100%; }
.hero h1 { font-size:34px; margin:10px 0; }
.hero h1 br { display:none; }
.hero h1 em { margin-left:12px; }
.eyebrow { display:inline-flex; align-items:center; gap:7px; color:#327253; font-size:13px; font-weight:800; letter-spacing:.01em; }
.eyebrow-dot { width:7px; height:7px; background:#66ae73; border-radius:50%; }
h1 { margin:17px 0 13px; font-size:43px; line-height:1.28; letter-spacing:-2.2px; font-weight:850; }
h1 em { font-style:normal; color:var(--green); }
.hero-sub { margin:0 0 24px; line-height:1.7; color:#647266; font-size:15px; }
.hero-search { display:flex; align-items:center; width:min(475px,100%); height:58px; padding:6px 6px 6px 19px; gap:12px; border-radius:15px; box-shadow:0 6px 24px rgba(47,82,54,.1); background:#fff; }
.hero-search .search-icon { font-size:19px; color:#87948a; }
.hero-search input { border:0; background:transparent; outline:0; min-width:0; flex:1; font-size:14px; color:var(--ink); }
.hero-search button { height:44px; padding:0 23px; background:var(--green); border:0; border-radius:11px; color:#fff; font-weight:800; }
.benefits { display:flex; justify-content:center; gap:56px; margin:22px 0 38px; color:#758176; font-size:12px; font-weight:700; }
.benefits span { display:inline-flex; align-items:center; gap:7px; }
.benefits b { color:#3f7854; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:16px; margin:17px 0 19px; }
.section-head > div:first-child { min-width:0; }
#recipeHeading { overflow-wrap:anywhere; }
.section-kicker { color:var(--orange); font-size:12px; font-weight:850; letter-spacing:.06em; }
.section-head h2 { margin:7px 0 5px; font-weight:850; letter-spacing:-1px; font-size:25px; }
.section-head p { margin:0; color:#8a938b; font-size:13px; }
.result-count { color:#718077; font-size:12px; }
.filters { display:flex; flex-wrap:wrap; gap:9px; margin-bottom:21px; }
.filter-chip { font-size:13px; font-weight:700; padding:10px 18px; border-radius:99px; background:#fff; border:1px solid #e4e7df; color:#758078; transition:.15s; }
.filter-chip.active,.filter-chip:hover { background:var(--green); color:white; border-color:var(--green); }
.recipe-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.recipe-card { border:1px solid #ecebe6; background:#fff; border-radius:20px; overflow:hidden; cursor:pointer; transition:transform .2s,box-shadow .2s,border-color .2s; outline-offset:3px; }
.recipe-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); border-color:#dce5d9; }
.recipe-card:focus-visible { outline:3px solid #87ad8b; }
.recipe-media { position:relative; height:190px; background:linear-gradient(130deg,#ecdcaa,#efbd91); overflow:hidden; display:grid; place-items:center; }
.recipe-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .35s; }
.recipe-card:hover .recipe-media img { transform:scale(1.055); }
.recipe-emoji { font-size:82px; }
.recipe-content { padding:18px 17px 19px; }
.recipe-row { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.recipe-title { font-size:18px; font-weight:850; letter-spacing:-.6px; }
.recipe-arrow { color:#88a08d; font-size:21px; }
.recipe-meta { margin-top:12px; display:flex; gap:13px; color:#738077; font-size:11px; font-weight:600; }
.recipe-meta span { display:inline-flex; align-items:center; gap:4px; }
.empty-state { text-align:center; padding:74px 20px; background:white; border:1px solid var(--line); border-radius:20px; }
.empty-state .empty-emoji { font-size:44px; }
.empty-state h3 { margin:11px 0 9px; font-size:19px; }
.empty-state p { margin:0 0 20px; color:var(--ink-soft); font-size:13px; }
.search-empty-state { padding:25px 18px; border-radius:16px; }
.search-empty-icon { display:block; color:var(--ink-soft); font-size:26px; line-height:1; margin-bottom:9px; }
.search-empty-state h3 { margin:0; font-size:18px; overflow-wrap:anywhere; }
.search-empty-state p { margin:7px 0 17px; }
.search-empty-state .green-button { font-size:13px; }
.section-bottom { display:flex; justify-content:center; margin:30px 0 74px; }
.button-outline { border:1px solid #d6dfd7; color:var(--green); padding:13px 25px; border-radius:12px; background:#fff; font-weight:800; font-size:13px; }









.detail { padding-top:31px; padding-bottom:72px; }
.breadcrumb { display:flex; gap:9px; align-items:center; color:#829087; font-size:12px; margin-bottom:24px; }
.crumb-link { border:0; padding:3px 0; background:transparent; color:#607668; font-size:12px; font-weight:700; }
.detail-top { display:grid; grid-template-columns: 46% 1fr; gap:45px; align-items:center; }
.detail-photo { height:355px; position:relative; display:grid; place-items:center; overflow:hidden; border-radius:23px; background:linear-gradient(135deg,#e6d2a3,#f4b491); }
.detail-photo .emoji { font-size:132px; }
.detail-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.detail-eyebrow { display:inline-flex; padding:6px 11px; font-size:11px; font-weight:850; background:#e4efe2; border-radius:99px; color:var(--green); }
.detail-info h1 { font-size:38px; margin:14px 0 12px; letter-spacing:-1.7px; }
.detail-description { color:#718076; line-height:1.8; font-size:14px; margin:0 0 20px; max-width:460px; }
.detail-metas { display:flex; gap:20px; font-size:13px; color:#607368; margin-bottom:26px; }
.detail-metas b { color:var(--green); }
.detail-section-head { display:flex; align-items:end; justify-content:space-between; gap:12px; margin-bottom:21px; }
.detail-section-head h2 { letter-spacing:-.8px; font-size:24px; margin:0 0 7px; }
.detail-section-head p { font-size:13px; color:#87958a; margin:0; }
.green-button { border:0; padding:12px 17px; border-radius:11px; background:var(--green); color:#fff; font-size:12px; font-weight:800; white-space:nowrap; }
.ingredient-list { display:grid; gap:0; background:#fff; border:1px solid #e4e9e0; border-radius:19px; overflow:hidden; }
.ingredient-item { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:15px 21px; border-bottom:1px solid #edf0ea; }
.ingredient-info { display:flex; flex-wrap:wrap; gap:5px 11px; align-items:baseline; min-width:0; }
.ingredient-name { font-size:15px; font-weight:800; color:#253e2e; }
.ingredient-amount { font-size:13px; color:#748277; }
.reuse-headline { display:inline-flex; gap:7px; align-items:center; background:#e4f0dd; color:#30613e; border-radius:99px; font-size:12px; font-weight:850; padding:8px 12px; margin-bottom:13px; }
.reuse-intro { color:#67796a; font-size:13px; line-height:1.7; margin:0 0 22px; }
.reuse-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.reuse-card { display:flex; background:#fff; border:1px solid #e5eae2; border-radius:18px; overflow:hidden; transition:box-shadow .2s; }
.reuse-card:hover { box-shadow:0 8px 28px rgba(35,71,42,.08); }
.reuse-photo { width:40%; flex:none; min-height:242px; position:relative; overflow:hidden; display:grid; place-items:center; background:#f0eadc; }
.reuse-photo .emoji { font-size:47px; }
.reuse-photo img { position:absolute; width:100%; height:100%; object-fit:cover; inset:0; }
.reuse-content { min-width:0; flex:1; display:flex; flex-direction:column; gap:8px; padding:17px; }
.reuse-stat { max-width:100%; line-height:1.6; font-weight:850; font-size:11px; align-self:flex-start; border-radius:99px; padding:6px 10px; background:#f0f1ed; color:#68786e; }
.reuse-stat.zero { color:#2d7045; background:#e4f2e3; }
.reuse-title { font-size:17px; line-height:1.45; font-weight:850; letter-spacing:-.5px; margin:0; }
.reuse-sub { color:#8a968b; font-size:12px; line-height:1.6; margin:0; }
.reuse-buttons { margin-top:auto; display:flex; flex-direction:row; gap:7px; flex-wrap:wrap; }
.reuse-buttons button, .reuse-buttons a { min-height:40px; display:flex; align-items:center; justify-content:center; flex:1; padding:9px 12px; border-radius:9px; font-size:11px; font-weight:800; }
.reuse-buttons a { text-align:center; text-decoration:none; }
.reuse-open { background:var(--green); color:#fff; border:1px solid var(--green); }
.reuse-combine { background:#fff; color:var(--green); border:1px solid #d8e5d9; }
.reuse-empty { color:#7d8b7e; font-size:13px; padding:20px; background:#fff; border:1px solid #e4e9e0; border-radius:14px; }
.recipe-instructions { border-radius:20px; background:#f1f4eb; padding:27px 32px; }
.recipe-instructions h2 { font-size:21px; letter-spacing:-.5px; margin:0 0 18px; }
.recipe-instructions ol { padding-left:23px; display:grid; gap:12px; margin:0; font-size:13px; line-height:1.7; color:#536458; }
.recipe-instructions li::marker { color:#3b7854; font-weight:850; }
.toast { position:fixed; left:50%; bottom:28px; transform:translate(-50%,25px); background:#203d2d; color:white; box-shadow:0 8px 34px rgba(23,49,34,.2); border-radius:13px; padding:13px 20px; font-size:13px; font-weight:700; z-index:60; opacity:0; pointer-events:none; transition:.22s; max-width:calc(100% - 30px); white-space:nowrap; }
.toast.show { opacity:1; transform:translate(-50%,0); }
@media(max-width:1000px) { .recipe-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .detail-top { gap:24px; } .header-search { display:none; } }
@media(max-width:720px) { .container { padding:0 18px; } .header-inner { height:64px; gap:10px; } .logo-symbol { width:34px; height:34px; } .logo-text { font-size:21px; }  .cart-trigger { padding:9px 11px; font-size:12px; } .hero { margin-top:17px; padding:22px; min-height:0; border-radius:20px; } .hero-copy { width:100%; } .hero h1 { font-size:28px; margin:10px 0 9px; } .hero h1 br { display:block; } .hero h1 em { margin-left:0; } .hero-sub { font-size:12px; margin-bottom:18px; } .hero-search { height:50px; padding:5px 5px 5px 13px; } .hero-search button { height:40px; padding:0 16px; } .hero-search input { font-size:12px; } .benefits { justify-content:flex-start; gap:13px; flex-wrap:wrap; font-size:10px; margin:16px 0 35px; } .section-head h2 { font-size:22px; } .recipe-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .recipe-media { height:146px; } .recipe-content { padding:14px 13px; } .recipe-title { font-size:16px; } .recipe-meta { flex-wrap:wrap; gap:6px; font-size:10px; } .filter-chip { padding:8px 13px; font-size:12px; } .detail { padding-top:20px; } .detail-top { grid-template-columns:1fr; gap:18px; } .detail-photo { height:255px; } .detail-info h1 { font-size:30px; margin:11px 0; } .detail-description { font-size:13px; margin-bottom:13px; } .detail-metas { gap:14px; font-size:12px; margin-bottom:16px; } .detail-section { margin-top:34px; } .detail-section-head { align-items:start; flex-direction:column; } .detail-section-head h2 { font-size:21px; } .recipe-instructions { padding:21px 22px; }   }
@media(max-width:390px) { .hero h1 { font-size:29px; } .recipe-media { height:124px; } .recipe-title { font-size:15px; } }
@media(max-width:960px) { .reuse-grid { grid-template-columns:1fr; } }
@media(max-width:720px) {
  .ingredient-item { padding:14px; align-items:start; flex-direction:column; gap:12px; }
  .ingredient-info { gap:5px 8px; }
  .reuse-content { padding:13px; }
  .reuse-title { font-size:15px; }
  .reuse-buttons button, .reuse-buttons a { padding:8px 5px; font-size:10px; }
  .detail-section-head { gap:13px; }
}

/* 재료 및 추천 요리 */
.ingredient-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; padding:5px 19px; }
.ingredient-item { min-width:0; padding:10px 0; gap:6px; border-bottom:1px solid #edf0ea; }
.ingredient-item:nth-last-child(-n+2) { border-bottom:0; }
.ingredient-info { width:100%; align-items:baseline; flex-wrap:nowrap; justify-content:space-between; gap:8px; }
.ingredient-name { font-size:13px; }
.ingredient-amount { color:#718075; font-size:12px; min-width:0; white-space:normal; overflow-wrap:anywhere; text-align:right; }
.recipe-instructions { margin-top:33px; }
.detail-section { margin-top:36px; }
.detail-section-head { margin-bottom:14px; }
.reuse-card { min-height:252px; }
.reuse-content { padding:15px; gap:7px; }
.reuse-sub { margin-bottom:2px; }
.reuse-ingredients { display:grid; gap:10px; margin:4px 0 3px; }
.reuse-ingredient-group { display:grid; gap:5px; }
.reuse-group-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:3px 8px; font-size:11px; font-weight:800; color:#4b6753; }
.reuse-group-heading small { color:#85968a; font-size:10px; font-weight:700; }
.reuse-group-heading.missing { color:#b05c35; }
.reuse-pills { display:flex; flex-wrap:wrap; gap:4px; }
.reuse-pill { overflow-wrap:anywhere; border:0; border-radius:6px; background:#edf4eb; padding:4px 6px; font-size:10px; color:#4a6952; font-weight:700; }
.reuse-pill.missing { background:#fff0e8; color:#9f5c3b; }
.reuse-pill.none { background:#f3f5f1; color:#819186; }
.reuse-headline { background:#e5efe4; }
.reuse-intro { margin:0; }
.cart-item-photo { width:54px; height:54px; border-radius:11px; background:#f4f1e9; overflow:hidden; display:grid; place-items:center; position:relative; font-size:24px; }
.cart-item-photo img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
@media(max-width:720px) {
  .ingredient-list { grid-template-columns:1fr; padding:3px 14px; }
  .ingredient-item { flex-direction:row; align-items:center; gap:5px; padding:9px 0; }
  .ingredient-item:nth-last-child(2) { border-bottom:1px solid #edf0ea; }
  .ingredient-info { flex-direction:row; align-items:baseline; justify-content:space-between; gap:10px; }
  .reuse-card { min-height:0; }
  .reuse-content { padding:12px; }
  .reuse-ingredient-group { gap:4px; }
}
@media(max-width:390px) {
  .cart-item-photo { width:42px; height:42px; }
}

[hidden] { display:none !important; }
.ingredient-group { margin-top:22px; }
.ingredient-group h3 { margin:0 0 6px; font-size:17px; }
.ingredient-group small { font-size:12px; color:#718075; font-weight:600; }
.group-note { font-size:12px; line-height:1.6; color:var(--ink-soft); margin:0 0 12px; }
.list-progress { text-align:center; color:var(--ink-soft); font-size:12px; padding:18px 0 0; }
.recipe-sentinel { height:2px; }
.cart-page { max-width:1000px; padding-top:30px; padding-bottom:28px; }
.cart-page-head { margin-bottom:24px; }
.cart-page-head h1 { font-size:36px; letter-spacing:-1.3px; margin:9px 0 13px; }
.cart-page-head h1 span { color:var(--green); margin-left:4px; }
.cart-page-head p { font-size:14px; color:var(--ink-soft); line-height:1.8; }
.cart-list-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.cart-list-heading h2 { font-size:15px; margin:0; }
.clear-cart-trigger { min-height:44px; padding:8px 0 8px 12px; border:0; background:transparent; color:var(--ink-soft); font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.selected-recipes { border:1px solid var(--line); border-radius:18px; background:white; padding:0 20px; }
.selected-recipe { display:flex; align-items:center; gap:14px; padding:17px 0; border-bottom:1px solid var(--line); }
.selected-recipe:last-child { border-bottom:0; }
.selected-recipe-copy { flex:1; min-width:0; }
.selected-recipe-copy p { margin:6px 0 0; font-size:13px; color:var(--ink-soft); }
.recipe-name-link { padding:4px 0; border:0; background:transparent; font-size:16px; font-weight:800; text-align:left; color:var(--ink); }
.recipe-name-link:hover { color:var(--green); text-decoration:underline; }
.remove-recipe { width:44px; height:44px; flex:none; border:1px solid var(--line); border-radius:12px; color:#7d887f; background:white; font-size:25px; }
.shopping-row { cursor:pointer; }
.shopping-row .ingredient-name { flex:0 0 auto; max-width:45%; overflow-wrap:anywhere; }
.purchase-check { appearance:none; display:grid; place-items:center; flex:0 0 16px; width:16px; height:16px; margin:0; border:1.5px solid #cdd7ce; border-radius:50%; background:#fff; cursor:inherit; }
.purchase-check:checked { border-color:var(--green); background:var(--green); }
.purchase-check:checked::after { content:""; width:4px; height:7px; border:solid #fff; border-width:0 1.5px 1.5px 0; transform:translateY(-.5px) rotate(45deg); }
.purchase-check:focus-visible { outline:2px solid #568460; outline-offset:2px; }
.shopping-row.is-excluded .ingredient-info { opacity:.45; }
.ingredient-query { padding:0; border:0; background:transparent; text-align:left; }
.ingredient-query:hover { text-decoration:underline; }
.ingredient-query:focus-visible,.reuse-pill:focus-visible,.reuse-photo:focus-visible { outline:3px solid #87ad8b; outline-offset:3px; }
.reuse-photo { text-decoration:none; color:inherit; }
.ingredient-recipes { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:3px 8px; min-width:0; }
.ingredient-recipe-usage { display:inline-flex; align-items:baseline; gap:4px; max-width:100%; min-width:0; }
.ingredient-recipe-badge { min-width:0; padding:0 4px; border-radius:4px; background:#eaf0e7; color:#52695a; font-size:11px; line-height:16px; overflow-wrap:anywhere; }
.ingredient-recipe-usage .ingredient-amount { flex-shrink:0; }
.cart-item-photo { width:56px; height:56px; flex:none; text-decoration:none; color:inherit; }
.cart-item-photo:focus-visible { outline:3px solid #87ad8b; outline-offset:3px; }
button:disabled { cursor:wait; opacity:.65; }
.cart-actions { display:grid; gap:10px; max-width:480px; margin:24px auto 0; }
.purchase-selection { margin:0 0 2px; font-size:13px; color:var(--ink-soft); }
.purchase-selection strong { color:var(--green); }
.cart-actions .green-button,.menu-download { width:100%; min-height:50px; padding:12px 14px; border-radius:12px; font-size:15px; font-weight:750; line-height:1.5; }
.menu-download { border:1px solid #dce5d9; background:var(--green-light); color:var(--green); }
.purchase-hint { margin:0; font-size:13px; color:var(--ink-soft); }
#purchaseIngredients:disabled { cursor:default; }
.cart-purchase-note { margin:4px 0 0; font-size:11px; line-height:1.7; color:var(--ink-soft); text-align:center; }
.green-button { min-height:44px; }
@media(max-width:720px) {
  .cart-page { padding-top:22px; }
  .cart-page-head h1 { font-size:30px; }
  .selected-recipes { padding:0 14px; }
  .selected-recipe { gap:11px; }
  .recipe-name-link { font-size:16px; overflow-wrap:anywhere; }
  .detail-section-head { flex-direction:row; align-items:center; }
  .detail-section-head .green-button { flex:none; }
  }

.clear-cart-dialog { width:min(380px,calc(100% - 36px)); padding:0; border:1px solid var(--line); border-radius:20px; background:var(--bg); color:var(--ink); box-shadow:var(--shadow); }
.clear-cart-dialog::backdrop { background:rgba(28,39,33,.38); }
.clear-cart-content { padding:24px; }
.clear-cart-content h2 { margin:0 0 10px; font-size:21px; letter-spacing:-.6px; }
.clear-cart-content p { margin:0 0 22px; color:var(--ink-soft); font-size:14px; line-height:1.7; }
.clear-cart-buttons { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.clear-cart-buttons button { width:100%; min-height:50px; padding:12px; white-space:normal; }
body:has(.clear-cart-dialog[open]) { overflow:hidden; }
body:has(.purchase-dialog[open]) { overflow:hidden; }
.purchase-dialog { width:min(540px,calc(100% - 36px)); max-width:none; max-height:85dvh; padding:0; border:1px solid var(--line); border-radius:20px; background:white; color:var(--ink); box-shadow:var(--shadow); overflow:hidden; }
.purchase-dialog::backdrop { background:rgba(28,39,33,.38); }
.purchase-dialog-content { display:flex; flex-direction:column; max-height:inherit; }
.purchase-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex:none; padding:22px 22px 14px; }
.purchase-dialog-header h2 { margin:0; font-size:21px; letter-spacing:-.6px; }
.purchase-dialog-header p { margin:4px 0 0; font-size:12px; font-weight:600; color:var(--green); }
.purchase-dialog-close { width:44px; height:44px; flex:none; border:0; border-radius:10px; background:var(--green-light); color:var(--green); font-size:27px; }
.purchase-dialog-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 22px 22px; }
#purchaseDescription,.purchase-dialog-note { margin:0; font-size:12px; line-height:1.7; color:var(--ink-soft); }
.purchase-dialog-list { margin:16px 0 0; padding:0; list-style:none; }
.purchase-dialog-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:15px 0; border-top:1px solid var(--line); }
.purchase-row-copy { min-width:0; }
.purchase-row-copy strong { display:block; font-size:15px; overflow-wrap:anywhere; }
.purchase-row-copy .ingredient-recipes { justify-content:flex-start; margin-top:6px; }
.purchase-search-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:9px 11px; border:1px solid var(--line); border-radius:10px; color:var(--green); text-decoration:none; font-size:12px; font-weight:700; white-space:nowrap; }
.purchase-search-link:hover { background:var(--green-light); }
.purchase-search-link:focus-visible,.purchase-dialog-close:focus-visible { outline:3px solid #87ad8b; outline-offset:2px; }
.purchase-dialog-note { padding-top:15px; border-top:1px solid var(--line); }
@media(max-width:720px) {
  .purchase-dialog { width:100%; margin:auto 0 0; max-height:85dvh; border-radius:22px 22px 0 0; border-bottom:0; }
  .purchase-dialog-header { padding:20px 18px 14px; }
  .purchase-dialog-body { padding:0 18px calc(22px + env(safe-area-inset-bottom)); }
}
@media(max-width:360px) {
  .purchase-dialog-row { grid-template-columns:1fr; gap:9px; }
  .purchase-search-link { justify-self:start; }
}

/* Navigation keeps native link behavior on desktop and touch browsers. */
a.green-button { display:inline-flex; align-items:center; }
a.recipe-card { display:block; color:inherit; text-decoration:none; }
a.cart-trigger, a.crumb-link, a.recipe-name-link, a.green-button, a.reuse-open { text-decoration:none; }
.reuse-buttons a { display:flex; align-items:center; justify-content:center; }
