/* Placanje, uplatnica, barkod, potvrda. */
/* ---- Payment method selection ---- */
.pk-pay-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.pk-pay-btn {
  border: 2px solid #E8DDD5;
  border-radius: 14px;
  padding: 1.5rem 1rem;
  cursor: pointer;
  background: #fff;
  font-family: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.18s, background 0.18s;
}
.pk-pay-btn:hover { border-color: #C85A3B; background: #FEF3EF; }
.pk-pay-icon  { font-size: 2rem; line-height: 1; }
.pk-pay-label { font-size: 1rem; font-weight: 800; color: #2B1A10; }
.pk-pay-sub   { font-size: 0.75rem; color: #7A6559; }

/* ---- Uplatnica form ---- */
.pk-section-title { font-size: 1.2rem; font-weight: 800; color: #2B1A10; margin-bottom: 0.4rem; }
.pk-section-sub   { font-size: 0.875rem; color: #7A6559; margin-bottom: 1.5rem; line-height: 1.5; }
.pk-field-group   { margin-bottom: 1rem; }
.pk-field-group-row { display: flex; gap: 1rem; }
.pk-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2B1A10;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pk-field-hint {
  font-size: 0.75rem;
  color: #7A6559;
  margin: 0.35rem 0 0;
  line-height: 1.45;
}
.pk-field-input {
  width: 100%;
  border: 2px solid #E8DDD5;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  background: #fff;
  color: #2B1A10;
  outline: none;
  transition: border-color 0.18s;
}
.pk-field-input:focus { border-color: #C85A3B; }
.pk-field-input::placeholder { color: #C5B9B3; }

/* ---- Barcode screen ---- */
.pk-barcode-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #E8DDD5;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.pk-barcode-title { font-size: 1.2rem; font-weight: 800; color: #2B1A10; margin-bottom: 0.35rem; }
.pk-barcode-sub   { font-size: 0.85rem; color: #7A6559; margin-bottom: 1.25rem; line-height: 1.5; }
.pk-barcode-wrap  { text-align: center; margin-bottom: 1.25rem; padding: 1rem 0; background: #fff; }
.pk-barcode-wrap canvas { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.pk-barcode-details {
  border: 1.5px solid #E8DDD5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.pk-barcode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  font-size: 0.825rem;
  border-bottom: 1px solid #F0EBE6;
  gap: 1rem;
}
.pk-barcode-row:last-child { border-bottom: none; }
.pk-barcode-row span:first-child { color: #7A6559; white-space: nowrap; }
.pk-barcode-row span:last-child  { font-weight: 600; color: #2B1A10; text-align: right; }
.pk-barcode-row-total span { font-weight: 800 !important; font-size: 1rem !important; }
.pk-barcode-row-total span:last-child { color: #C85A3B !important; }
.pk-barcode-guide {
  background: #FEF3EF;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.825rem;
  color: #7A6559;
  line-height: 1.5;
}
.pk-btn-paid { background: #00a36c !important; border-color: #00a36c !important; }
.pk-btn-paid:hover { background: #008a5b !important; }
.pk-nav-centered { justify-content: center; }

/* ---- Confirmation screen ---- */
.pk-confirm-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #E8DDD5;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}
.pk-confirm-icon  { font-size: 3rem; margin-bottom: 0.75rem; }
.pk-confirm-title { font-size: 1.4rem; font-weight: 800; color: #2B1A10; margin-bottom: 0.5rem; }
.pk-confirm-sub   { font-size: 0.9rem; color: #7A6559; margin-bottom: 1.5rem; line-height: 1.6; }
.pk-confirm-summary {
  border: 1.5px solid #E8DDD5;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}

.pk-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #E8DDD5;
  border-top-color: #C85A3B;
  border-radius: 50%;
  animation: pkSpin 0.75s linear infinite;
  margin: 0 auto 1.25rem;
}

@keyframes pkSpin { to { transform: rotate(360deg); } }

.pk-loading p {
  font-size: 0.9rem;
  color: #7A6559;
  font-weight: 500;
}
