/* ==========================================================================
   ACRB ADMIN STYLE CUSTOMIZER (SCOPED - NO :ROOT, NO GRADIENTS)
   ========================================================================== */

.acrb-style-container,
.acrb-style-container *,
.acrb-style-container *::before,
.acrb-style-container *::after {
  box-sizing: border-box;
}

.acrb-style-container {
  width: 100%;
  max-width: 1100px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #1e293b;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Header Topbar (Solid Surface - No Gradients)
   -------------------------------------------------------------------------- */
.acrb-style-topbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #4f46e5;
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.acrb-style-topbar-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acrb-style-topbar-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acrb-style-topbar-icon .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.acrb-style-topbar-meta h1 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.acrb-style-topbar-meta p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* Success Alert */
.acrb-style-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Layout & Cards
   -------------------------------------------------------------------------- */
.acrb-style-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.acrb-style-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  padding: 24px;
  margin-bottom: 22px;
}

.acrb-style-card-title {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.acrb-style-card-title .dashicons {
  color: #4f46e5;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.acrb-style-color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.acrb-style-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.acrb-style-form-group:last-child {
  margin-bottom: 0;
}

.acrb-style-label {
  display: block;
  font-weight: 700;
  color: #1e293b;
  font-size: 13.5px;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Form Controls (Color Pickers & Dropdowns)
   -------------------------------------------------------------------------- */
.acrb-style-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acrb-style-color-picker {
  width: 44px;
  height: 42px;
  min-width: 44px;
  padding: 2px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.acrb-style-color-picker:hover {
  border-color: #94a3b8;
}

.acrb-style-input,
.acrb-style-select {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 42px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  color: #1e293b !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
  line-height: 40px !important;
  outline: none !important;
}

.acrb-style-input-hex {
  text-transform: uppercase !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
}

.acrb-style-input:hover,
.acrb-style-select:hover {
  border-color: #94a3b8 !important;
  background: #ffffff !important;
}

.acrb-style-input:focus,
.acrb-style-select:focus {
  background: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.acrb-style-select-wrap {
  position: relative;
  width: 100%;
}

.acrb-style-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px !important;
  cursor: pointer;
}

.acrb-style-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.acrb-style-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.acrb-style-submit-btn {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.acrb-style-submit-btn:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Live Preview Card
   -------------------------------------------------------------------------- */
.acrb-preview-sidebar {
  position: sticky;
  top: 40px;
}

.acrb-preview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
}

.acrb-preview-header {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.acrb-preview-body {
  padding: 20px;
}

.acrb-preview-car-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.acrb-preview-car-name {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.acrb-preview-car-sub {
  font-size: 13px;
  margin: 0 0 16px 0;
}

.acrb-preview-price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
}

.acrb-preview-price {
  font-size: 22px;
  font-weight: 800;
}

.acrb-preview-actions {
  display: flex;
  gap: 8px;
}

.acrb-preview-btn-main {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.acrb-preview-btn-sec {
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: default;
}

/* --------------------------------------------------------------------------
   Responsive Layout
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .acrb-style-grid {
    grid-template-columns: 1fr;
  }
  .acrb-style-color-grid {
    grid-template-columns: 1fr;
  }
  .acrb-preview-sidebar {
    position: static;
  }
}