/*
 * The rater phone app's web side (WP18): tabs, the invite and done screens, the earnings lines and, on the item page,
 * the A/B toggle and the choice docked at the bottom. Scoped under body.rate like rate.css; phone first, and the
 * same markup widens on a desktop.
 */
.rate-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--pl-rule); }
.rate-tabs a { flex: 1; text-align: center; padding: .5rem .25rem; text-decoration: none; color: var(--pl-muted); border-bottom: 2px solid transparent; }
.rate-tabs a.rate-tab-current { color: var(--pl-ink); border-bottom-color: var(--pl-accent); font-weight: 600; }
.rate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rate-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; padding: .5rem 0; border-bottom: 1px solid var(--pl-rule); text-decoration: none; color: inherit; }
.rate-list > li:last-child > .rate-row, .rate-list > li.rate-row:last-child { border-bottom: 0; }
.rate-actions { display: grid; gap: .5rem; }
.rate-actions-inline { display: flex; gap: .75rem; align-items: center; }
.rate-button-wide { width: 100%; justify-self: stretch; text-align: center; padding: .8rem 1rem; font-size: 1.05rem; }
.rate-button-secondary { background: var(--pl-surface); color: var(--pl-ink); border: 1px solid var(--pl-rule); }
.rate-button-small { padding: .35rem .7rem; font-size: .9rem; }
.rate-danger { color: var(--pl-bad); }
.rate-price { font-size: 1.6rem; margin: 0; }
.rate-hold { font-weight: 600; color: var(--pl-accent); }
.rate-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; }
.rate-totals div { background: var(--pl-bg); border-radius: 8px; padding: .5rem; }
.rate-totals dt { color: var(--pl-muted); font-size: .85rem; }
.rate-totals dd { margin: 0; font-weight: 700; font-size: 1.15rem; }
.rate-weekly-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rate-weekly-table th, .rate-weekly-table td { text-align: left; padding: .35rem .25rem; border-bottom: 1px solid var(--pl-rule); }
.rate-weekly-table thead th { color: var(--pl-muted); font-weight: 600; font-size: .8rem; }
.rate-next { border-top: 1px solid var(--pl-rule); margin-top: 1rem; padding-top: .75rem; }
.rate-hidden { display: none; }

/* The item page */
.rate-phone { display: grid; gap: .75rem; padding-bottom: 11rem; }
.rate-phone-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.rate-phone-progress { width: 100%; height: .4rem; accent-color: var(--pl-accent); }
.rate-more { position: relative; }
.rate-more summary { list-style: none; cursor: pointer; font-size: 1.4rem; line-height: 1; padding: 0 .4rem; }
.rate-more summary::-webkit-details-marker { display: none; }
.rate-more-menu { position: absolute; right: 0; top: 1.8rem; z-index: 3; display: grid; gap: .5rem; min-width: 12rem; padding: .75rem; background: var(--pl-surface); border: 1px solid var(--pl-rule); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.rate-phone-form { display: grid; gap: .75rem; }
.rate-ab { display: flex; gap: .25rem; background: var(--pl-bg); border: 1px solid var(--pl-rule); border-radius: 999px; padding: .2rem; position: sticky; top: .25rem; z-index: 2; }
.rate-ab-tab { flex: 1; font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: .5rem; background: transparent; color: var(--pl-muted); cursor: pointer; }
.rate-ab-tab.rate-ab-current { background: var(--pl-surface); color: var(--pl-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rate-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; background: var(--pl-surface); border-top: 1px solid var(--pl-rule); padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); display: grid; gap: .5rem; }
.rate-dock-choice { border: 0; padding: 0; background: transparent; display: grid; gap: .35rem; }
.rate-dock-choice legend { font-size: .9rem; color: var(--pl-muted); padding: 0; }
.rate-dock-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)); gap: .4rem; }
.rate-dock-option { display: flex; align-items: center; gap: .4rem; border: 1px solid var(--pl-rule); border-radius: 8px; padding: .5rem .6rem; background: var(--pl-bg); }
.rate-dock-option:has(input:checked) { border-color: var(--pl-accent); background: var(--pl-surface); font-weight: 600; }
@media (min-width: 700px) {
  .rate-phone { padding-bottom: 9rem; }
  .rate-dock { left: 50%; transform: translateX(-50%); width: min(100%, 72rem); border-left: 1px solid var(--pl-rule); border-right: 1px solid var(--pl-rule); border-radius: 10px 10px 0 0; }
  .rate-ab { display: none; }
  .rate-phone-answer.rate-hidden { display: block; }
  .rate-phone .rate-phone-answer { width: calc(50% - .4rem); display: inline-block; vertical-align: top; }
}
