
.wcpf-pro-form {
  background: var(--wcpf-bg);
  color: var(--wcpf-text);
  padding: var(--wcpf-widget-padding);
}

.wcpf-section {
  border: 1px solid var(--wcpf-border);
  border-radius: var(--wcpf-radius);
  margin: 0 0 var(--wcpf-section-margin);
  overflow: hidden;
  background: var(--wcpf-bg);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.wcpf-section-toggle {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  color: var(--wcpf-text);
  position: relative;
  font-size: var(--wcpf-title-size);
  letter-spacing: 0.01em;
}

.wcpf-section-toggle::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wcpf-muted);
  font-size: 18px;
  line-height: 1;
}

.wcpf-section.is-open .wcpf-section-toggle::after {
  content: '−';
}

.wcpf-section-body {
  display: none;
  padding: 0 var(--wcpf-section-padding) var(--wcpf-section-padding);
  border-top: 1px solid rgba(0,0,0,0.04);
}

.wcpf-section.is-open .wcpf-section-body {
  display: block;
}

.wcpf-search,
.wcpf-price-grid input,
.wcpf-attribute-search {
  width: 100%;
  border: 1px solid var(--wcpf-border);
  border-radius: calc(var(--wcpf-radius) - 4px);
  padding: 10px 12px;
  box-sizing: border-box;
  color: var(--wcpf-text);
  background: #fff;
  min-height: 42px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.wcpf-search:focus,
.wcpf-price-grid input:focus,
.wcpf-attribute-search:focus {
  outline: 0;
  border-color: var(--wcpf-accent);
  box-shadow: 0 0 0 3px rgba(139, 94, 34, 0.12);
}

.wcpf-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wcpf-attribute-search-wrap {
  margin: 12px 0 10px;
}

.wcpf-option-status {
  font-size: 12px;
  color: var(--wcpf-muted);
  margin-top: 6px;
  min-height: 16px;
}

.wcpf-options-wrap {
  border: 1px solid var(--wcpf-border);
  border-radius: calc(var(--wcpf-radius) - 2px);
  background: var(--wcpf-panel-bg);
  max-height: var(--wcpf-panel-height);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--wcpf-accent) rgba(0,0,0,0.08);
}

.wcpf-options-wrap::-webkit-scrollbar {
  width: 10px;
}

.wcpf-options-wrap::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
}

.wcpf-options-wrap::-webkit-scrollbar-thumb {
  background: rgba(139, 94, 34, 0.45);
  border-radius: 999px;
}

.wcpf-options {
  display: grid;
  gap: 0;
  padding: 6px 0;
}

.wcpf-option {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  color: var(--wcpf-text);
  padding: var(--wcpf-option-padding) 12px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: var(--wcpf-option-size);
  transition: background-color .2s ease, transform .15s ease;
}

.wcpf-option:hover {
  background: var(--wcpf-hover-bg);
}

.wcpf-option:last-of-type {
  border-bottom: 0;
}

.wcpf-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wcpf-checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--wcpf-border);
  border-radius: 5px;
  background: #fff;
  position: relative;
  margin-top: 1px;
  transition: all .2s ease;
}

.wcpf-checkbox:checked + .wcpf-checkmark {
  background: var(--wcpf-accent);
  border-color: var(--wcpf-accent);
  box-shadow: 0 0 0 3px rgba(139, 94, 34, 0.12);
}

.wcpf-checkbox:checked + .wcpf-checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.wcpf-option-label {
  display: inline-block;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: var(--wcpf-label-lines);
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.wcpf-option-count {
  color: var(--wcpf-muted);
  font-size: 12px;
  white-space: nowrap;
}

.wcpf-option:has(.wcpf-checkbox:checked) {
  background: var(--wcpf-selected-bg);
}

.wcpf-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.wcpf-submit.button,
button.wcpf-submit,
.wcpf-submit {
  background: linear-gradient(180deg, #9a6930 0%, var(--wcpf-accent) 100%);
  border-color: var(--wcpf-accent);
  color: #fff;
  border-radius: calc(var(--wcpf-radius) - 4px);
  padding: 10px 14px;
  box-shadow: 0 10px 20px rgba(139, 94, 34, 0.12);
}

.wcpf-submit.button:hover,
button.wcpf-submit:hover,
.wcpf-submit:hover {
  filter: brightness(1.03);
}

.wcpf-reset {
  color: var(--wcpf-muted);
  text-decoration: none;
}

.wcpf-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.wcpf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(139, 94, 34, 0.18);
  color: var(--wcpf-text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #fffaf4;
}

.wcpf-show-more {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--wcpf-border);
  border-radius: calc(var(--wcpf-radius) - 4px);
  background: #fff;
  color: var(--wcpf-text);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.wcpf-is-extra {
  display: none;
}

.wcpf-options.is-expanded .wcpf-is-extra,
.wcpf-option.is-selected-extra {
  display: grid;
}

.wcpf-no-matches {
  padding: 12px;
  color: var(--wcpf-muted);
  font-size: 13px;
}

.wcpf-option.is-hidden-by-search {
  display: none;
}

.wcpf-pro-form.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.wcpf-products-loading {
  opacity: 0.45;
  transition: opacity .2s ease;
}

@media (min-width: 1024px) {
  .widget .wcpf-pro-form,
  .wcpf-pro-shortcode .wcpf-pro-form {
    position: sticky;
    top: 24px;
  }
  .wcpf-pro-form[data-sticky-sidebar="no"] {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 480px) {
  .wcpf-price-grid {
    grid-template-columns: 1fr;
  }
}
