.pub-page {
  --pub-line: #d3dbd1;
  --pub-paper: #fffcf6;
  width: min(100% - 32px, 680px);
  margin: clamp(24px, 5vw, 58px) auto 64px;
  color: #1c3229;
  display: grid;
  gap: 18px;
}
.pub-page *, .pub-dialog * { box-sizing: border-box; }
.pub-page > *, .pub-product > div, .pub-platform > div, .pub-option > span { min-width: 0; }
.pub-page [hidden] {display:none!important}
.pub-page input[type="search"] {border:1px solid #acbaaa;border-radius:12px;padding:12px 14px;min-height:48px;width:100%;background:#fffdf6}
.pub-option .pub-terms {font-size:.84rem;line-height:1.42;margin-top:3px}
.pub-continue {position:sticky;bottom:8px;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--pub-line);border-radius:15px;background:#f6f1e7;box-shadow:0 3px 14px #1c32290f}
.pub-continue span {font-size:.89rem;font-weight:600}
.pub-custom form {margin-top:12px}
@media(max-width:650px){.pub-continue{bottom:calc(68px + env(safe-area-inset-bottom))}.pub-continue .btn{padding-inline:12px}.pub-page .pub-continue span{font-size:.82rem}}
.pub-page h1, .pub-page h2, .pub-page p { margin: 0; }
.pub-header { display: grid; gap: 8px; }
.pub-header .eyebrow, .pub-meta { color: #52675b; line-height: 1.4; }
.pub-intro, .pub-details p, .pub-guide p, .pub-small, .pub-note { line-height: 1.55; }
.pub-intro { max-width: 62ch; }
.pub-stack, .pub-options, .pub-choices, .pub-field, .pub-guide { display: grid; gap: 12px; }
.pub-box, .pub-option, .pub-product, .pub-ledger {
  background: var(--pub-paper);
  border: 1px solid var(--pub-line);
  border-radius: 18px;
  padding: clamp(16px, 3.2vw, 26px);
}
.pub-box { display: grid; gap: 15px; }
.pub-box h2, .pub-product h2, .pub-platform h2 {
  color: #1c3229; font-size: clamp(1.05rem, 3.5vw, 1.25rem); line-height: 1.3; overflow-wrap: anywhere;
}
.pub-option, .pub-product, .pub-platform { display: flex; align-items: center; gap: 14px; }
.pub-option { cursor: pointer; min-height: 82px; padding-block: 15px; }
.pub-option:has(input:checked) { border-color: #24765e; background: #e9f1e7; }
.pub-option:has(input:focus-visible) { outline: 3px solid #24765e; outline-offset: 3px; }
.pub-option:has(input:disabled) { opacity: .6; }
.pub-option input { margin-left: auto; }
.pub-option input, .pub-agree input { accent-color: #24765e; width: 21px; height: 21px; flex: 0 0 auto; }
.pub-option span strong, .pub-platform strong { display: block; font-size: 1.05rem; }
.pub-option small, .pub-platform small, .pub-product small, .pub-small, .pub-meta { font-size: .9rem; }
.pub-option small, .pub-platform small, .pub-product small { display: block; margin-top: 3px; color: #4a6053; }
.pub-mark {
  background:#e2ebdf;color:#345a42;
  flex: 0 0 43px; width: 43px; height: 43px; border-radius: 13px;
  display: inline-grid; place-items: center;
  font: 800 24px/1 system-ui,sans-serif; text-transform: lowercase; letter-spacing: -.06em;
}
.pub-mark-wallapop { color: #006955; background: #c6eee1; }
.pub-mark-facebook { color: #254ea1; background: #e0e9fa; }
.pub-mark-milanuncios { color: #376628; background: #e2edcd; }
.pub-product img { width: clamp(90px, 22vw, 142px); height: clamp(90px, 22vw, 142px); border-radius: 12px; object-fit: cover; }
.pub-product h2 { margin: 5px 0; }
.pub-product strong, .pub-total strong { font-size: 1.4rem; }
.pub-total, .pub-ledger div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1rem; }
.pub-total { border-top: 1px solid var(--pub-line); padding-top: 16px; }
.pub-ledger { background: #e7eee5; display: grid; gap: 10px; }
.pub-ledger strong { white-space: nowrap; }
.pub-details { border-top: 1px solid var(--pub-line); padding: 5px 0; }
.pub-details summary { cursor: pointer; padding: 11px 2px; min-height: 44px; font-weight: 650; }
.pub-details > p, .pub-guide > p { margin: 6px 0 12px; }
.pub-details ul { padding-left: 21px; margin-block: 4px; }
.pub-details li { margin: 3px 0; }
.pub-link { display: inline-flex; align-items: center; min-height: 42px; border: 0; background: transparent; padding: 4px 0; cursor: pointer; color: #17634e; text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.pub-note { padding: 14px 17px; background: #e8eee6; border-left: 3px solid #24765e; border-radius: 4px 12px 12px 4px; font-size: .95rem; }
.pub-field { color: #1c3229; gap: 7px; font-weight: 600; }
.pub-field input, .pub-field select, .pub-dialog textarea {
  width: 100%; min-width: 0; padding: 13px 15px; background-color: var(--pub-paper,#fffcf6);
  color: #1c3229; border: 1px solid #aebcaf; border-radius: 10px; font: inherit; font-size: 1rem;
}
.pub-field select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231c3229' stroke-width='2' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.pub-agree { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; padding: 6px 0; cursor: pointer; }
.pub-agree input { margin: 1px 0 0; }
.pub-page .btn { min-height: 46px; max-width: 100%; line-height: 1.3; white-space: normal; text-align: center; }
.pub-page .btn:disabled { opacity: .5; cursor: default; }
.pub-options + .pub-details, .pub-url { margin-top: 9px; }
.pub-nav, .pub-actions, .pub-photos { display: flex; align-items: center; gap: 9px 16px; flex-wrap: wrap; }
.pub-nav { justify-content: space-between; }
.pub-actions { justify-content: flex-start; }
.pub-result > .btn, .pub-account > .pub-link { justify-self: start; }
.pub-ok { color: #146448 !important; }
.pub-photos { align-items: flex-start; margin: 12px 0 18px; }
.pub-photos a { display: grid; gap: 4px; font-size: .87rem; color: #17634e; }
.pub-photos img { width: 82px; height: 76px; object-fit: cover; border-radius: 9px; }
.pub-instructions > .btn { margin-bottom: 8px; }
.pub-sheet { padding: 0; overflow: hidden; gap: 0; }
.pub-sheet > div { padding: 20px; }
.pub-sheet h2 { margin: 7px 0; font-size: 1.5rem; }
.pub-sheet p { margin: 9px 0; }
.pub-hero-photo { width: 100%; max-height: 440px; object-fit: contain; background: #ebe9df; }
.pub-description { white-space: pre-line; overflow-wrap: anywhere; }
.pub-dialog { border: 1px solid #c9d4c9; border-radius: 18px; padding: 22px; background: #f6f1e7; color: #1c3229; max-width: min(92vw,460px); }
.pub-dialog textarea { min-height: 92px; }
.pub-dialog button { margin-top: 8px; }
.pub-dialog::backdrop { background: #17241d66; }
@media(max-width: 480px) {
  .pub-page { gap: 14px; width: min(100% - 22px,680px); }
  .pub-header { gap: 4px; }
  .pub-actions { gap: 8px 13px; }
  .pub-nav { align-items: stretch; }
  .pub-nav .primary, .pub-choices .btn, .pub-result > .btn { width: 100%; }
}
