/* Horecanova Print Pricing v2.0.4 - product page quantity dropdown, extras, cart, tile */

/* ---------- Quantity dropdown ---------- */
.hn-tier { margin: 18px 0 8px; }
.hn-tier .hn-label { display: block; font-weight: 700; margin: 0 0 8px; }
.hn-dd { position: relative; max-width: 100%; }

.hn-dd-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; box-sizing: border-box; margin: 0;
  padding: 16px 20px; text-align: left; cursor: pointer;
  background: #f2f2f4; color: inherit;
  border: 1px solid #d9d9de; border-radius: 12px;
  font: inherit; line-height: 1.3; box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.hn-dd-btn:hover { background: #ececef; }
.hn-dd-btn:focus-visible,
.hn-dd.is-open .hn-dd-btn { outline: none; border-color: #8b1a2b; box-shadow: 0 0 0 2px #8b1a2b; }
.hn-dd-sel { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; min-width: 0; }
.hn-dd-sel strong { font-weight: 700; }
.hn-dd-sel > span { color: #555; }
.hn-dd-sel .c-s { color: #2e7d32; font-style: normal; font-weight: 600; }
.hn-dd-arrow {
  flex: 0 0 auto; width: 10px; height: 10px; margin: 0 4px 3px 12px;
  border-right: 2px solid #444; border-bottom: 2px solid #444;
  transform: rotate(45deg); transition: transform .15s;
}
.hn-dd.is-open .hn-dd-arrow { transform: rotate(-135deg); margin-bottom: -3px; }

/* the list (must stay hidden until opened, whatever the theme does to <ul>) */
.hn-dd-list[hidden] { display: none !important; }
.hn-dd-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1000;
  margin: 0; padding: 0; list-style: none;
  max-height: 340px; overflow-y: auto;
  background: #fff; border: 1px solid #e3e3e7; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.hn-dd-list li { list-style: none; margin: 0; }

/* header + rows share one fixed column grid */
.hn-dd-list .hn-dd-head,
.hn-dd-list .hn-dd-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, .9fr) 72px;
  column-gap: 12px; align-items: center;
  padding: 14px 18px; box-sizing: border-box;
}
.hn-dd-list.no-save .hn-dd-head,
.hn-dd-list.no-save .hn-dd-item { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, .9fr); }
.hn-dd-list .c-t,
.hn-dd-list .c-s { text-align: right; white-space: nowrap; }

.hn-dd-list .hn-dd-head {
  position: sticky; top: 0; z-index: 1; background: #f7f7f8;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #666;
}
.hn-dd-list .hn-dd-item { border-top: 1px solid #ececef; cursor: pointer; }
.hn-dd-list .hn-dd-item:hover { background: #f5f5f7; }
.hn-dd-list .hn-dd-item.is-active { background: #f7e9ea; }
.hn-dd-list .hn-dd-item.is-active .c-q,
.hn-dd-list .hn-dd-item.is-active .c-p,
.hn-dd-list .hn-dd-item.is-active .c-t { font-weight: 700; }
.hn-dd-list .c-p small { color: #888; font-weight: 400; font-size: .85em; }
.hn-dd-list .hn-dd-item .c-s { color: #2e7d32; }

/* live total */
.hn-total { margin: 14px 0; }
.hn-total strong { font-size: 1.7em; }
.hn-total small { color: #777; }

/* ---------- Extra fields ---------- */
.hn-extra { margin: 8px 0 16px; }
.hn-field { margin: 0 0 18px; }
.hn-field > label { display: block; margin-bottom: 8px; }
.hn-field small { display: block; margin-top: 6px; color: #666; }
.hn-custom input[type=number] { width: 150px; max-width: 45%; }
.hn-custom-status,
.hn-upload-status { margin-top: 6px; font-size: .9em; }
.hn-custom-status.ok, .hn-upload-status.ok { color: #2e7d32; }
.hn-custom-status.err, .hn-upload-status.err { color: #b32d2e; }

.hn-file { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #f2f2f4; border-radius: 8px; }
.hn-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.hn-file-btn {
  display: inline-block; margin: 0; padding: 8px 16px; cursor: pointer;
  background: #fff; border: 1px solid #cfcfd5; border-radius: 6px; font-weight: 600;
}
.hn-file-input:focus-visible + .hn-file-btn { outline: 2px solid #8b1a2b; outline-offset: 2px; }
.hn-file-name { color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Cart ---------- */
select.hn-cart-qty { min-width: 90px; }

/* ---------- Homepage tile  [hn_print_tile] ---------- */
.hn-tile { display: block; position: relative; overflow: hidden; text-decoration: none; color: inherit; border-radius: 12px; }
.hn-tile img { display: block; width: 100%; height: auto; }
.hn-tile-title { display: block; padding: 12px 8px; text-align: center; font-weight: 600; }
