.gpg-oc-modal {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(16, 20, 26, 0.12);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity 0.2s ease;
}

.gpg-oc-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.gpg-oc-modal-panel {
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  pointer-events: auto;
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 14px;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.26);
  padding: 20px;
  position: relative;
}

.gpg-oc-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #eff2f6;
  color: #1b1f24;
  font-weight: 700;
  cursor: pointer;
}

.gpg-oc-modal-title {
  margin: 0 36px 6px 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.gpg-oc-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 36px;
}

.gpg-oc-modal-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 auto;
}

.gpg-oc-modal-head-text {
  min-width: 0;
}

.gpg-oc-modal-subtitle {
  margin: 0 0 14px;
  color: #495463;
}

.gpg-oc-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gpg-oc-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gpg-oc-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gpg-oc-form-grid .gpg-oc-field {
  flex: 1 1 300px;
}

.gpg-oc-field label {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
}

.gpg-oc-field .form-control {
  min-height: 40px;
  border-radius: 8px;
}

.gpg-oc-field textarea.form-control {
  min-height: 70px;
}

.gpg-oc-actions {
  display: flex;
  justify-content: flex-start;
}

.gpg-oc-alert {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.gpg-oc-alert-danger {
  background: #fce9ea;
  color: #7b1e26;
  border: 1px solid #f6c9cd;
}

.gpg-oc-alert-success {
  background: #eaf6ea;
  color: #1e5f33;
  border: 1px solid #c6e7cf;
}

.gpg-oc-alert-info {
  background: #ecf3fd;
  color: #1d4d7d;
  border: 1px solid #c9dbf5;
}

.gpg-oc-notice {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f7f4e8;
  border-left: 4px solid #b32025;
}

.gpg-oc-order-withdraw-link {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 0;
  font-weight: 600;
  color: #1f5ea7;
  text-decoration: none;
}

.gpg-oc-order-withdraw-link:hover,
.gpg-oc-order-withdraw-link:focus {
  color: #153f71;
  text-decoration: underline;
}

.gpg-oc-account-link-inline {
  display: inline-block;
  /* margin-top: 6px; */
  color: #232323;
  font-size: .875rem;
  top: -12px;
  position: relative;
}

@media (max-width: 768px) {
  .gpg-oc-modal-panel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 14px;
  }
}
