/* KOCO Kitchen: Thalis & Combos list (Meals/Index) and the ready-made thali page (Meals/Configure).
   Layout "P1 · Cards + green summary" (UI redesign 2026-11-21). The earlier styles are in git history. */

.tc-page {
    padding: 28px 0 56px;
}

.tc-kicker {
    display: block;
    color: #F2C14E;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tc-page h2,
.tc-page h3 {
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    color: #1E3D2F;
    margin: 0;
}

.tc-btn-turmeric,
.tc-btn-green {
    border-radius: 12px;
    font-weight: 700;
    padding: 12px 20px;
    white-space: nowrap;
}

.tc-btn-turmeric {
    background: #F2C14E;
    border: 0;
    color: #1E3D2F;
}

.tc-btn-turmeric:hover,
.tc-btn-turmeric:focus-visible {
    background: #E0A93B;
    color: #142B21;
}

.tc-btn-green {
    background: #1E3D2F;
    border: 0;
    color: #FAF4E6;
    padding: 9px 18px;
}

.tc-btn-green:hover,
.tc-btn-green:focus-visible {
    background: #142B21;
    color: #F2C14E;
}

/* ---- Build your own (green card) ---- */
.tc-build {
    display: flex;
    align-items: center;
    gap: 26px;
    background: #1E3D2F;
    color: #FAF4E6;
    border-radius: 20px;
    padding: 26px 28px;
    margin-bottom: 30px;
}

.tc-build-art {
    display: grid;
    flex: 0 0 110px;
    place-items: center;
    width: 110px;
    height: 110px;
    border-radius: 18px;
    background: #F2C14E;
    color: #1E3D2F;
    font-size: 3.2rem;
}

.tc-build-copy {
    flex: 1;
    min-width: 0;
}

.tc-page .tc-build h2 {
    color: #F2C14E;
    font-size: 1.8rem;
    margin: 4px 0 6px;
}

.tc-build p {
    margin: 0 0 12px;
    color: #DCE7DF;
}

.tc-price-chips,
.tc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-price-chips li {
    border: 1px solid rgba(250, 244, 230, .28);
    background: rgba(250, 244, 230, .08);
    border-radius: 999px;
    padding: 4px 11px;
    font-size: .86rem;
}

.tc-price-chips b {
    color: #F2C14E;
}

/* ---- Ready-made thali cards ---- */
.tc-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin-bottom: 14px;
}

.tc-section-head h2 {
    font-size: 1.55rem;
}

.tc-section-head span {
    color: #5B5446;
    font-size: .92rem;
}

.tc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 992px) {
    .tc-grid { grid-template-columns: 1fr 1fr; }
}

.tc-card {
    display: flex;
    gap: 18px;
    padding: 18px;
    background: #FFFDF7;
    border: 1px solid #E7DCC4;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(30, 61, 47, .05);
}

.tc-art {
    display: grid;
    flex: 0 0 112px;
    place-items: center;
    width: 112px;
    height: 112px;
    border-radius: 14px;
    background: #1E3D2F;
    font-size: 2.8rem;
}

.tc-art.is-veg {
    background: #2F5B43;
}

.tc-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.tc-tag {
    align-self: flex-start;
    background: #F3EBD8;
    border-radius: 999px;
    color: #1E3D2F;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 3px 9px;
    text-transform: uppercase;
}

.tc-card h3 {
    font-size: 1.25rem;
    margin: 6px 0 4px;
}

.tc-card p {
    color: #5B5446;
    font-size: .92rem;
    margin: 0 0 8px;
}

.tc-chips li {
    background: #FFFDF7;
    border: 1px solid #E7DCC4;
    border-radius: 999px;
    color: #3E3A31;
    font-size: .8rem;
    padding: 3px 10px;
}

.tc-chips li.is-choice {
    border-color: #1E3D2F;
    color: #1E3D2F;
    font-weight: 600;
}

.tc-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
}

.tc-card-foot strong {
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    color: #1E3D2F;
    font-size: 1.35rem;
}

.tc-card.is-unavailable .tc-art {
    filter: grayscale(.8);
    opacity: .7;
}

.tc-note {
    background: #F3EBD8;
    border-radius: 14px;
    margin-top: 26px;
    padding: 14px 18px;
    font-size: .95rem;
}

/* ---- Ready-made thali page ---- */
.tc-back {
    display: block;
    padding-top: 14px;
    padding-bottom: 10px;
    color: #1E3D2F;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
}

.tc-back:hover {
    text-decoration: underline;
}

