.kokoroe-checkout-lock { overflow: hidden; }
.kokoroe-checkout-backdrop {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(2, 3, 5, .88);
  backdrop-filter: blur(12px);
}
.kokoroe-checkout-backdrop[hidden] { display: none; }
.kokoroe-checkout-dialog {
  width: min(100%, 540px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(201, 162, 74, .48);
  border-radius: 4px;
  background: #0d0f12;
  color: rgba(255, 255, 255, .92);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .7);
  font-family: "Noto Sans JP", system-ui, sans-serif;
}
.kokoroe-checkout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.kokoroe-checkout-header h2 { margin: 0 0 7px; color: rgba(255, 255, 255, .95); font-family: "Noto Serif JP", serif; font-size: 1.28rem; font-weight: 400; letter-spacing: .06em; text-align: left; }
.kokoroe-checkout-header p { margin: 0; color: rgba(255, 255, 255, .52); font-size: .74rem; line-height: 1.7; }
.kokoroe-checkout-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}
.kokoroe-checkout-body { padding: 24px 26px 28px; }
.kokoroe-checkout-order { margin: 0 0 20px; padding: 15px 17px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .025); }
.kokoroe-checkout-row { display: flex; justify-content: space-between; gap: 18px; padding: 5px 0; color: rgba(255, 255, 255, .58); font-size: .76rem; line-height: 1.65; }
.kokoroe-checkout-row[hidden] { display: none; }
.kokoroe-checkout-row strong { color: rgba(255, 255, 255, .92); font-weight: 500; text-align: right; }
.kokoroe-checkout-row.total { margin-top: 8px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .09); }
.kokoroe-checkout-row.total strong { color: #e0c070; font-family: "Cormorant Garamond", serif; font-size: 1.5rem; }
.kokoroe-checkout-discount { color: #c9a24a; }
.kokoroe-checkout-field { margin: 0 0 17px; }
.kokoroe-checkout-field label { display: block; margin: 0 0 7px; color: rgba(255, 255, 255, .67); font-size: .75rem; letter-spacing: .04em; }
.kokoroe-checkout-required { color: #d9b85f; }
.kokoroe-checkout-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 2px;
  background: #08090b;
  color: rgba(255, 255, 255, .94);
  font: inherit;
  font-size: .9rem;
}
.kokoroe-checkout-field input:focus { outline: none; border-color: #c9a24a; }
.kokoroe-square-card { min-height: 90px; padding: 12px 12px 4px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 2px; background: #fff; }
.kokoroe-checkout-confirm { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin: 16px 0; color: rgba(255, 255, 255, .6); font-size: .72rem; line-height: 1.7; }
.kokoroe-checkout-confirm input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: #c9a24a; }
.kokoroe-checkout-confirm a { color: #e0c070; }
.kokoroe-checkout-pay {
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid #c9a24a;
  border-radius: 3px;
  background: #c9a24a;
  color: #101113;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
}
.kokoroe-checkout-pay:hover:not(:disabled) { background: #e0c070; }
.kokoroe-checkout-pay:disabled { opacity: .48; cursor: not-allowed; }
.kokoroe-checkout-secure { margin: 12px 0 0; color: rgba(255, 255, 255, .42); font-size: .68rem; line-height: 1.7; }
.kokoroe-checkout-secure::before { content: "✓"; margin-right: 7px; color: #8fc29a; }
.kokoroe-checkout-status { display: none; margin: 15px 0 0; padding: 12px 14px; font-size: .78rem; line-height: 1.7; }
.kokoroe-checkout-status.error { display: block; color: #efa0a0; border: 1px solid rgba(180, 70, 70, .5); background: rgba(160, 55, 55, .12); }
.kokoroe-checkout-status.success { display: block; color: #a8d9b5; border: 1px solid rgba(89, 157, 105, .45); background: rgba(70, 135, 85, .12); }
@media (max-width: 600px) {
  .kokoroe-checkout-backdrop { align-items: start; padding: 0; }
  .kokoroe-checkout-dialog { min-height: 100dvh; border-width: 0; border-radius: 0; }
  .kokoroe-checkout-header { padding: 20px 18px 17px; }
  .kokoroe-checkout-body { padding: 20px 18px 28px; }
  .kokoroe-checkout-row { align-items: flex-start; flex-direction: column; gap: 2px; }
  .kokoroe-checkout-row strong { text-align: left; }
}
