/* PROCIAS™ card code: one input field with five digit boxes inside it */
.cbx { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
.cbx-field { position: relative; width: 100%; max-width: 360px; margin: 0 auto; padding: 8px; box-sizing: border-box; border-radius: 16px; border: 1.5px solid #cdb67a; background: #fff;
  box-shadow: inset 0 2px 5px rgba(18,32,74,.06); transition: border-color .15s, box-shadow .15s; cursor: text; }
.cbx-field.is-focus { border-color: #b8891f; box-shadow: 0 0 0 3px rgba(217,180,95,.32), inset 0 2px 5px rgba(18,32,74,.04); }
.cbx-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(5px, 2vw, 9px); }
.cbx-d { position: relative; display: grid; place-items: center; height: clamp(46px, 13vw, 56px); border-radius: 10px; background: #f7f3ea; border: 1px solid #e6dcc3;
  color: #12204a; font: 700 clamp(1.4rem, 6vw, 1.8rem)/1 Inter, system-ui, sans-serif; transition: border-color .15s, background .15s; }
.cbx-d.is-filled { background: #fffaf0; border-color: #d3b56a; }
.cbx-field.is-focus .cbx-d.is-cur { border-color: #b8891f; background: #fff; }
.cbx-field.is-focus .cbx-d.is-cur::after { content: ""; width: 2px; height: 46%; background: #b8891f; animation: cbxBlink 1s steps(1) infinite; }
.cbx-d.is-filled.is-cur::after { display: none; }
@keyframes cbxBlink { 50% { opacity: 0; } }
/* the real input covers the boxes but is invisible, so it receives typing, paste and autofill */
.cbx-field .cbx-in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none;
  color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; text-indent: -9999px; opacity: .01; cursor: text; -webkit-text-fill-color: transparent; }
.cbx-field .cbx-in::selection { background: transparent; }
.cbx-long { display: none; width: 100%; max-width: 360px; margin: 0 auto; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #cdb67a; background: #fff; color: #12204a; font: 600 1.05rem/1.2 Inter, system-ui, sans-serif; letter-spacing: .06em; text-align: center; box-sizing: border-box; }
.cbx.is-long .cbx-field, .cbx.is-long .cbx-paste { display: none; }
.cbx.is-long .cbx-long { display: block; }
.cbx-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.cbx-paste, .cbx-switch { display: inline-flex; align-items: center; gap: 5px; padding: 2px 4px; border: 0; background: none; color: #8a6418; font: 600 .82rem/1.3 Inter, system-ui, sans-serif; cursor: pointer; }
.cbx-switch { text-decoration: underline; text-underline-offset: 3px; }
.cbx-paste[hidden] { display: none; }
.cbx--dark .cbx-paste, .cbx--dark .cbx-switch { color: #e6d3a3; }
.cbx.is-err .cbx-field, .cbx.is-err .cbx-long { border-color: #c0392b; animation: cbxShake .35s; }
@keyframes cbxShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.p-field .cbx { margin-top: 6px; }
