/* Sales Tax Calculator — style.css v1.0 */

.stc-wrap {
    max-width: 580px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
}

/* Header */
.stc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.stc-icon   { font-size: 34px; line-height: 1; }
.stc-title  {
    font-size: 22px !important; font-weight: 600 !important;
    margin: 0 0 3px !important; padding: 0 !important;
    border: none !important; color: #1a1a1a !important;
}
.stc-sub { font-size: 13px; color: #666; margin: 0; }

/* Tabs */
.stc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 22px;
}
@media (max-width: 500px) { .stc-tabs { grid-template-columns: 1fr; } }

.stc-tab {
    padding: 11px 8px;
    font-size: 12.5px; font-weight: 500;
    border: 1px solid #d8d8d8; border-radius: 10px;
    background: #fff; color: #555;
    cursor: pointer; transition: background .13s, color .13s, border-color .13s;
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; line-height: 1.3; text-align: center;
}
.stc-tab:hover:not(.act) { background: #f0fff4; }
.stc-tab.act { background: #e8faf0; color: #0F6E56; border-color: #4CAF8A; }
.stc-tab-icon { font-size: 16px; }
.stc-tab-sub  { font-size: 11px; font-weight: 400; opacity: .7; }

/* Panels */
.stc-panel { display: none; }
.stc-panel.act { display: block; }

/* Section label */
.stc-section-lbl {
    font-size: 12px; font-weight: 600; color: #888;
    margin-bottom: 14px; font-style: italic;
}

/* Grid */
.stc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (max-width: 460px) { .stc-grid { grid-template-columns: 1fr; } }

/* Labels */
.stc-lbl {
    display: block;
    font-size: 13px; font-weight: 500; color: #555;
    margin-bottom: 6px;
}

/* Inputs */
.stc-iw { position: relative; }
.stc-iw input[type="number"],
.stc-iw input[type="text"] {
    width: 100%; box-sizing: border-box;
    padding: 9px 36px 9px 26px;
    border: 1px solid #d0d0d0; border-radius: 8px;
    font-size: 14px; color: #1a1a1a; background: #fff;
    outline: none; transition: border-color .15s;
    -moz-appearance: textfield;
}
.stc-iw input[type="number"]::-webkit-inner-spin-button,
.stc-iw input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.stc-iw input:focus { border-color: #0F6E56; box-shadow: 0 0 0 3px rgba(15,110,86,.1); }
.stc-pre {
    position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
    font-size: 13px; color: #999; pointer-events: none;
}
.stc-suf {
    position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
    font-size: 12px; color: #999; pointer-events: none;
}

/* Multiple tax rates section */
.stc-multi-wrap {
    margin-bottom: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}
.stc-multi-toggle {
    padding: 10px 14px;
    font-size: 13px; color: #555; cursor: pointer;
    background: #f8f8f8;
    user-select: none;
    transition: background .13s;
}
.stc-multi-toggle:hover { background: #f0f0f0; }
#stc-multi-inputs { padding: 12px 14px; background: #fff; }

.stc-multi-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.stc-multi-row  { display: flex; gap: 8px; align-items: center; }
.stc-multi-name-w { flex: 2; }
.stc-multi-rate-w { flex: 1; }
.stc-multi-name-w input { padding-left: 10px !important; }

.stc-multi-remove {
    width: 28px; height: 28px; flex-shrink: 0;
    border: 1px solid #e0e0e0; border-radius: 6px;
    background: #fff; color: #aaa; cursor: pointer;
    font-size: 11px; transition: background .13s, color .13s;
    display: flex; align-items: center; justify-content: center;
}
.stc-multi-remove:hover { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }

.stc-add-row-btn {
    font-size: 12px; color: #0F6E56;
    background: none; border: 1px dashed #4CAF8A;
    border-radius: 7px; padding: 6px 12px; cursor: pointer;
    transition: background .13s;
}
.stc-add-row-btn:hover { background: #e8faf0; }
.stc-multi-note { font-size: 11px; color: #aaa; margin-top: 6px; }

/* Result card */
.stc-result-card {
    background: #e8faf0; border: 1px solid #4CAF8A;
    border-radius: 12px; padding: 18px 20px;
    margin-top: 4px; margin-bottom: 14px;
    animation: stc-in .22s ease;
}
@keyframes stc-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Result rows */
.stc-res-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid #a8d8c0;
    font-size: 14px;
}
.stc-res-row:last-child { border-bottom: none; font-size: 15px; font-weight: 700; }
.stc-res-lbl { color: #0F4A38; }
.stc-res-val { color: #063B17; font-weight: 600; }
.stc-res-row.stc-highlight {
    background: #0F6E56; color: #fff;
    border-radius: 8px; padding: 10px 14px;
    margin: 6px -2px; border-bottom: none;
}
.stc-res-row.stc-highlight .stc-res-lbl { color: rgba(255,255,255,.8); }
.stc-res-row.stc-highlight .stc-res-val { color: #fff; font-size: 18px; }

/* Multi tax breakdown */
.stc-tax-breakdown { margin-top: 4px; }
.stc-tax-item {
    display: flex; justify-content: space-between;
    padding: 4px 0; font-size: 13px; color: #0F4A38;
    border-bottom: 1px dashed #c0e8d0;
}
.stc-tax-item:last-child { border-bottom: none; }
.stc-tax-total {
    display: flex; justify-content: space-between;
    padding: 6px 0 0; font-size: 13px; font-weight: 600;
    color: #0F4A38; border-top: 1px solid #4CAF8A; margin-top: 4px;
}

/* Rate found badge */
.stc-rate-badge {
    display: inline-block;
    background: #0F6E56; color: #fff;
    border-radius: 20px; padding: 4px 14px;
    font-size: 20px; font-weight: 700;
    margin-bottom: 12px;
}

.stc-reset-btn {
    display: block; width: 100%; margin-top: 10px; padding: 9px;
    font-size: 13px; color: #999; background: none;
    border: 1px solid #e8e8e8; border-radius: 8px;
    cursor: pointer; transition: background .13s;
}
.stc-reset-btn:hover { background: #f5f5f5; color: #333; }
