:root {
  --wcmv-color-page-bg-start: #fff7ed;
  --wcmv-color-page-bg-end: #ffedd5;
  --wcmv-color-card-bg: #ffffff;
  --wcmv-color-card-border: #fbbf24;
  --wcmv-color-heading: #7c2d12;
  --wcmv-color-body: #1f2937;
  --wcmv-color-muted: #6b7280;
  --wcmv-color-button-start: #f97316;
  --wcmv-color-button-end: #dc2626;
  --wcmv-color-success: #16a34a;
  --wcmv-color-info: #2563eb;
  --wcmv-color-danger: #dc2626;
  --wcmv-color-badge: #6366f1;
}

/* Browse listings */
#wcmv-browse-root,
#wcmv-browse-root .wcmv-header h1,
#wcmv-browse-root .wcmv-title,
#wcmv-browse-root .wcmv-filter-price-label {
  color: var(--wcmv-color-heading);
}

#wcmv-browse-root .wcmv-header p,
#wcmv-browse-root .wcmv-results-meta,
#wcmv-browse-root .wcmv-vendor,
#wcmv-browse-root .wcmv-price-row .label,
#wcmv-browse-root .wcmv-shipping-row .label,
#wcmv-browse-root .wcmv-shipping-sub {
  color: var(--wcmv-color-muted);
}

#wcmv-browse-root .wcmv-search-card,
#wcmv-browse-root .wcmv-card {
  background: var(--wcmv-color-card-bg);
  border-color: var(--wcmv-color-card-border);
}

#wcmv-browse-root .wcmv-search-btn,
#wcmv-browse-root .wcmv-page-link.is-active,
#wcmv-browse-root .wcmv-view-toggle .active {
  background: linear-gradient(90deg, var(--wcmv-color-button-start), var(--wcmv-color-button-end));
  color: #ffffff;
}

#wcmv-browse-root .wcmv-price,
#wcmv-browse-root .wcmv-price-row .price {
  color: var(--wcmv-color-success);
}

#wcmv-browse-root .wcmv-shipping-row .price,
#wcmv-browse-root .wcmv-shipping-row.wcmv-shipping-flat .price,
#wcmv-browse-root .wcmv-shipping-row.wcmv-shipping-calculated .price {
  color: var(--wcmv-color-info);
}

#wcmv-browse-root .wcmv-shipping-row.wcmv-shipping-pickup .price {
  color: var(--wcmv-color-danger);
}

#wcmv-browse-root .wcmv-badge {
  background: var(--wcmv-color-badge);
}

#wcmv-browse-root .wcmv-view-btn {
  border-color: var(--wcmv-color-success);
  color: var(--wcmv-color-success);
}

/* Vendor dashboard + create listing */
.wcmv-dashboard,
.wcmv-create-listing,
.wcmv-vendor-wrap {
  background: linear-gradient(to bottom, var(--wcmv-color-page-bg-start), var(--wcmv-color-page-bg-end));
}

.carnival-text,
.wcmv-dashboard h1,
.wcmv-dashboard h2,
.wcmv-dashboard h3,
.wcmv-create-listing h1,
.wcmv-create-listing h2,
.wcmv-create-listing h3,
.wcmv-vendor-wrap h1,
.wcmv-vendor-wrap h2,
.wcmv-vendor-wrap h3 {
  color: var(--wcmv-color-heading);
}

.wcmv-dashboard,
.wcmv-create-listing,
.wcmv-dashboard p,
.wcmv-create-listing p,
.wcmv-vendor-wrap,
.wcmv-vendor-wrap p {
  color: var(--wcmv-color-body);
}

.vintage-card,
.wcmv-form-card,
.wcmv-profile-tab,
.wcmv-profile-box,
.wcmv-listing-card,
.wcmv-panel .card,
.wcmv-vendor-header {
  background: var(--wcmv-color-card-bg);
  border-color: var(--wcmv-color-card-border);
}

