.price-main { max-width: 930px; padding-top: 24px; }
.top-actions { gap: 12px; }
.back-link { min-height: 36px; padding: 6px 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ffffff35; border-radius: 9px; background: #ffffff10; color: #e0f394; font-size: .76rem; font-weight: 700; text-decoration: none; transition: background .16s, border-color .16s, transform .16s; }
.back-link::before { content: "←"; font-size: 1rem; line-height: 1; }
.back-link:hover { transform: translateY(-1px); border-color: #d3f36b80; background: #ffffff1a; color: #efffae; }
[dir="rtl"] .back-link::before { content: "→"; }
.price-hero { margin: 2px 0 20px; padding: 32px clamp(20px, 4vw, 36px); position: relative; isolation: isolate; overflow: hidden; border: 1px solid #ffffff20; border-radius: 21px; background: linear-gradient(116deg, #142f3b 0%, #1b4650 62%, #1d6460 100%); color: #fff; box-shadow: 0 19px 42px rgba(16, 48, 57, .15); }
.price-hero::after { content: ""; width: 230px; height: 230px; position: absolute; z-index: -1; inset-inline-end: 8%; top: -150px; border: 1px solid #ffffff18; border-radius: 50%; box-shadow: 0 0 0 25px #ffffff08, 0 0 0 52px #ffffff06; pointer-events: none; }
.price-hero .eyebrow { color: #c7d9d4; }
.price-hero h1 { margin: 0; color: #fff; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -.7px; }
.price-lead { max-width: 650px; margin: 11px 0 0; color: #d1dfdc; font-size: .9rem; }
.price-policy { max-width: 760px; margin-top: 20px; padding: 14px 16px; display: grid; gap: 4px; border: 1px solid #ffffff2c; border-radius: 12px; background: #ffffff10; box-shadow: inset 0 1px #ffffff0b; backdrop-filter: blur(8px); }
.price-policy strong { font-size: .78rem; }
.price-policy span { color: #d1dfdc; font-size: .72rem; }
.price-panel, .price-results-section { margin: 7px 0 22px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); animation: rise-in .24s ease both; }
.price-settings { margin: 15px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.price-settings label, .profile-picker { display: grid; gap: 6px; color: var(--muted); font-size: .72rem; }
.price-settings select, .profile-picker > input, .picker-row select, .selected-section-row input { min-width: 0; min-height: 41px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbfa; color: var(--ink); font-size: .78rem; transition: border-color .18s, box-shadow .18s, background .18s; }
.price-settings select:hover, .profile-picker > input:hover, .selected-section-row input:hover { border-color: #a9c5be; }
.price-settings select:focus, .profile-picker > input:focus, .selected-section-row input:focus { border-color: #60a79d; background: #fff; box-shadow: 0 0 0 4px #54a89a1c; }
.profile-picker { margin-top: 8px; }
.picker-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; }
.picker-row select { width: 100%; height: 126px; padding: 5px; background: linear-gradient(145deg, #fff, #f8fbfa); }
.picker-row option { padding: 6px; }
.add-section { min-width: 120px; padding: 8px 13px; border: 1px solid #cfe3dc; border-radius: 10px; background: linear-gradient(145deg, #f4faf6, #eaf5ef); color: #205b57; font-size: .76rem; font-weight: 700; transition: background .16s, border-color .16s, transform .16s, box-shadow .16s; }
.add-section:hover:not(:disabled) { transform: translateY(-1px); border-color: #8fc1b2; background: #e5f3ec; box-shadow: 0 5px 13px #1f665012; }
.selection-heading { margin-top: 19px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.selection-heading h3 { margin: 0; font-size: .85rem; }
#selected-count { min-width: 25px; padding: 2px 7px; border-radius: 20px; background: #eef2ec; color: #67746c; font-size: .68rem; text-align: center; }
.selected-sections { display: grid; gap: 7px; margin-top: 8px; }
.selected-empty { padding: 12px; border: 1px dashed #dce4dc; border-radius: 9px; color: var(--muted); font-size: .75rem; text-align: center; }
.selected-section-row { padding: 9px 10px; display: grid; grid-template-columns: minmax(0, 1fr) 118px 35px; align-items: center; gap: 8px; border: 1px solid #e6eeeb; border-radius: 11px; background: linear-gradient(110deg, #fff, #fbfdfb); transition: border-color .17s, box-shadow .17s, transform .17s; }
.selected-section-row:hover { transform: translateY(-1px); border-color: #c8ded6; box-shadow: 0 5px 14px #183a350c; }
.selected-section-name { min-width: 0; }
.selected-section-name strong, .selected-section-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-section-name strong { color: var(--ink); font-size: .76rem; }
.selected-section-name small { margin-top: 2px; color: var(--muted); font-size: .65rem; }
.selected-section-row label { display: grid; gap: 3px; color: var(--muted); font-size: .62rem; }
.selected-section-row input { min-height: 34px; padding: 5px 7px; font-size: .72rem; }
.remove-section { width: 31px; height: 31px; border: 1px solid transparent; border-radius: 9px; background: #fbefed; color: #a26761; font-size: 1rem; transition: background .16s, color .16s, transform .16s; }
.remove-section:hover { transform: rotate(5deg); background: #f8dfda; color: var(--danger); }
.compare-button { width: 100%; min-height: 46px; margin-top: 13px; border: 0; border-radius: 10px; background: linear-gradient(110deg, #173b47, #1d6661); color: #fff; box-shadow: 0 7px 17px #183f461f; font-size: .79rem; font-weight: 700; transition: background .18s, transform .18s, box-shadow .18s; }
.compare-button:hover:not(:disabled) { transform: translateY(-1px); background: linear-gradient(110deg, #1b4c56, #218079); box-shadow: 0 10px 22px #183f4630; }
.compare-button:active:not(:disabled) { transform: scale(.995); }
.compare-button:disabled { opacity: .58; cursor: wait; }
.price-status { margin: 10px 0 0; padding: 10px 12px; border: 1px solid #e6ece9; border-radius: 9px; background: #f4f7f6; color: #62736e; font-size: .69rem; }
.price-status.is-error { border-color: #f0d7d2; background: #fbefed; color: #9c3939; }
.price-status.is-success { border-color: #d3e8da; background: #eff8f2; color: #42705a; }
.price-results-section { margin-top: 14px; }
.price-results { display: grid; gap: 9px; }
.section-result { margin-top: 12px; }
.section-result h3 { margin: 0 0 8px; color: var(--ink); font-size: .79rem; }
.section-result .price-result-card + .price-result-card { margin-top: 7px; }
.price-result-card { padding: 13px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 15px; border: 1px solid #e1ebe7; border-radius: 12px; background: linear-gradient(120deg, #fff, #f7fbf9); transition: transform .17s, border-color .17s, box-shadow .17s; }
.price-result-card:hover { transform: translateY(-2px); border-color: #c4ddd3; box-shadow: 0 9px 20px #183a3510; }
.price-result-copy { min-width: 0; }
.price-result-copy strong, .price-result-copy small { display: block; }
.price-result-copy strong { font-size: .8rem; }
.price-result-copy small { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.price-value { text-align: end; white-space: nowrap; }
.price-value strong, .price-value small { display: block; }
.price-value strong { color: #1c7769; font-size: .96rem; }
.price-value small { margin-top: 2px; color: var(--muted); font-size: .63rem; }
.price-source { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 12px; color: #78837c; font-size: .64rem; }
.price-source a { color: #26776d; font-weight: 600; text-decoration: none; transition: color .16s; }
.price-source a:hover { text-decoration: underline; }
.quote-badge { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid #f0e2bd; border-radius: 20px; background: #fff7e7; color: #87682b; font-size: .62rem; font-weight: 700; }
.rate-note { margin: 11px 0 0; color: var(--muted); font-size: .65rem; }
.price-footer { align-items: flex-start; }
.price-footer > span:last-child { max-width: 540px; color: #9facaa; font-size: .64rem; }

[dir="rtl"] .price-result-card { text-align: right; }
[dir="rtl"] .price-value { text-align: left; }
@media (max-width: 640px) {
  .price-main { padding-inline: 15px; }
  .price-hero { margin-top: 0; padding-top: 27px; }
  .price-panel, .price-results-section { padding: 14px; }
  .price-settings { grid-template-columns: 1fr; gap: 9px; }
  .picker-row { grid-template-columns: 1fr; }
  .picker-row select { height: 150px; }
  .add-section { min-height: 40px; }
  .selected-section-row { grid-template-columns: minmax(0, 1fr) 95px 31px; padding-inline: 7px; gap: 5px; }
  .price-result-card { padding: 11px; }
  .price-footer { flex-direction: column; }
}

/* manual supplier prices */
.manual-form { display: grid; grid-template-columns: 1.4fr 1fr 110px; gap: 10px; align-items: end; }
.manual-form label { display: grid; gap: 6px; color: var(--muted); font-size: .72rem; }
.manual-form input, .manual-form select { min-width: 0; min-height: 41px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbfa; color: var(--ink); font-size: .78rem; }
.manual-form .add-section { grid-column: 1 / -1; min-height: 41px; }
.manual-list { margin-top: 14px; display: grid; gap: 7px; }
.manual-row { padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; border: 1px solid #e1ebe7; border-radius: 10px; background: #fbfdfc; font-size: .76rem; }
.manual-row small { display: block; color: var(--muted); font-size: .66rem; }
.manual-row .price-figure { font-weight: 700; white-space: nowrap; }
.manual-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.manual-button { min-height: 36px; padding: 6px 12px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: .72rem; font-weight: 600; cursor: pointer; }
.price-result-card.is-manual { border-style: dashed; }
.own-badge { display: inline-flex; padding: 3px 8px; border: 1px solid #cfe3dc; border-radius: 20px; background: #eef7f2; color: #205b57; font-size: .62rem; font-weight: 700; }
@media (max-width: 640px) { .manual-form { grid-template-columns: 1fr 1fr; } .manual-form label:first-child { grid-column: 1 / -1; } }
