/* ============================================================
   Tip Calculator — tip-calculator.css
   calcdaystime.com — Smart Tools Suite
   Colours: Green #1D9E75, Navy #1A3A5C, Light #f7f9fc
   ============================================================ */

#sts-tc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 680px;
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 14px;
    overflow: hidden;
    color: #1A3A5C;
}

/* ── Tabs ── */
.sts-tc__tabs {
    display: flex;
    background: #e2eaf3;
    border-bottom: 1px solid #c8d8e8;
    overflow-x: auto;
    scrollbar-width: none;
}
.sts-tc__tabs::-webkit-scrollbar { display: none; }

.sts-tc__tab {
    flex-shrink: 0;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #1A3A5C;
    border: none;
    background: #e2eaf3;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    font-family: inherit;
    border-right: 1px solid #c8d8e8;
    transition: all .15s;
}
.sts-tc__tab:last-child { border-right: none; }
.sts-tc__tab:hover { background: #d0dcea; color: #1D9E75; }
.sts-tc__tab.sts-tc--active {
    color: #1D9E75;
    border-bottom-color: #1D9E75;
    background: #ffffff;
    font-weight: 700;
}

/* ── Currency bar ── */
.sts-tc__currency {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f7f9fc;
    border-bottom: 1px solid #dce4ef;
    flex-wrap: wrap;
}
.sts-tc__cur-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #7a9ab5;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}
.sts-tc__cur-btn {
    padding: 5px 11px;
    border: 1.5px solid #c4d0de;
    border-radius: 6px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    color: #1A3A5C;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.sts-tc__cur-btn:hover { border-color: #1D9E75; color: #1D9E75; }
.sts-tc__cur-btn.sts-tc--active {
    background: #1D9E75;
    color: #ffffff;
    border-color: #1D9E75;
}

/* ── Panel ── */
.sts-tc__panel { padding: 20px; display: none; background: #ffffff; }
.sts-tc__panel.sts-tc--active { display: block; }

/* ── Fields ── */
.sts-tc__field { margin-bottom: 14px; }
.sts-tc__lbl {
    font-size: 11px;
    font-weight: 700;
    color: #7a9ab5;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 5px;
}
.sts-tc__inp-row {
    display: flex;
    align-items: center;
    border: 1.5px solid #c4d0de;
    border-radius: 8px;
    background: #f7f9fc;
    overflow: hidden;
    transition: border-color .15s;
}
.sts-tc__inp-row:focus-within {
    border-color: #1D9E75;
    background: #ffffff;
}
.sts-tc__sym {
    padding: 0 10px;
    font-size: 16px;
    color: #1D9E75;
    font-weight: 800;
    background: transparent;
    flex-shrink: 0;
}
.sts-tc__inp {
    width: 100%;
    padding: 10px 4px;
    border: none;
    background: transparent;
    color: #1A3A5C;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
}
.sts-tc__inp:focus { outline: none; }
.sts-tc__inp::placeholder { color: #b0bec5; font-weight: 400; }
/* Hide number spinner arrows */
.sts-tc__inp[type=number]::-webkit-inner-spin-button,
.sts-tc__inp[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.sts-tc__inp[type=number] { -moz-appearance: textfield; }

/* ── Two column layout ── */
.sts-tc__two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── Quality buttons ── */
.sts-tc__quality {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
    margin-bottom: 14px;
}
.sts-tc__q-btn {
    padding: 9px 4px;
    border: 1.5px solid #c4d0de;
    border-radius: 8px;
    background: #f7f9fc;
    font-size: 11px;
    font-weight: 700;
    color: #1A3A5C;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    line-height: 1.3;
    transition: all .15s;
}
.sts-tc__q-btn:hover { border-color: #1D9E75; color: #1D9E75; background: #f0f9f5; }
.sts-tc__q-btn.sts-tc--active {
    border-color: #1D9E75;
    background: #1D9E75;
    color: #ffffff;
}
.sts-tc__q-pct {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin-top: 2px;
}

/* ── Slider ── */
.sts-tc__slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.sts-tc__slider {
    flex: 1;
    accent-color: #1D9E75;
    cursor: pointer;
}
.sts-tc__slider-val {
    font-size: 16px;
    font-weight: 800;
    color: #1A3A5C;
    min-width: 44px;
    text-align: right;
}

/* ── Split toggle ── */
.sts-tc__split-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f0f9f5;
    border-radius: 8px;
    margin-bottom: 14px;
    border: 1.5px solid rgba(29,158,117,.25);
    cursor: pointer;
}
.sts-tc__split-lbl {
    font-size: 13px;
    color: #0F6E56;
    font-weight: 700;
}
.sts-tc__toggle-track {
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #c4d0de;
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
    pointer-events: none;
}
.sts-tc__toggle-thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* ── Split section ── */
.sts-tc__split-sec { display: none; margin-bottom: 14px; }
.sts-tc__split-sec.sts-tc--show { display: block; }
.sts-tc__pp-row {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(29,158,117,.35);
    border-radius: 8px;
    background: #f0f9f5;
    overflow: hidden;
}

/* ── Results ── */
.sts-tc__results {
    border: 1.5px solid #dce4ef;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
    background: #f7f9fc;
}
.sts-tc__res-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f7f9fc;
}
.sts-tc__res-cell {
    padding: 14px;
    text-align: center;
    background: #f7f9fc;
}
.sts-tc__res-cell + .sts-tc__res-cell { border-left: 1px solid #dce4ef; }
.sts-tc__res-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #7a9ab5;
    margin-bottom: 5px;
}
.sts-tc__res-num {
    font-size: 28px;
    font-weight: 800;
    color: #1A3A5C;
    letter-spacing: -1px;
}
.sts-tc__res-num.sts-tc--green { color: #1D9E75; }

.sts-tc__res-bot {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid #dce4ef;
    background: #ffffff;
}
.sts-tc__bot-cell {
    padding: 10px 8px;
    text-align: center;
    background: #ffffff;
}
.sts-tc__bot-cell + .sts-tc__bot-cell { border-left: 1px solid #dce4ef; }
.sts-tc__bot-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7a9ab5;
    margin-bottom: 3px;
}
.sts-tc__bot-num {
    font-size: 17px;
    font-weight: 800;
    color: #1D9E75;
}

/* ── Round up buttons ── */
.sts-tc__rnd-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.sts-tc__rnd-btn {
    flex: 1;
    padding: 10px 4px;
    border: 1.5px solid #c4d0de;
    border-radius: 8px;
    background: #f7f9fc;
    font-size: 16px;
    font-weight: 800;
    color: #1A3A5C;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.sts-tc__rnd-btn:hover { border-color: #1D9E75; color: #1D9E75; }
.sts-tc__rnd-btn.sts-tc--active {
    background: #1D9E75;
    color: #ffffff;
    border-color: #1D9E75;
}

/* ── Mobile ── */
@media (max-width: 560px) {
    .sts-tc__panel { padding: 14px; }
    .sts-tc__tab { padding: 10px 12px; font-size: 12px; }
    .sts-tc__two-col { grid-template-columns: 1fr; }
    .sts-tc__quality { grid-template-columns: repeat(5, 1fr); gap: 5px; }
    .sts-tc__q-btn { padding: 7px 2px; font-size: 10px; }
    .sts-tc__res-top { grid-template-columns: 1fr; }
    .sts-tc__res-cell + .sts-tc__res-cell { border-left: none; border-top: 1px solid #dce4ef; }
    .sts-tc__res-bot { grid-template-columns: 1fr 1fr; }
    .sts-tc__currency { padding: 8px 14px; gap: 6px; }
    .sts-tc__cur-btn { padding: 4px 8px; font-size: 12px; }
}
