.apm-shipping-panel {
  width: 100%;
  margin: 12px 0 4px;
}

img.apm-brand,
.apm-shipping-panel img.apm-brand,
.apm-modal-header img.apm-brand {
  display: block;
  height: 44px;
  width: auto;
  max-width: none;
  margin-bottom: 10px;
}

label img.apm-brand-inline {
  display: inline-block;
  height: 24px;
  width: auto;
  max-width: none;
  vertical-align: middle;
  margin: 0 7px 0 0;
}

.apm-modal-header img.apm-brand-modal {
  margin-bottom: 0;
}

.apm-widget-help {
  margin: 0 0 10px;
  color: #555;
}

.apm-widget-selected {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid #0f7b3d;
  border-radius: 8px;
  background: #f1faf4;
}

.apm-widget-selected strong,
.apm-widget-selected span {
  display: block;
}

.apm-widget-selected .apm-box-code,
.apm-widget-selected span {
  margin-top: 2px;
}

.apm-choose-button {
  appearance: none;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.95rem;
}

.apm-choose-button:hover {
  background: #333;
}

.apm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 17, 17, 0.55);
}

.apm-modal-overlay[hidden] {
  display: none;
}

.apm-modal {
  width: min(900px, 100%);
  max-height: 92vh;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.apm-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 8px;
}

.apm-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.apm-modal-close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  margin-left: auto;
}

.apm-modal-help {
  margin: 0 16px 10px;
  color: #555;
}

.apm-widget-container {
  width: 100%;
  border-top: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

.apm-widget-container iframe {
  display: block;
  width: 100%;
  height: min(70vh, 640px);
  border: 0;
}

body.apm-modal-open {
  overflow: hidden;
}

.apm-phone-row {
  margin-top: 14px;
}

.apm-phone-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.apm-phone-group {
  display: flex;
  align-items: stretch;
  max-width: 260px;
}

.apm-phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #c3c3c3;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: #f2f4f6;
  font-weight: 600;
  color: #0090ff;
}

.apm-phone-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #c3c3c3;
  border-radius: 0 6px 6px 0;
  padding: 9px 12px;
}

.apm-phone-hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: #666;
}

.apm-phone-row.is-invalid .apm-phone-prefix,
.apm-phone-row.is-invalid .apm-phone-input {
  border-color: #c0392b;
}

.apm-phone-row.is-invalid .apm-phone-hint {
  color: #c0392b;
}
