
/* kopt-calc-popup.css — v2 VISUAL UPDATE */
/* Key changes:
   - Custom-looking selects (appearance:none + chevron)
   - Tighter cards & denser layout
   - Stronger focus/active states
   - Subtle micro-animations
*/

/* ===== Calc modal (ONLY kopt-*) ===== */
.kopt-calcModal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;

  background:rgba(2,6,23,.52);
  backdrop-filter:blur(6px);

  padding:16px;
}

.kopt-calcModal--open{ display:block; }

.kopt-calcModal__panel{
  width:min(920px, 100%);
  margin:0 auto;

  border-radius:22px;
  border:1px solid rgba(15,23,42,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,249,255,.92));
  box-shadow:0 28px 80px rgba(2,6,23,.28);

  transform:translateY(-18px);
  opacity:0;

  outline:none;
  overflow:hidden;
}

.kopt-calcModal--open .kopt-calcModal__panel{
  animation:koptDropDown .22s ease-out forwards;
}

@keyframes koptDropDown{
  to{ transform:translateY(0); opacity:1; }
}

.kopt-calcModal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  padding:14px 16px;
  border-bottom:1px solid rgba(15,23,42,.08);
}

.kopt-calcModal__title{
  font-weight:950;
  color:#0b1220;
  letter-spacing:-.2px;
  font-family: sans-serif;
}

.kopt-calcModal__close{
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.9);
  border-radius:12px;
  width:38px;
  height:38px;
  cursor:pointer;
  font-weight:950;
  color:#0b4aa2;
}

.kopt-calcModal__body{ padding:16px; }
.kopt-calcModal__stub{
  border:1px dashed rgba(11,74,162,.28);
  border-radius:16px;
  padding:18px;
  background:rgba(255,255,255,.75);
  color:#475569;
  font-weight:800;
}

.kopt-calcModal__foot{
  padding:14px 16px;
  border-top:1px solid rgba(15,23,42,.08);
  display:flex;
  justify-content:flex-end;
}