.tc-cfg {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

@media (min-width: 992px) {
    .tc-cfg { grid-template-columns: minmax(0, 1fr) 370px; gap: 28px; }
    .tc-summary { position: sticky; top: 108px; }
}

.tc-step {
    background: #FFFDF7;
    border: 1px solid #E7DCC4;
    border-radius: 18px;
    margin: 0 0 16px;
    padding: 20px 22px;
    min-width: 0;
}

.tc-step h2,
.tc-step legend {
    display: flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 0;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    color: #1E3D2F;
    font-size: 1.18rem;
    font-weight: 700;
}

/* Bootstrap floats the legend (width 100%) so it sits inside the card, not on its border. */
.tc-step legend {
    float: left;
    width: 100%;
}

.tc-step legend + * {
    clear: left;
}

.tc-step h2 label {
    cursor: pointer;
}

.tc-num {
    display: grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 50%;
    background: #1E3D2F;
    color: #F2C14E;
    font-family: Inter, "Segoe UI", sans-serif;
    font-size: .86rem;
    font-weight: 700;
}

.tc-step-note {
    color: #5B5446;
    font-size: .86rem;
    margin: 10px 0 0;
}

.tc-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.tc-option {
    position: relative;
    display: block;
    border: 1.5px solid #E7DCC4;
    border-radius: 12px;
    background: #FFFDF7;
    color: #1E3D2F;
    cursor: pointer;
    padding: 12px;
    text-align: center;
    transition: background .15s ease, border-color .15s ease;
}

.tc-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tc-option strong {
    display: block;
    font-size: .95rem;
}

.tc-option small {
    display: block;
    color: #5B5446;
    font-size: .8rem;
    margin-top: 2px;
}

.tc-option:hover {
    border-color: #1E3D2F;
}

.tc-option:has(input:checked) {
    background: #1E3D2F;
    border-color: #1E3D2F;
    color: #FAF4E6;
}

.tc-option:has(input:checked) small {
    color: #F2C14E;
}

.tc-option:has(input:focus-visible) {
    outline: 3px solid #F2C14E;
    outline-offset: 2px;
}

.tc-option:has(input:disabled) {
    cursor: not-allowed;
    opacity: .6;
}

/* meals.js adds a per-option quantity control; one of each per thali here, so it isn't shown. */
.tc-cfg .meal-option-quantity {
    display: none !important;
}

.meal-option-group.has-validation-error {
    border-color: #B3261E;
    box-shadow: 0 0 0 2px rgba(179, 38, 30, .15);
}

.tc-step-count {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tc-step-count h2 {
    margin: 0;
}

.tc-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #E7DCC4;
    border-radius: 999px;
    background: #FFFDF7;
}

.tc-qty-btn {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #1E3D2F;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.tc-qty-btn:disabled {
    opacity: .4;
}

.tc-qty input {
    width: 44px;
    border: 0;
    background: transparent;
    color: #2A2620;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}

.tc-qty input::-webkit-outer-spin-button,
.tc-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ---- Green summary ---- */
.tc-summary {
    background: #1E3D2F;
    border-radius: 18px;
    color: #FAF4E6;
    padding: 22px;
}

.tc-page .tc-summary h2 {
    color: #F2C14E;
    font-size: 1.4rem;
    margin: 4px 0 10px;
}

.tc-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-summary-list li {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(250, 244, 230, .15);
    font-size: .92rem;
    padding: 6px 0;
}

.tc-summary-list li::before {
    content: "✓";
    color: #F2C14E;
    font-weight: 700;
}

.tc-summary-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 16px 0 14px;
}

.tc-summary-price strong {
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    color: #F2C14E;
    font-size: 1.9rem;
}

.tc-summary .btn:disabled {
    opacity: .55;
}

.tc-summary-note {
    color: #DCE7DF;
    font-size: .8rem;
    margin: 10px 0 0;
}

.meal-validation {
    background: #FBE9E7;
    border-radius: 10px;
    color: #8C1D18;
    font-size: .88rem;
    margin-top: 12px;
    padding: 10px 12px;
}

.meal-validation[hidden] {
    display: none;
}

.meal-validation.is-success {
    background: #E3F0E6;
    color: #1E3D2F;
}

/* Out of stock badge (shared wording with the Dishes page). */
.koco-availability-badge.is-unavailable {
    display: inline-block;
    background: #FBE9E7;
    border-radius: 999px;
    color: #8C1D18;
    font-size: .8rem;
    font-weight: 700;
    padding: 4px 10px;
}

@media (max-width: 575.98px) {
    .tc-page { padding: 18px 0 40px; }
    .tc-build { display: block; padding: 20px 18px; }
    .tc-build-art { display: none; }
    .tc-page .tc-build h2 { font-size: 1.45rem; margin-top: 2px; }
    .tc-build .tc-btn-turmeric { display: block; margin-top: 14px; }
    .tc-card { gap: 12px; padding: 12px; }
    .tc-art { flex-basis: 72px; width: 72px; height: 72px; font-size: 1.9rem; }
    .tc-card h3 { font-size: 1.05rem; }
    .tc-card p { display: none; }
    .tc-card-foot strong { font-size: 1.1rem; }
    .tc-step { padding: 16px; }
    .tc-options { grid-template-columns: 1fr 1fr; }
}
