/* Kocsoul Portone - Frontend pay buttons */

.kocsoul-pay-buttons {
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  max-width: 420px;
  color: #f8f8f8;
  font-family: inherit;
}

.kocsoul-pay-buttons-single .kocsoul-pay-input-row {
  margin-bottom: 12px;
}

.kocsoul-pay-buttons-single label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.kocsoul-pay-buttons-single .kocsoul-pay-amount-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 15px;
  box-sizing: border-box;
}

.kocsoul-pay-buttons-single .kocsoul-pay-amount-input:focus {
  outline: none;
  border-color: #ff72d9;
  box-shadow: 0 0 0 1px rgba(255, 114, 217, 0.5);
}

.kocsoul-pay-buttons-single .kocsoul-pay-submit,
.kocsoul-pay-buttons-multiple .kocsoul-pay-submit-other {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #ff72d9, #ffb347);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}

.kocsoul-pay-buttons-single .kocsoul-pay-submit:hover,
.kocsoul-pay-buttons-multiple .kocsoul-pay-submit-other:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  filter: brightness(1.05);
}

.kocsoul-pay-buttons-multiple .kocsoul-pay-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.kocsoul-pay-buttons-multiple .kocsoul-pay-amount-btn {
  min-width: 80px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);
  color: #f8f8f8;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

.kocsoul-pay-buttons-multiple .kocsoul-pay-amount-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.kocsoul-pay-buttons-multiple .kocsoul-pay-amount-btn.is-active {
  background: linear-gradient(135deg, #ff72d9, #ffb347);
  border-color: transparent;
  color: #111;
}

.kocsoul-pay-buttons-multiple .kocsoul-pay-other-wrap {
  margin-top: 8px;
}

.kocsoul-pay-buttons-multiple .kocsoul-pay-other-wrap label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  opacity: 0.8;
}

.kocsoul-pay-buttons-multiple .kocsoul-pay-amount-input-other {
  width: 160px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 14px;
  margin-right: 8px;
}

.kocsoul-pay-buttons-multiple .kocsoul-pay-amount-input-other:focus {
  outline: none;
  border-color: #ff72d9;
  box-shadow: 0 0 0 1px rgba(255, 114, 217, 0.5);
}

.kocsoul-pay-buttons .kocsoul-pay-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #ff72d9, #ffb347);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.kocsoul-pay-status {
  margin-top: 10px;
  font-size: 13px;
}

.kocsoul-pay-status.is-success {
  color: #56f17d;
}

.kocsoul-pay-status.is-error {
  color: #ff7676;
}

.kocsoul-pay-status.is-info {
  color: #b6d4ff;
}

.kocsoul-pay-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.kocsoul-pay-modal.is-open {
  opacity: 1;
}

.kocsoul-pay-modal-dialog {
  width: min(560px, calc(100vw - 28px));
  background: linear-gradient(180deg, #11151d 0%, #0d1118 100%) !important;
  color: #f3f6ff !important;
  border-radius: 18px;
  padding: 24px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.5);
}

.kocsoul-pay-modal-dialog h3 {
  margin: 0;
  font-size: clamp(30px, 5vw, 38px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #ffffff !important;
  padding-bottom: 20px;
}

.kocsoul-pay-modal-amount {
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 18px 0 6px;
}

.kocsoul-pay-modal-type {
  margin: 0 0 14px;
  color: #d6dcec !important;
  font-size: 20px;
  font-weight: 600;
}

.kocsoul-pay-modal-pgs {
  margin: 6px 0 16px;
  display: grid;
  gap: 10px;
}

.kocsoul-pay-modal-pg {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff !important;
}

.kocsoul-pay-modal-pg input[type="radio"] {
  width: 24px;
  height: 24px;
  accent-color: #ff5a31;
}

.kocsoul-pay-modal-notice {
  padding: 18px 20px;
  background: #1a2130 !important;
  border: 1px solid #2d3a52 !important;
  border-radius: 12px;
  font-size: 20px;
  color: #ffffff !important;
  white-space: pre-wrap;
}

.kocsoul-pay-modal-dialog,
.kocsoul-pay-modal-dialog p,
.kocsoul-pay-modal-dialog span,
.kocsoul-pay-modal-dialog label,
.kocsoul-pay-modal-dialog strong {
  color: #ffffff !important;
}

.kocsoul-pay-modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.kocsoul-pay-modal-actions .button {
  min-width: 180px;
  height: 72px;
  border-radius: 14px;
  border: none;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.kocsoul-pay-modal-actions .kocsoul-pay-modal-cancel {
  background: #3a4254;
  color: #fff;
}

.kocsoul-pay-modal-actions .button-primary,
.kocsoul-pay-modal-actions .kocsoul-pay-modal-submit,
.kocsoul-pay-modal-actions .kocsoul-pay-modal-ok {
  background: #ff5a31;
  color: #fff;
}

@media (max-width: 768px) {
  .kocsoul-pay-modal-dialog {
    width: calc(100vw - 20px);
    padding: 18px 16px 16px;
    border-radius: 14px;
  }

  .kocsoul-pay-modal-type,
  .kocsoul-pay-modal-pg,
  .kocsoul-pay-modal-notice {
    font-size: 16px;
  }

  .kocsoul-pay-modal-pg input[type="radio"] {
    width: 18px;
    height: 18px;
  }

  .kocsoul-pay-modal-actions {
    justify-content: stretch;
  }

  .kocsoul-pay-modal-actions .button {
    min-width: 0;
    flex: 1;
    height: 52px;
    font-size: 28px;
  }
}