.kopt-calcModal__btn{
  border:none;
  cursor:pointer;
  padding:10px 14px;
  border-radius:12px;
  font-weight:950;
  color:#fff;
  background:linear-gradient(180deg, #0b4aa2, #093f88);
}

@media (prefers-reduced-motion: reduce){
  .kopt-calcModal__panel{ transform:none; opacity:1; }
  .kopt-calcModal--open .kopt-calcModal__panel{ animation:none; }
}


















/* kopt-calc-app.css */
/* ONLY kopt-* classes. No :root. No global selectors. */

.kopt-calcApp{ padding:18px;font-family: sans-serif; }

.kopt-calcApp__top{ padding:2px 2px 14px; }

.kopt-calcApp__titleRow{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.kopt-calcApp__title{
  font-size:18px;
  font-weight:950;
  letter-spacing:-.2px;
  color:#0b1220;
  display:flex;
  align-items:center;
  gap:10px;
}

.kopt-calcApp__badge{
  font-size:11px;
  font-weight:950;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(11,74,162,.18);
  background:rgba(11,74,162,.06);
  color:#0b4aa2;
}

.kopt-calcApp__hint{
  font-size:12px;
  font-weight:850;
  color:#64748b;
}

.kopt-stepper{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.kopt-step{
  appearance:none;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.86);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
  color:#334155;
  cursor:pointer;
  transition:transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.kopt-step:hover{
  transform:translateY(-1px);
background: rgb(11 74 162 / 70%);
    border-color: rgb(153 255 0);
}
.kopt-step--active{
  background:linear-gradient(180deg, #0b4aa2, #093f88);
  color:#fff;
  border-color:rgba(255,255,255,.22);
  box-shadow:0 10px 22px rgba(2,6,23,.14);
}

.kopt-calcApp__grid{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:14px;
}
.kopt-calcApp__main{ min-width:0; }
.kopt-calcApp__side{ min-width:0; }

.kopt-card{
  border:1px solid rgba(15,23,42,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.88));
  border-radius:18px;
  box-shadow:0 14px 34px rgba(2,6,23,.10);
  padding:14px;
}

.kopt-card__head{ margin-bottom:12px; }
.kopt-card__h{ font-size:14px; font-weight:950; color:#0b1220; }
.kopt-card__s{ margin-top:4px; font-size:12px; font-weight:800; color:#64748b; line-height:1.35; }

.kopt-field{ margin-top:12px; }
.kopt-label{ display:block; font-size:12px; font-weight:950; color:#334155; margin-bottom:6px; }

.kopt-inputRow{ display:flex; gap:10px; }

.kopt-input{
  width: 100%;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    padding: 14px 0px 14px 0px;
    font-weight: 500;
    outline: none;
    box-shadow: 0 10px 18px rgba(2, 6, 23, .06);
}
.kopt-input:focus{
  border-color:rgba(11,74,162,.28);
  box-shadow:0 0 0 3px rgba(255,255,255,.95), 0 0 0 7px rgba(11,74,162,.14), 0 10px 18px rgba(2,6,23,.08);
}
.kopt-textarea{ resize:vertical; min-height:140px; line-height:1.35; }

.kopt-mini{ margin-top:6px; font-size:12px; font-weight:800; color:#64748b; }

.kopt-tags{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.kopt-tag{
  appearance:none;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.86);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
  color:#475569;
  cursor:pointer;
  transition:transform .14s ease, background .14s ease, border-color .14s ease;
}
.kopt-tag:hover{
  transform:translateY(-1px);
  background:rgba(11,74,162,.04);
  border-color:rgba(11,74,162,.20);
}
.kopt-tag--active{
  background:rgba(22,163,74,.10);
  border-color:rgba(22,163,74,.24);
  color:#166534;
}

.kopt-skuList{ margin-top:12px; display:grid; gap:10px; }

.kopt-sku{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.90);
  box-shadow:0 10px 18px rgba(2,6,23,.06);
  cursor:pointer;
  transition:transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.kopt-sku:hover{
  transform:translateY(-1px);
  border-color:rgba(11,74,162,.22);
  box-shadow:0 18px 30px rgba(2,6,23,.10);
}
.kopt-sku--active{
  border-color:rgba(22,163,74,.28);
  box-shadow:0 18px 32px rgba(2,6,23,.12), 0 0 0 10px rgba(22,163,74,.05);
}
#koptSkuSearch::placeholder{
  font-size: 13px;
  opacity: .8;
  font-weight: 500;
}

.kopt-sku__icon{
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  display:grid;
  place-items:center;
  font-weight:950;
  color:#0b4aa2;
  flex:0 0 auto;
}
.kopt-sku__body{ min-width:0; }
.kopt-sku__name{ font-weight:950; font-size:13px; color:#0b1220; line-height:1.2; }
.kopt-sku__meta{
  margin-top:14px;
  font-size:13px;
  font-weight:800;
  color:#64748b;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.kopt-pillMini{
  padding: 5px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.84);
  font-weight:950;
  color:#334155;
}

.kopt-actions{
  margin-top:14px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.kopt-actions--between{ justify-content:space-between; }
.kopt-actions__right{ display:flex; gap:10px; flex-wrap:wrap; }

.kopt-btn{
  appearance:none;
  border:1px solid rgba(15,23,42,.14);
  background:rgba(255,255,255,.90);
  border-radius:14px;
  padding:12px 12px;
  font-size:13px;
  font-weight:950;
  color:#0b1220;
  cursor:pointer;
  box-shadow:0 10px 18px rgba(2,6,23,.06);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
.kopt-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(11,74,162,.22);
  box-shadow:0 18px 30px rgba(2,6,23,.10);
}
.kopt-btn--primary{
  background:linear-gradient(180deg, #0b4aa2, #093f88);
  border-color:rgba(255,255,255,.22);
  color:#fff;
}
.kopt-btn--ghost{
  background:rgba(11,74,162,.04);
  border-color:rgba(11,74,162,.16);
  color:#0b4aa2;
}

.kopt-grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:8px;
}

.kopt-summary{ display:grid; gap:10px; }
.kopt-sumBox{
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  background:rgba(255,255,255,.90);
  box-shadow:0 10px 18px rgba(2,6,23,.06);
  padding:12px;
}
.kopt-sumRow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:7px 0;
  border-bottom:1px dashed rgba(15,23,42,.12);
  font-size:13px;
  font-weight:850;
  color:#334155;
}
.kopt-sumRow:last-child{ border-bottom:none; }
.kopt-sumRow b{ font-weight:950; color:#0b1220; }

.kopt-pane{ display:none; }
.kopt-pane--active{ display:block; }

.kopt-sideCard{
  position:sticky;
  top:12px;
  border:1px solid rgba(15,23,42,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.88));
  border-radius:18px;
  box-shadow:0 14px 34px rgba(2,6,23,.10);
  padding:14px;
    font-family: monospace;
}
.kopt-sideCard__h{ font-size:13px; font-weight:950; color:#0b1220; }

.kopt-picked{
  margin-top:10px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:rgba(255,255,255,.90);
  padding:12px;
  box-shadow:0 10px 18px rgba(2,6,23,.06);
  min-height:84px;
}
.kopt-picked__name{
  font-size:13px;
  font-weight:950;
  color:#0b1220;
  line-height:1.25;
}
.kopt-picked__meta{
  margin-top:6px;
  font-size:12px;
  font-weight:800;
  color:#64748b;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.kopt-sideMeta{ margin-top:12px; display:grid; gap:8px; }
.kopt-sideMeta__row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  font-weight:850;
  color:#475569;
}
.kopt-sideMeta__row b{ font-size:16px; font-weight:950; color:#504d4d; }

.kopt-sideNote{
  margin-top:12px;
  font-size:12px;
  font-weight:800;
  color:#64748b;
  line-height:1.35;
}

@media (max-width:980px){
  .kopt-calcApp__grid{ grid-template-columns:1fr; }
  .kopt-sideCard{ position:static; }
  .kopt-grid2{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce){
  .kopt-step,
  .kopt-tag,
  .kopt-sku,
  .kopt-btn{ transition:none !important; }
}
.kopt-sku img {
height: 100px;
width: 90px;
}
/* ===== v2 overrides ===== */
.kopt-input select,
select.kopt-input{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, #0b4aa2 50%),
    linear-gradient(135deg, #0b4aa2 50%, transparent 50%),
    linear-gradient(180deg, rgba(11,74,162,.06), rgba(11,74,162,.02));
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px),
    0 0;
  background-size:6px 6px, 6px 6px, 100% 100%;
  background-repeat:no-repeat;
  padding-right:36px;
}

.kopt-card{ padding:12px; }
.kopt-sku{ padding:10px; }
.kopt-sku__name{ font-size:14.5px;padding-top: 10px; }

.kopt-step--active{
  box-shadow:0 14px 28px rgba(2,6,23,.18), inset 0 0 0 1px rgba(255,255,255,.18);
}
.kopt-sku__desc{
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  margin-top: 6px;
}

.kopt-btn--primary{
  background:linear-gradient(180deg, #166534, #14532d);
}

.kopt-sku--active{
  box-shadow:
    0 22px 36px rgba(2,6,23,.16),
    0 0 0 8px rgba(22,163,74,.08);
}

.kopt-calcModal__panel{
  border-radius:26px;
}

@media (max-width:640px){
  .kopt-calcModal{ padding:8px; }
  .kopt-calcModal__panel{ border-radius:20px; }
}
/* === MAIN CALC BUTTON === */
.calc-btn {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 22px 26px;
    min-height: 100px;

    border-radius: 22px;
    background: linear-gradient(135deg, #eef4ff, #f6fbf8);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.08),
        inset 0 0 0 1px rgba(0,0,0,0.04);

    transition:
        transform 0.3s cubic-bezier(.22,1,.36,1),
        box-shadow 0.3s ease;
}

/* hover — лёгкий подъём */
.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 38px rgba(0,0,0,0.12),
        inset 0 0 0 1px rgba(0,0,0,0.06);
}
.calc-btn__title {
    font-size: 18px;
    font-weight: 700;
}
.calc-btn__desc {
    font-size: 14px;
    color: #5f6b7a;
}

[data-kopt-app] [data-kopt-pane="1"]{
  min-height: 0;
}

[data-kopt-app] [data-kopt-pane="1"] [data-kopt-sku-list]{
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;          
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* ===== Local scroll: Step 3 (Summary) ===== */
[data-kopt-app] [data-kopt-pane="3"]{
  min-height: 0;
}

[data-kopt-app] [data-kopt-pane="3"] [data-kopt-summary]{
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
[data-kopt-app] [data-kopt-sku-list],
[data-kopt-app] [data-kopt-summary]{
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: rgba(15,23,42,.25) transparent;
}
[data-kopt-app] [data-kopt-sku-list]::-webkit-scrollbar,
[data-kopt-app] [data-kopt-summary]::-webkit-scrollbar{
  width: 8px;
}
[data-kopt-app] [data-kopt-sku-list]::-webkit-scrollbar-thumb,
[data-kopt-app] [data-kopt-summary]::-webkit-scrollbar-thumb{
  background: rgba(15,23,42,.18);
  border-radius: 10px;
}
[data-kopt-app] [data-kopt-sku-list]::-webkit-scrollbar-thumb:hover,
[data-kopt-app] [data-kopt-summary]::-webkit-scrollbar-thumb:hover{
  background: rgba(15,23,42,.28);
}
#koptSkuSearch::placeholder{
  font-size: 13px;
  opacity: .8;
  font-weight: 500;
	padding:10px;
}
.kopt-morePill {
background: #0a4595;
    color: #ffffff;
    padding: 7px 15px 7px 15px;
}
.kopt-infoOverlay.is-open .kopt-infoModal {
    font-family: sans-serif;
}
.kopt-infoMeta span:nth-of-type(1) {
position: absolute;
    right: 10px;
    bottom: 0;
    border: none;
    font-size: 23px;
    color: #ff3d00;
}