/* Weekly menu editing screens (wp-admin + front-end manager) */
.thp-menuscr { max-width: 900px; }
.thp-mstep { margin: 0 0 12px; font-size: 14px; }
.thp-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 14px; }
.thp-pcard { background: #fff; border: 1px solid #dcdcde; border-left: 4px solid #c8962e; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.thp-pcard b { font-size: 15px; color: #6b1226; }
.thp-pcard small { color: #555; font-size: 12px; }
.thp-pcard-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.thp-mhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 4px 0 12px; }
.thp-mhead h3 { margin: 0; font-size: 20px; color: #6b1226; }
.thp-mback { font-size: 13px; font-weight: 600; text-decoration: none; color: #6b1226; }
.thp-mback:hover { text-decoration: underline; }

.thp-seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid #6b1226; border-radius: 10px; overflow: hidden; margin: 0 0 14px; max-width: 560px; }
.thp-seg a { display: block; text-align: center; padding: 10px 8px; background: #fff; color: #6b1226; font-weight: 700; font-size: 14px; text-decoration: none; }
.thp-seg a + a { border-left: 2px solid #6b1226; }
.thp-seg a small { display: block; font-weight: 400; font-size: 11px; opacity: .8; }
.thp-seg a.on { background: #6b1226; color: #fff; }

.thp-mintro { max-width: 760px; margin: 0 0 12px !important; line-height: 1.5; }
.thp-drows { display: grid; gap: 8px; max-width: 760px; }
.thp-drow { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; background: #fff; border: 1px solid #e3e3e3; border-radius: 8px; padding: 8px 10px; }
.thp-drow b { font-size: 14px; }

.thp-wkcs { display: grid; gap: 14px; max-width: 860px; }
.thp-wkc { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; overflow: hidden; }
.thp-wkc.sp { border-color: #c8962e; box-shadow: 0 0 0 1px #c8962e inset; }
.thp-wkc-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; background: #faf3e3; padding: 10px 14px; }
.thp-wkc-h b { font-size: 15px; color: #6b1226; margin-right: 8px; }
.thp-wkc-h span { font-size: 13px; color: #444; }
.thp-wkc-h em { font-style: normal; font-size: 11px; font-weight: 700; background: #c8962e; color: #fff; border-radius: 999px; padding: 2px 9px; margin-left: 8px; }
.thp-wkc-b { display: flex; gap: 6px; flex-wrap: wrap; }
.thp-wkc-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid #eee; margin: 0; }
.thp-wkc-row > span b { display: block; font-size: 14px; }
.thp-wkc-row > span small { color: #666; font-size: 11px; }
.thp-wkc-row.past { opacity: .55; }
.thp-wkc-row:target { background: #fff3cd; outline: 2px solid #c8962e; outline-offset: -2px; }
.thp-wkc-row input[type=text] { width: 100%; }
@media (max-width: 560px) {
  .thp-drow { grid-template-columns: 1fr; gap: 4px; }
  .thp-wkc-row { grid-template-columns: 56px 1fr; }
}

/* ===== Weekly Menu Page editor (tabs: Veg / Non-veg / Alternate) ===== */
.thp-bedit { max-width: 980px; }
/* general fields */
.thp-bgen { margin-top: 16px; }
.thp-bbox { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 14px; margin: 0 0 14px; }
.thp-btabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid #6b1226; border-radius: 10px; overflow: hidden; margin: 0 0 14px; max-width: 560px; }
.thp-btab { display: block; text-align: center; border: 0; background: #fff; color: #6b1226; font: inherit; font-weight: 700; font-size: 14px; padding: 11px 8px; cursor: pointer; text-decoration: none; }
.thp-btab + .thp-btab { border-left: 2px solid #6b1226; }
.thp-btab.is-on { background: #6b1226; color: #fff; }
.thp-blabel { max-width: 320px; margin: 0 0 12px; }
.thp-bdays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.thp-bday { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 12px; display: grid; gap: 6px; align-content: start; }
.thp-bday-h { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border-left: 8px solid #6b1226; padding-left: 8px; }
.thp-bday-h input[type=text] { width: 100%; font-weight: 700; }
.thp-bcol { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.thp-bcol input[type=color] { width: 44px; height: 32px; padding: 1px; }
.thp-blab { font-size: 12px; font-weight: 600; margin-top: 4px; }
.thp-bday textarea { width: 100%; }
.thp-bimg { display: grid; grid-template-columns: 64px 1fr; gap: 6px; align-items: center; }
.thp-bprev { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); grid-row: 1 / span 2; }
.thp-bimg .thp-imgurl { grid-column: 2; width: 100%; }
.thp-bimg .thp-pick, .thp-bimg .thp-bclr { margin: 0; }
.thp-bimg .thp-pick { grid-column: 1 / span 2; justify-self: start; }
.thp-bimg .thp-bprev[style*="none"] + .thp-imgurl { grid-column: 1 / span 2; }
@media (max-width: 700px) { .thp-bdays { grid-template-columns: 1fr; } }

/* ===== Upcoming meals: week-wise menu editor ===== */
.thp-uw { max-width: 760px; }
.thp-uwc { background: #fafafa; border: 1px solid #dcdcde; border-radius: 10px; padding: 12px; margin: 0 0 14px; }
.thp-uwc-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; border-left: 6px solid #6b1226; padding-left: 8px; }
.thp-uwc-t { font-size: 15px; }
.thp-uwc-b { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== Plans & prices: one card per plan ===== */
.thp-pcard { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 12px; margin: 0 0 12px; max-width: 760px; }
.thp-pcard-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; border-left: 6px solid #6b1226; padding-left: 8px; }
.thp-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.thp-pgrid label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
.thp-pgrid small { font-weight: 400; color: #646970; }
.thp-pchecks { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 13px; }
@media (max-width: 560px) { .thp-pgrid { grid-template-columns: 1fr; } }