.wcmv-tab.active {
  background: color-mix(in srgb, var(--wcmv-color-card-border) 28%, #ffffff 72%);
  border-bottom-color: var(--wcmv-color-button-end);
}

.wcmv-tab {
  color: var(--wcmv-color-muted);
}

.wcmv-btn,
.wcmv-primary-btn,
.wcmv-ticket-actions .button,
.wcmv-ticket-btn,
.wcmv-ticket-btn.button,
.wcmv-filter-row .button-primary,
.wcmv-bulk-actions button,
.wcmv-bulk-actions .button,
.wcmv-inventory button[name="apply_bulk"] {
  background: linear-gradient(90deg, var(--wcmv-color-button-start), var(--wcmv-color-button-end)) !important;
}

.wcmv-ticket-btn.secondary,
.wcmv-secondary-btn,
.wcmv-filter-row .button {
  background: var(--wcmv-color-info) !important;
  border-color: var(--wcmv-color-info) !important;
  color: #ffffff !important;
}

.wcmv-badge.success,
.wcmv-price,
.wcmv-money,
.wcmv-balance,
.wcmv-green {
  color: var(--wcmv-color-success) !important;
}

.wcmv-badge.info,
.wcmv-blue,
.wcmv-link {
  color: var(--wcmv-color-info) !important;
}

.wcmv-danger,
.wcmv-badge.danger,
.button.button-danger {
  color: #ffffff;
  background: var(--wcmv-color-danger) !important;
  border-color: var(--wcmv-color-danger) !important;
}

.wcmv-badge.default {
  background: var(--wcmv-color-badge);
}

/* Ensure create/edit listing form controls follow active preset */
.wcmv-create-listing .wcmv-field input,
.wcmv-create-listing .wcmv-field textarea,
.wcmv-create-listing .wcmv-field select {
  border-color: var(--wcmv-color-card-border) !important;
}

.wcmv-create-listing .wcmv-field input:focus,
.wcmv-create-listing .wcmv-field textarea:focus,
.wcmv-create-listing .wcmv-field select:focus {
  border-color: var(--wcmv-color-button-start) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--wcmv-color-button-start) 28%, transparent) !important;
}

/* Corner style: flat */
body.wcmv-corners-flat #wcmv-browse-root .wcmv-search-card,
body.wcmv-corners-flat #wcmv-browse-root .wcmv-card,
body.wcmv-corners-flat #wcmv-browse-root .wcmv-card img,
body.wcmv-corners-flat #wcmv-browse-root .wcmv-search-input input,
body.wcmv-corners-flat #wcmv-browse-root .wcmv-price-fields input,
body.wcmv-corners-flat #wcmv-browse-root select,
body.wcmv-corners-flat #wcmv-browse-root .wcmv-search-btn,
body.wcmv-corners-flat #wcmv-browse-root .wcmv-page-link,
body.wcmv-corners-flat #wcmv-browse-root .wcmv-view-btn,
body.wcmv-corners-flat #wcmv-browse-root .wcmv-view-toggle,
body.wcmv-corners-flat #wcmv-browse-root .wcmv-view-toggle button,
body.wcmv-corners-flat .wcmv-dashboard,
body.wcmv-corners-flat .wcmv-create-listing,
body.wcmv-corners-flat .vintage-card,
body.wcmv-corners-flat .wcmv-form-card,
body.wcmv-corners-flat .wcmv-profile-tab,
body.wcmv-corners-flat .wcmv-profile-box,
body.wcmv-corners-flat .wcmv-listing-card,
body.wcmv-corners-flat .wcmv-panel .card,
body.wcmv-corners-flat .wcmv-vendor-header,
body.wcmv-corners-flat .wcmv-tab,
body.wcmv-corners-flat .wcmv-btn,
body.wcmv-corners-flat .wcmv-primary-btn,
body.wcmv-corners-flat .wcmv-secondary-btn,
body.wcmv-corners-flat .wcmv-action-btn,
body.wcmv-corners-flat .stat-card,
body.wcmv-corners-flat .wcmv-ticket-btn,
body.wcmv-corners-flat .button.button-primary,
body.wcmv-corners-flat .button.button-danger {
  border-radius: 0 !important;
}

/* Layout width mode */
body.wcmv-layout-full-width .wcmv-dashboard,
body.wcmv-layout-full-width .wcmv-create-listing,
body.wcmv-layout-full-width #wcmv-browse-root,
body.wcmv-layout-full-width .wcmv-vendor-content,
body.wcmv-layout-full-width .wcmv-vendor-wrap {
  max-width: none !important;
  width: 100% !important;
}

body.wcmv-layout-full-width .wcmv-dashboard,
body.wcmv-layout-full-width .wcmv-create-listing,
body.wcmv-layout-full-width #wcmv-browse-root,
body.wcmv-layout-full-width .wcmv-vendor-content,
body.wcmv-layout-full-width .wcmv-vendor-wrap {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
