/*
  Plastic Resale – design layer for the Umbraco 17 version.
  Loaded after main.css. Typography for the whole site, and the marketplace list, product page and product form.
*/
:root {
  --pr-green: #28854e;
  --pr-green-dark: #1f6b3e;
  --pr-green-soft: #e9f4ee;
  --pr-ink: #1d2733;
  --pr-text: #374151;
  --pr-muted: #6b7280;
  --pr-line: #e5e7eb;
  --pr-surface: #ffffff;
  --pr-subtle: #f6f7f8;
  --pr-danger: #b3261e;
  --pr-radius: 12px;
  --pr-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
  --pr-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Typography ---------- */
body, button, input, select, textarea { font-family: var(--pr-font); }
body { color: var(--pr-text); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--pr-font); color: var(--pr-ink); letter-spacing: -0.01em; }
.container-headline { font-weight: 300; letter-spacing: -0.02em; }
.heroHeadlinePrimary { letter-spacing: -0.02em; }
.notFoundCode { font-family: var(--pr-font); font-weight: 200; letter-spacing: -0.03em; }
table, .pr-num { font-variant-numeric: tabular-nums; }

/* ---------- Shared bits ---------- */
.pr-card { background: var(--pr-surface); border: 1px solid var(--pr-line); border-radius: var(--pr-radius); box-shadow: var(--pr-shadow); }
.pr-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; background: #eef0f3; color: #4b5563; }
.pr-badge.virgin { background: #e7f0fb; color: #1e4f8a; }
.pr-badge.recyclate { background: var(--pr-green-soft); color: var(--pr-green-dark); }
.pr-badge.additive { background: #f1ecfa; color: #5b3a94; }
.pr-badge.waste { background: #fdf3e2; color: #8a5a10; }
.pr-flag { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.pr-muted { color: var(--pr-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Marketplace list ---------- */
.pr-toolbar { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(120px, 1fr)); gap: 12px; padding: 16px; margin: 20px 0 12px; }
.pr-toolbar label { display: block; font-size: 12px; font-weight: 600; color: var(--pr-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.pr-toolbar input, .pr-toolbar select { width: 100%; height: 42px; border: 1px solid var(--pr-line); border-radius: 8px; padding: 0 12px; font-size: 15px; background: var(--pr-surface); color: var(--pr-ink); }
.pr-toolbar input:focus, .pr-toolbar select:focus { outline: none; border-color: var(--pr-green); box-shadow: 0 0 0 3px var(--pr-green-soft); }
.pr-search { position: relative; }
.pr-search .fa { position: absolute; left: 13px; bottom: 13px; color: var(--pr-muted); font-size: 14px; }
.pr-search input { padding-left: 36px; }
.marketplaceResultSummary { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 10px; font-size: 14px; color: var(--pr-muted); }
.marketplaceResultSummary a { color: var(--pr-green); font-weight: 600; text-decoration: none; }

.pr-table-wrap { overflow: hidden; margin-bottom: 40px; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pr-table th { background: var(--pr-subtle); border-bottom: 1px solid var(--pr-line); padding: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--pr-muted); font-weight: 600; text-align: left; }
.pr-table th.num, .pr-table td.num { text-align: right; }
.pr-table th button { all: unset; box-sizing: border-box; display: flex; gap: 6px; align-items: center; width: 100%; padding: 12px 14px; cursor: pointer; }
.pr-table th.num button { justify-content: flex-end; }
.pr-table th button:hover, .pr-table th button:focus-visible { color: var(--pr-ink); }
.pr-table th button:focus-visible { outline: 2px solid var(--pr-green); outline-offset: -2px; }
.pr-table th .fa { font-size: 11px; }
.pr-table td { padding: 14px; border-bottom: 1px solid var(--pr-line); vertical-align: middle; color: var(--pr-text); }
.pr-table tbody tr:last-child td { border-bottom: 0; }
.pr-table tr.marketplaceRow { cursor: pointer; transition: background .12s; }
.pr-table tr.marketplaceRow:hover { background: #fafbfa; }
.pr-table tr.marketplaceRow:focus { outline: 2px solid var(--pr-green); outline-offset: -2px; }
.pr-product { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pr-product-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.marketplaceRowLink { font-weight: 600; color: var(--pr-ink); text-decoration: none; }
.marketplaceRow:hover .marketplaceRowLink { color: var(--pr-green); }
.pr-product-desc { color: var(--pr-muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }
.pr-price { font-weight: 600; color: var(--pr-ink); white-space: nowrap; }
.pr-unit { color: var(--pr-muted); font-weight: 400; font-size: 13px; }
.pr-location { white-space: nowrap; }
.pr-date { color: var(--pr-muted); white-space: nowrap; font-size: 14px; }
.pr-empty { text-align: center; padding: 40px 14px !important; color: var(--pr-muted); }
.pr-admin { white-space: nowrap; }
.pr-icon-button { all: unset; cursor: pointer; padding: 6px 8px; border-radius: 6px; color: var(--pr-muted); }
.pr-icon-button:hover, .pr-icon-button:focus-visible { background: var(--pr-subtle); color: var(--pr-ink); }

@media (max-width: 991px) {
  .pr-toolbar { grid-template-columns: 1fr 1fr; }
  .pr-toolbar .pr-search { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .pr-table thead { display: none; }
  .pr-table, .pr-table tbody { display: block; }
  .pr-table tr.marketplaceRow { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--pr-line); }
  .pr-table td { display: block; padding: 0; border: 0; }
  .pr-table td.pr-col-product { grid-column: 1 / -1; }
  .pr-table td.pr-col-form, .pr-table td.pr-col-color { display: none; }
  .pr-table td.num { text-align: left; }
  .pr-table td.pr-col-date { text-align: right; }
}

/* ---------- Product page ---------- */
.pr-details { padding: 20px 0 50px; }
.pr-details-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 20px; }
.pr-details-head h2 { margin: 0 0 6px; font-size: 30px; font-weight: 700; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pr-details-sub { color: var(--pr-muted); font-size: 15px; }
.pr-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--pr-line); border-radius: var(--pr-radius); overflow: hidden; border: 1px solid var(--pr-line); margin-bottom: 24px; }
.pr-fact { background: var(--pr-surface); padding: 16px 20px; }
.pr-fact-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--pr-muted); font-weight: 600; margin-bottom: 4px; }
.pr-fact-value { font-size: 22px; font-weight: 700; color: var(--pr-ink); }
.pr-fact-value .pr-unit { font-size: 14px; }
.pr-details-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.pr-section { padding: 22px 24px; margin-bottom: 24px; }
.pr-section h3 { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.pr-gallery-main { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--pr-subtle); border-radius: 8px; cursor: zoom-in; border: 0; padding: 0; overflow: hidden; text-transform: none; }
.pr-gallery-main:hover, .pr-gallery-main:focus-visible { background: var(--pr-subtle); }
.pr-gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.pr-gallery-main:hover img { transform: scale(1.02); }
.pr-zoom-hint { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(29, 39, 51, .72); color: #fff; font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.pr-gallery-main:hover .pr-zoom-hint, .pr-gallery-main:focus-visible .pr-zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .pr-zoom-hint { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pr-gallery-main img, .pr-zoom-hint { transition: none; } .pr-gallery-main:hover img { transform: none; } }
.pr-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pr-gallery-thumbs button { all: unset; cursor: pointer; width: 72px; height: 56px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: var(--pr-subtle); }
.pr-gallery-thumbs button[aria-current="true"], .pr-gallery-thumbs button:focus-visible { border-color: var(--pr-green); }
.pr-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pr-no-images { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--pr-subtle); border-radius: 8px; color: var(--pr-muted); flex-direction: column; gap: 8px; }
.pr-no-images .fa { font-size: 32px; opacity: .5; }
.pr-description { white-space: pre-line; line-height: 1.6; color: var(--pr-text); margin: 0; }
.pr-specs { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; }
.pr-specs dt { color: var(--pr-muted); font-weight: 500; font-size: 14px; }
.pr-specs dd { margin: 0; color: var(--pr-ink); font-weight: 500; }
.pr-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pr-files a, .pr-file-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--pr-line); border-radius: 8px; color: var(--pr-ink); text-decoration: none; }
.pr-files a:hover { border-color: var(--pr-green); color: var(--pr-green); }
.pr-files .fa, .pr-file-row .fa-file-alt { color: var(--pr-muted); }
.pr-file-size { margin-left: auto; color: var(--pr-muted); font-size: 13px; }
.pr-aside { position: sticky; top: 20px; }
.pr-seller h3 { margin-top: 0; }
.pr-seller p { color: var(--pr-muted); font-size: 14px; }
.pr-seller .showContactInfoButton, .pr-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 13px 20px; border: 0; border-radius: 999px; background: var(--pr-green); color: #fff; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; text-decoration: none; }
.pr-button:hover, .pr-seller .showContactInfoButton:hover { background: var(--pr-green-dark); color: #fff; }
.pr-button.secondary { background: var(--pr-subtle); color: var(--pr-ink); }
.pr-button.secondary:hover { background: var(--pr-line); color: var(--pr-ink); }
.pr-contact { display: grid; gap: 12px; margin: 0; }
.pr-contact div { display: flex; gap: 12px; align-items: baseline; }
.pr-contact .fa { width: 16px; color: var(--pr-green); }
.pr-contact a { color: var(--pr-ink); overflow-wrap: anywhere; }
.pr-back { margin-top: 12px; }
@media (max-width: 991px) {
  .pr-details-grid { grid-template-columns: 1fr; }
  .pr-aside { position: static; }
}
@media (max-width: 600px) {
  .pr-facts { grid-template-columns: 1fr; }
  .pr-specs { grid-template-columns: 1fr; gap: 2px; }
  .pr-specs dd { margin-bottom: 10px; }
}

/* ---------- Product form ---------- */
.pr-form { padding: 20px 0 50px; }
.pr-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.pr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.pr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pr-field.wide { grid-column: 1 / -1; }
.pr-field label { font-size: 14px; font-weight: 600; color: var(--pr-ink); margin: 0; }
.pr-field label .req { color: var(--pr-danger); margin-left: 2px; }
.pr-field input, .pr-field select, .pr-field textarea { width: 100%; height: 44px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 12px; font-size: 15px; color: var(--pr-ink); background: var(--pr-surface); }
.pr-field textarea { height: auto; min-height: 110px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.pr-field input:focus, .pr-field select:focus, .pr-field textarea:focus { outline: none; border-color: var(--pr-green); box-shadow: 0 0 0 3px var(--pr-green-soft); }
.pr-field.invalid input, .pr-field.invalid select { border-color: var(--pr-danger); }
.pr-field-error { color: var(--pr-danger); font-size: 13px; }
.pr-input-group { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }
.pr-suffix { position: relative; }
.pr-suffix input { padding-right: 42px; }
.pr-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--pr-muted); font-size: 14px; pointer-events: none; }
.pr-dropzone { border: 2px dashed #d1d5db; border-radius: 10px; padding: 18px; text-align: center; background: var(--pr-subtle); transition: border-color .15s, background .15s; }
.pr-dropzone.dragging { border-color: var(--pr-green); background: var(--pr-green-soft); }
.pr-dropzone p { margin: 6px 0 10px; color: var(--pr-muted); font-size: 14px; }
.pr-dropzone .fa-cloud-upload-alt { font-size: 26px; color: var(--pr-muted); }
.pr-dropzone .button { margin: 0; padding: 10px 20px; }
.pr-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.pr-thumb { position: relative; border-radius: 8px; overflow: hidden; background: var(--pr-subtle); aspect-ratio: 1; border: 1px solid var(--pr-line); }
.pr-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pr-thumb .pr-remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .92); color: var(--pr-ink); box-shadow: var(--pr-shadow); font-size: 13px; text-transform: none; }
.pr-thumb .pr-remove:hover, .pr-file-row .pr-remove:hover { color: var(--pr-danger); background: #fff; }
.pr-file-row .pr-remove { margin-left: auto; border: 0; background: none; color: var(--pr-muted); padding: 4px 8px; text-transform: none; }
.pr-count { font-size: 13px; color: var(--pr-muted); font-weight: 400; margin-left: 6px; }
.fileHint { font-size: 12.5px; color: var(--pr-muted); margin-top: 8px; }
.fileErrors { margin-top: 10px; color: var(--pr-danger); font-size: 13.5px; display: grid; gap: 4px; }
.pr-success { padding: 40px; text-align: center; margin: 20px 0 50px; }
.pr-success .fa-check-circle { font-size: 48px; color: var(--pr-green); }
.pr-success h1 { font-size: 28px; margin: 14px 0 10px; }
.pr-success p { color: var(--pr-muted); max-width: 560px; margin: 0 auto 8px; }
.pr-success .pr-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pr-success .pr-actions .pr-button { width: auto; }
@media (max-width: 991px) {
  .pr-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pr-fields { grid-template-columns: 1fr; }
}

/* Links in components are styled by the components themselves */
.breadcrumbSection a, .pr-table a, a.pr-button { text-decoration: none; }
.pr-contact a { text-decoration: underline; text-underline-offset: 2px; }

/* Admin actions: own narrow column with room to the edge; never clipped */
.pr-table-wrap { overflow-x: auto; }
.pr-table th button { white-space: nowrap; }
.pr-table td.pr-admin { width: 1%; padding: 10px 16px 10px 8px; text-align: right; }
.pr-table td.pr-admin .pr-icon-button { padding: 8px 10px; }
.pr-table td.pr-admin .pr-icon-button + .pr-icon-button { margin-left: 2px; }
.pr-table td.pr-admin .pr-icon-button:last-child:hover { color: var(--pr-danger); }
@media (max-width: 767px) {
  .pr-table td.pr-admin { grid-column: 1 / -1; text-align: left; padding: 6px 0 0; width: auto; }
}
.pr-table td.pr-location { white-space: normal; min-width: 120px; }
.pr-table td, .pr-table th button { padding-left: 12px; padding-right: 12px; }
.pr-product-desc { max-width: 34ch; }
/* Medium screens: drop the least important columns so the table fits without scrolling (both are on the product page and in the filters). */
@media (min-width: 768px) and (max-width: 1199px) {
  .pr-table .pr-col-color { display: none; }
  .pr-product-desc { max-width: 26ch; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .pr-table .pr-col-form { display: none; }
  .pr-table.pr-has-admin .pr-col-date { display: none; } /* room for the edit and delete buttons; the list is still newest first */
}

/* ---------- Pages: profile, account forms ---------- */
.pr-page { padding: 20px 0 50px; }
.pr-banner { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; margin-bottom: 24px; background: var(--pr-green-soft); border: 1px solid #cfe6d8; border-radius: var(--pr-radius); }
.pr-banner .fa { color: var(--pr-green); font-size: 22px; margin-top: 2px; }
.pr-banner h3 { margin: 0 0 4px; font-size: 17px; }
.pr-banner p { margin: 0; color: var(--pr-text); }
.pr-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.pr-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pr-section-head h3 { margin: 0; }
.pr-button.small { width: auto; padding: 9px 16px; font-size: 13px; }
.pr-link-button { all: unset; cursor: pointer; color: var(--pr-green); font-weight: 600; font-size: 14px; }
.pr-link-button:hover, .pr-link-button:focus-visible { text-decoration: underline; }
.pr-my-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pr-my-product { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--pr-line); border-radius: 10px; background: var(--pr-surface); cursor: pointer; transition: border-color .15s; }
.pr-my-product:hover, .pr-my-product:focus-within { border-color: var(--pr-green); }
.pr-my-product-img { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; background: var(--pr-subtle); display: flex; align-items: center; justify-content: center; color: var(--pr-muted); }
button.pr-my-product-img { cursor: zoom-in; }
button.pr-my-product-img:hover, button.pr-my-product-img:focus-visible { background: var(--pr-subtle); }
button.pr-my-product-img img { transition: transform .3s ease; }
button.pr-my-product-img:hover img { transform: scale(1.05); }
.pr-my-product-title { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-weight: 600; color: var(--pr-ink); }
.pr-my-product-title a { color: inherit; text-decoration: none; }
.pr-my-product-meta { font-size: 13.5px; color: var(--pr-muted); margin-top: 4px; }
.pr-my-product-actions { display: flex; gap: 4px; margin-top: 6px; margin-left: -8px; }
.pr-empty-state { text-align: center; padding: 30px 10px; color: var(--pr-muted); }
.pr-empty-state .fa { font-size: 30px; opacity: .5; margin-bottom: 8px; }
.pr-empty-state .pr-button { width: auto; margin-top: 12px; }
.pr-profile-lines { display: grid; gap: 10px; margin: 0 0 16px; }
.pr-profile-lines div { display: flex; gap: 12px; align-items: baseline; overflow-wrap: anywhere; }
.pr-profile-lines .fa { width: 16px; color: var(--pr-muted); }
.pr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--pr-line); background: var(--pr-surface); color: var(--pr-ink); font-size: 13.5px; font-weight: 500; line-height: 20px; cursor: pointer; text-transform: none; }
.pr-chip:hover { border-color: var(--pr-green); }
.pr-chip[aria-pressed="true"], .pr-chip.selected { background: var(--pr-green); border-color: var(--pr-green); color: #fff; }
.pr-chip.static { cursor: default; background: var(--pr-green-soft); border-color: transparent; color: var(--pr-green-dark); }
.pr-chip .fa-times { font-size: 11px; opacity: .8; }
@media (max-width: 991px) { .pr-profile-grid { grid-template-columns: 1fr; } }

/* Dialog */
.pr-dialog-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .55); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pr-dialog { background: var(--pr-surface); border-radius: 14px; width: min(760px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.pr-dialog-head { padding: 20px 24px 12px; border-bottom: 1px solid var(--pr-line); }
.pr-dialog-head h2 { margin: 0 0 4px; font-size: 22px; }
.pr-dialog-head p { margin: 0 0 12px; color: var(--pr-muted); font-size: 14px; }
.pr-dialog-body { padding: 16px 24px; overflow-y: auto; }
.pr-dialog-foot { padding: 14px 24px; border-top: 1px solid var(--pr-line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pr-dialog-foot .pr-buttons { display: flex; gap: 10px; }
.pr-dialog-foot .pr-button { width: auto; }
.pr-group-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--pr-muted); font-weight: 600; margin: 14px 0 8px; }
.pr-group-label:first-child { margin-top: 0; }
.pr-dialog .pr-search input { width: 100%; height: 42px; border: 1px solid var(--pr-line); border-radius: 8px; padding: 0 12px 0 36px; font-size: 15px; }
.pr-dialog .pr-search .fa { position: absolute; left: 13px; top: 14px; color: var(--pr-muted); }

/* Account forms (login, register, profile edit, passwords) */
.pr-account { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding: 20px 0 50px; }
.pr-account.single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.pr-account h2 { margin: 0 0 6px; font-size: 24px; }
.pr-account .pr-intro { color: var(--pr-muted); margin: 0 0 20px; }
.pr-account .pr-fields { margin-bottom: 20px; }
.pr-actions-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pr-actions-row .pr-button { width: auto; min-width: 160px; }
.pr-form-errors { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; background: #fdecea; color: var(--pr-danger); font-size: 14px; display: grid; gap: 4px; }
.pr-success-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; background: var(--pr-green-soft); color: var(--pr-green-dark); font-size: 14px; }
.pr-benefits { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 10px; }
.pr-benefits li { display: flex; gap: 10px; color: var(--pr-text); font-size: 15px; }
.pr-benefits .fa { color: var(--pr-green); margin-top: 4px; }
.pr-password-rules { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; font-size: 13px; color: var(--pr-muted); }
.pr-password-rules li.ok { color: var(--pr-green-dark); }
.pr-password-rules .fa { width: 14px; }
.pr-small-links { margin-top: 16px; font-size: 14px; color: var(--pr-muted); display: grid; gap: 6px; }
.pr-small-links a { color: var(--pr-green); font-weight: 600; text-decoration: none; }
.pr-small-links a:hover { text-decoration: underline; }
@media (max-width: 991px) { .pr-account { grid-template-columns: 1fr; } }

/* Telephone field with country dropdown (pr-phone-input / intl-tel-input) */
pr-phone-input { display: block; }
.iti {
  --iti-path-flags-1x: url(/images/phone-flags/flags.webp);
  --iti-path-flags-2x: url(/images/phone-flags/flags@2x.webp);
  --iti-border-color: var(--pr-line);
  --iti-hover-color: var(--pr-subtle);
  --iti-dialcode-color: var(--pr-muted);
  --iti-dropdown-bg: var(--pr-surface);
  display: block; width: 100%;
}
.pr-field .iti input.iti__tel-input { width: 100%; }
.iti__selected-country { border-radius: 8px 0 0 8px; padding: 0; background: none; color: var(--pr-ink); text-transform: none; font-weight: 400; letter-spacing: 0; }
.iti__selected-country:hover, .iti__selected-country:focus-visible { background: var(--pr-subtle); }
.iti__selected-country-primary { padding: 0 6px 0 12px; }
.iti__selected-dial-code { color: var(--pr-ink); font-size: 15px; }
.iti__dropdown-content { border: 1px solid var(--pr-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(29, 39, 51, .16); margin-top: 4px; overflow: hidden; z-index: 30; }
.pr-field .iti__search-input { height: 40px; padding: 0 36px; border: 0; border-bottom: 1px solid var(--pr-line); border-radius: 0; box-shadow: none; }
.pr-field .iti__search-input:focus { box-shadow: none; border-color: var(--pr-green); }
.iti__country { font-size: 14.5px; padding: 8px 12px; }
.iti__country.iti__highlight { background: var(--pr-green-soft); }
.iti__dial-code { color: var(--pr-muted); }
.pr-field.invalid .iti input.iti__tel-input { border-color: var(--pr-danger); }

/* Plain HTML product list for crawlers without JavaScript (Marketplace.cshtml); the web component replaces it. */
.js .pr-ssr { display: none; }
.pr-ssr .pr-badge { margin-left: 6px; }

/* Paging under the marketplace list */
.pr-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin: -24px 0 40px; }
.pr-pager-info { color: var(--pr-muted); font-size: 14px; }
.pr-pager-buttons { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pr-page-button { all: unset; box-sizing: border-box; min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--pr-line); background: var(--pr-surface); color: var(--pr-ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.pr-page-button:hover:not(:disabled) { border-color: var(--pr-green); color: var(--pr-green); }
.pr-page-button:focus-visible { outline: 2px solid var(--pr-green); outline-offset: 2px; }
.pr-page-button[aria-current="page"] { background: var(--pr-green); border-color: var(--pr-green); color: #fff; }
.pr-page-button:disabled { opacity: .4; cursor: default; }
.pr-pager-gap { color: var(--pr-muted); padding: 0 2px; }


/* "Still for sale?" on the profile, and a hidden product's page */
.pr-still-for-sale { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: #fdf3e2; color: #6b4a0c; font-size: 13px; }
.pr-still-for-sale.is-hidden { background: #fde8e6; color: #8a2a1f; }
.pr-still-for-sale .pr-link-button { font-size: 13px; font-weight: 600; }
.pr-banner.pr-banner-muted { background: #fdf3e2; border-color: #f2dcb3; }
.pr-banner.pr-banner-muted i { color: #8a5a10; }
.pr-sent-emails ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.pr-sent-emails li span { display: inline-block; min-width: 92px; }

/* Image viewer (pr-lightbox) */
.pr-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(11, 17, 24, .92); display: flex; align-items: center; justify-content: center; animation: pr-lightbox-in .15s ease-out; }
@keyframes pr-lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.pr-lightbox-stage { position: absolute; inset: 64px 72px; display: flex; align-items: center; justify-content: center; }
.pr-lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); background: #fff; }
.pr-lightbox-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #14212e; font-size: 20px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.pr-lightbox-close:hover { background: #e9f4ee; }
.pr-lightbox-close:focus-visible, .pr-lightbox-nav:focus-visible { outline: 3px solid #5fd38d; outline-offset: 3px; }
.pr-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; display: grid; place-items: center; cursor: pointer; }
.pr-lightbox-nav:hover { background: rgba(255, 255, 255, .28); }
.pr-lightbox-nav.prev { left: 12px; }
.pr-lightbox-nav.next { right: 12px; }
.pr-lightbox-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .pr-lightbox-stage { inset: 72px 12px 64px; }
  .pr-lightbox-nav { top: auto; bottom: 10px; transform: none; width: 44px; height: 44px; }
}
