/* VLASNAPLYTA-1013 — стилі до plate-suggest-1013.js. Кольори й радіуси - ті самі, що в .custom-plate застосунку. */
.cps-host .cp-tabs { display: none; }
.cps-host.cps-catalog .cp-tabs { display: flex; }
.cps-host.cps-catalog .cps-box { display: none; }
.cps-host:not(.cps-open) .custom-plate { display: none !important; }
.cps-host .custom-plate__lead { display: none; }

.cps-box { max-width: 640px; margin: 12px 0 14px; }
.cps-box--card { background: #fff; border: 1px solid #e4e7ef; border-radius: 14px; padding: 22px 24px; box-shadow: 0 2px 8px rgba(204, 210, 227, .5); }
.cps-box [hidden] { display: none !important; }

.cps-label { display: block; font-size: 13px; font-weight: 600; color: #3a4b6d; margin: 0 0 6px; }
.cps-wrap { position: relative; }
.cps-input { width: 100%; box-sizing: border-box; border: 1px solid #d3d9e6; border-radius: 8px; padding: 11px 14px; font-size: 15px; color: #3a4b6d; outline: none; background: #fff; transition: border-color .15s ease; }
.cps-input:focus { border-color: #4991f8; box-shadow: 0 0 0 3px rgba(73, 145, 248, .14); }
.cps-input::placeholder { color: #98a1b8; }
.cps-hint { font-size: 13px; color: #6b7492; margin: 8px 0 14px; }
.cps-hint--warn { color: #8a5a00; }
.cps-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.cps-link { background: none; border: 0; padding: 4px 0; font-size: 14px; font-weight: 600; color: #4991f8; cursor: pointer; text-align: left; }
.cps-link:hover { color: #3a7fe0; text-decoration: underline; }
.cps-link--soft { font-weight: 500; color: #6b7492; }
.cps-backrow { margin: 0 0 8px; }

.cps-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #d3d9e6; border-radius: 10px; box-shadow: 0 10px 28px rgba(58, 75, 109, .18); max-height: 372px; overflow: auto; }
.cps-opt { padding: 9px 12px; border-radius: 7px; cursor: pointer; }
.cps-opt.--active { background: #eef4ff; }
.cps-opt__name { font-size: 14px; line-height: 1.3; color: #2c3a58; font-weight: 600; }
.cps-opt__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: #6b7492; }
.cps-chip { display: inline-block; background: #f1f4fa; border-radius: 6px; padding: 2px 8px; color: #3a4b6d; font-weight: 600; white-space: nowrap; }
.cps-mark { background: #fff0b8; color: inherit; border-radius: 3px; padding: 0 1px; }
.cps-msg { padding: 12px; font-size: 13px; color: #6b7492; }

.cps-pick__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7492; margin: 0 0 6px; }
.cps-pick__name { font-size: 16px; font-weight: 700; color: #2c3a58; line-height: 1.3; }
.cps-pick__code { font-size: 13px; color: #6b7492; margin: 4px 0 16px; }
.cps-dims { display: flex; gap: 22px; margin: 0 0 18px; }
.cps-dim { position: relative; flex: 0 1 112px; min-width: 0; display: flex; flex-direction: column; gap: 5px; border-radius: 8px; }
.cps-dim + .cps-dim::before, .cps-host .custom-plate__row .custom-plate__field + .custom-plate__field::before { content: "×"; position: absolute; left: -15px; bottom: 9px; color: #98a1b8; font-size: 15px; }
.cps-dim__l { font-size: 12px; font-weight: 600; color: #3a4b6d; }
.cps-dim__v { border: 1px solid #e4e7ef; background: #f6f8fc; border-radius: 8px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: #2c3a58; }
.cps-dim--fill .cps-dim__v { animation: cps-fill 1.1s ease-out 1; }
@keyframes cps-fill { 0% { background: #d9f2df; border-color: #6cc287; } 100% { background: #f6f8fc; border-color: #e4e7ef; } }
.cps-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ручна форма: назва на всю ширину, далі компактний рядок Ш × Д × Т */
.cps-host .custom-plate { padding: 18px 24px 20px; }
.cps-host .custom-plate .custom-plate__row { flex-wrap: nowrap; gap: 22px; }
.cps-host .custom-plate .custom-plate__row .custom-plate__field { position: relative; flex: 0 1 112px; min-width: 0; margin-bottom: 12px; gap: 5px; }
.cps-host .custom-plate .custom-plate__label { font-size: 12px; }
.cps-host .custom-plate .custom-plate__input { padding: 8px 12px; }
.cps-host .custom-plate .custom-plate__field--wide { margin-bottom: 12px; }
.cps-host .custom-plate .custom-plate__note { font-size: 13px; line-height: 1.45; margin: 2px 0 16px; }

@media (max-width: 575px) {
  .cps-box--card { padding: 16px; }
  .cps-host .custom-plate { padding: 16px; }
  .cps-dims, .cps-host .custom-plate .custom-plate__row { gap: 16px; }
  .cps-dim { flex: 1 1 0; }
  .cps-host .custom-plate .custom-plate__row .custom-plate__field { flex: 1 1 0; }
  .cps-dim + .cps-dim::before, .cps-host .custom-plate__row .custom-plate__field + .custom-plate__field::before { left: -12px; }
  .cps-input { font-size: 16px; }
}

/* PLYTAVYBIR-1013: кнопка «Відкрити весь каталог» і плити з фільтрами під полем пошуку */
.cps-box { max-width: 960px; }
.cps-find .cps-hint, .cps-find .cps-input { max-width: 640px; }
.cps-btn { background: #fff; border: 1px solid #4991f8; border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: #2f6fd6; cursor: pointer; }
.cps-btn:hover { background: #eef4ff; }
.cps-links { align-items: center; }
.cps-browse { margin-top: 18px; border-top: 1px solid #e4e7ef; padding-top: 14px; }
.cps-bhead { font-size: 15px; font-weight: 700; color: #2c3a58; margin: 0 0 10px; }
.cps-frow { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; min-width: 0; }
.cps-flabel { flex: 0 0 104px; font-size: 12px; font-weight: 600; color: #6b7492; }
.cps-chips { display: flex; gap: 6px; overflow-x: auto; flex: 1 1 auto; min-width: 0; padding-bottom: 2px; scrollbar-width: thin; }
.cps-fchip { flex: 0 0 auto; background: #f1f4fa; border: 1px solid #e4e7ef; border-radius: 16px; padding: 4px 12px; font-size: 13px; color: #3a4b6d; cursor: pointer; white-space: nowrap; }
.cps-fchip:hover { background: #e6edfb; }
.cps-fchip--on { background: #4991f8; border-color: #4991f8; color: #fff; font-weight: 600; }
.cps-freset { font-size: 13px; margin: 0 0 6px; }
.cps-bnote { font-size: 13px; color: #6b7492; margin: 4px 0 10px; min-height: 4px; }
.cps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cps-card { text-align: left; background: #fff; border: 1px solid #e4e7ef; border-radius: 10px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cps-card:hover { border-color: #4991f8; box-shadow: 0 2px 10px rgba(73, 145, 248, .18); }
.cps-card__ph { height: 96px; border-radius: 7px; background: #f1f4fa; overflow: hidden; }
.cps-card__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cps-card__name { font-size: 13px; line-height: 1.3; font-weight: 600; color: #2c3a58; overflow-wrap: anywhere; }
.cps-card__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.cps-card__code { font-size: 12px; color: #6b7492; }
.cps-st { font-size: 12px; font-weight: 600; }
.cps-st--in { color: #1f8a4c; }
.cps-st--ord { color: #8a5a00; }
@media (max-width: 575px) {
  .cps-frow { flex-direction: column; align-items: stretch; gap: 4px; }
  .cps-flabel { flex: none; }
  .cps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cps-card__ph { height: 78px; }
  .cps-btn { width: 100%; padding: 10px 16px; }
}
