#ainbae-bacs-settings-wrap {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ainbae-bacs-page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}
.ainbae-bacs-page-header img {
  height: 60px;
  width: auto;
  object-fit: contain;
}
.ainbae-bacs-page-header p {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.ainbae-bacs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 1100px;
  align-items: start;
}
.ainbae-bacs-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Card styling */
.ainbae-bacs-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: visible; /* Prevents color picker cutoff */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}
.ainbae-bacs-card-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  font-weight: 600;
  font-size: 13px;
  color: #1a1a1a;
  border-bottom: 1px solid #e5e7eb;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
  box-sizing: border-box;
}
.ainbae-bacs-card-body {
  padding: 16px 18px;
  box-sizing: border-box;
}

.ainbae-bacs-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  margin: 0 0 8px;
}

.ainbae-bacs-field {
  margin-bottom: 14px;
  box-sizing: border-box;
}
.ainbae-bacs-field:last-child {
  margin-bottom: 0;
}
.ainbae-bacs-field-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ainbae-bacs-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #1a1a1a;
  margin-bottom: 3px;
}
.ainbae-bacs-desc {
  margin: 0 0 6px;
  color: #999;
  font-size: 12px;
  line-height: 1.4;
}

.ainbae-bacs-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  color: #1a1a1a;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.ainbae-bacs-input:focus {
  outline: none;
  border-color: #0aa7ff;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.ainbae-bacs-input-prefix {
  position: relative;
}
.ainbae-bacs-input-prefix span {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 14px;
}
.ainbae-bacs-input-prefix input {
  padding-left: 18px;
}

/* Layout rules for the color row */
.ainbae-bacs-colour-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f3f4f6;
}
.ainbae-bacs-colour-row:last-child {
  border-bottom: none;
}
.ainbae-bacs-colour-label {
  font-size: 13px;
  color: #374151;
}

/* Fixing Native WP Color Picker (Iris) */
.ainbae-bacs-colour-right .wp-picker-container * {
  box-sizing: content-box; /* Prevent WordPress global borders breaking layout */
}

/* Range styles */
.ainbae-bacs-range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ainbae-bacs-range-slider {
  flex: 1;
  accent-color: #0aa7ff;
  cursor: pointer;
}
.ainbae-bacs-range-input {
  width: 64px;
  text-align: center;
  font-weight: 600;
}

/* Toggle */
.ainbae-bacs-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.ainbae-bacs-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ainbae-bacs-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d1d5db;
  border-radius: 26px;
  transition: 0.25s;
}
.ainbae-bacs-toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.ainbae-bacs-toggle input:checked + .ainbae-bacs-toggle-slider {
  background: #0aa7ff;
}
.ainbae-bacs-toggle input:checked + .ainbae-bacs-toggle-slider::before {
  transform: translateX(20px);
}

.ainbae-bacs-sticky-footer {
  position: sticky;
  bottom: 0;
  z-index: 100;
  margin-top: 24px;
  max-width: 1100px;
  padding: 14px 20px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px 12px 0 0;
}
.ainbae-bacs-save-btn {
  background: linear-gradient(135deg, #0aa7ff, #0066ff);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10, 167, 255, 0.4);
  transition: opacity 0.2s;
}

/* Textarea (v2.0.0 — WhatsApp template) */
.ainbae-bacs-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
  font-family: inherit;
}

/* Full-width card below the two-column grid (v2.0.0) */
.ainbae-bacs-card[style*="margin-top:24px"] {
  max-width: 1100px;
}
