.wrc-pwa-container {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #ffffff;
}

.wrc-pwa-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
}

.wrc-pwa-header .wrc-section-title,
.wrc-pwa-header .wrc-card-sub {
  margin: 0;
}

.wrc-pwa-header .wrc-card-sub {
  margin-top: 4px;
}

.wrc-pwa-header .wrc-toggle-row {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
}

.wrc-pwa-content {
  padding: 20px 16px;
}

.wrc-pwa-notice {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #f1aeb5;
  border-radius: 6px;
  background: #fff5f5;
  color: #8a1f22;
  font-size: 13px;
  line-height: 1.45;
}

.wrc-pwa-settings {
  transition: opacity 0.2s ease;
}

.wrc-pwa-settings.is-disabled {
  opacity: 0.72;
}

.wrc-pwa-grid,
.wrc-pwa-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wrc-pwa-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.wrc-pwa-field--wide {
  grid-column: 1 / -1;
}

.wrc-pwa-field > label,
.wrc-pwa-icon-field > div > label {
  color: #1d2327;
  font-weight: 600;
}

.foodord-tweaks-wrap .wrc-pwa-field input[type='text'],
.foodord-tweaks-wrap .wrc-pwa-field select {
  width: 100%;
  max-width: none;
  min-height: 40px;
  border-radius: 6px;
}

.wrc-pwa-field .wrc-help,
.wrc-pwa-icon-field .wrc-help {
  margin: 0;
  color: #646970;
  font-size: 12px;
  line-height: 1.4;
}

.wrc-pwa-branding {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.wrc-pwa-icon-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fcfdff;
}

.wrc-pwa-icon-control {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wrc-pwa-icon-preview {
  appearance: none;
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  place-items: center;
  border: 1px dashed #b6bdc8;
  border-radius: 8px;
  background: #ffffff;
  color: #667085;
  cursor: pointer;
  font-size: 24px;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}

.wrc-pwa-icon-preview:hover {
  border-color: #3858e9;
  background: #f6f7ff;
  color: #3858e9;
}

.wrc-pwa-icon-preview:focus-visible {
  outline: 2px solid #3858e9;
  outline-offset: 2px;
}

.wrc-pwa-icon-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrc-pwa-icon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wrc-pwa-icon-action {
  display: inline-flex;
  min-height: 36px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  background: #ffffff;
  color: #2c3338;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}

.wrc-pwa-icon-action .dashicons {
  width: 17px;
  height: 17px;
  font-size: 17px;
  line-height: 17px;
}

.wrc-pwa-icon-action--select:hover {
  border-color: #3858e9;
  background: #f6f7ff;
  color: #3858e9;
}

.wrc-pwa-icon-action--remove {
  color: #b32d2e;
}

.wrc-pwa-icon-action--remove:hover {
  border-color: #d63638;
  background: #fcf0f1;
  color: #8a2424;
}

.wrc-pwa-icon-action:focus-visible {
  outline: 2px solid #3858e9;
  outline-offset: 2px;
}

.wrc-pwa-icon-actions [hidden] {
  display: none;
}

.wrc-pwa-colors {
  margin-top: 16px;
}

.wrc-pwa-colors .wp-picker-container {
  min-height: 40px;
}

@media (max-width: 782px) {
  .wrc-pwa-grid,
  .wrc-pwa-branding,
  .wrc-pwa-colors {
    grid-template-columns: 1fr;
  }

  .wrc-pwa-header {
    align-items: flex-start;
  }

  .wrc-pwa-field--wide {
    grid-column: auto;
  }
}
