/* ======================================================
   CHECKOUT PAGE — premium v2
   ====================================================== */

.checkout-wrap{ margin: 0 18px; }

.checkout-grid{ 
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-panel,
.checkout-summary{
  padding: 14px;
  border-radius: var(--r22);
}

/* segmented */ 
.segmented{
  display:flex;
  gap: 10px;
  margin-bottom: 12px;
}

.seg-btn{ 
  flex:1;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 10px 12px; 
  border-radius: 999px;
  cursor:pointer;
  font-weight: 900;
}
.seg-btn.active{ 
  background: linear-gradient(135deg, var(--malina), var(--malinaDeep));
  border: 0;
}

.checkout-note{ 
  padding: 12px;
  border-radius: var(--r18);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.note-title{ font-weight: 900; margin-bottom: 6px; }

/* Geo */
.geo-box{ 
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--r18);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.geo-title{ font-weight: 900; }
.geo-sub{ margin: 6px 0 12px; }

/* Summary cards */
.sum-title{ 
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 10px; 
}

.sum-cards{
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding: 10px 0 14px; 
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.sum-card{ 
  display:flex;
  gap: 12px;
  align-items:center;

  padding: 10px;
  border-radius: var(--r18);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.sum-img{ 
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 54px;
}

.sum-info{ flex: 1; min-width: 0; }

.sum-name{
  font-weight: 900;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.sum-meta{
  margin-top: 6px;
  display:flex;
  gap: 8px;
  align-items:center;
  font-size: 13px;
}
.dot{ opacity: 0.45; }

.sum-right{
  flex: 0 0 auto;
  font-weight: 900;
}
.sum-line{ font-size: 14px; }

.sum-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 12px 0 12px;
}
.sum-total-val{
  font-weight: 900;
  font-size: 18px;
}

/* Mobile */
@media (max-width: 860px){
  .checkout-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 480px){
  .checkout-wrap{ margin: 0 12px; }
}
/* Disabled segmented button */
.seg-btn:disabled,
.seg-btn.disabled{
  opacity: 0.55;
  cursor: not-allowed;
}

/* Пояснение ошибки (используем в checkout) */
.field-err{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--r18);
  border: 1px solid rgba(255,80,120,0.35);
  background: rgba(255,80,120,0.10);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  line-height: 1.35;
}
