
.cccs-vp-widget {
  --cccs-vp-accent: #2f855a;
  --cccs-vp-bg: #ffffff;
  --cccs-vp-text: #18221c;
  --cccs-vp-muted: #66736b;
  --cccs-vp-border: rgba(24, 34, 28, .12);
  --cccs-vp-soft: #f3f6f1;
  color: var(--cccs-vp-text);
  font-family: inherit;
  position: relative;
}

.cccs-vp-widget * {
  box-sizing: border-box;
}

.cccs-vp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 0 0 22px;
}

.cccs-vp-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(47, 133, 90, .10);
  color: var(--cccs-vp-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cccs-vp-header h2 {
  margin: 0;
  color: var(--cccs-vp-text);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 850;
}

.cccs-vp-header p {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--cccs-vp-muted);
  font-size: 16px;
}

.cccs-vp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  padding: 16px;
  background: var(--cccs-vp-bg);
  border: 1px solid var(--cccs-vp-border);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(22, 46, 29, .06);
  margin-bottom: 22px;
}

.cccs-vp-toolbar label {
  display: grid;
  gap: 7px;
  flex: 1 1 260px;
  margin: 0;
}

.cccs-vp-toolbar span {
  color: var(--cccs-vp-muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .06em;
}

.cccs-vp-toolbar input,
.cccs-vp-toolbar select,
.cccs-vp-slot input,
.cccs-vp-slot select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--cccs-vp-border);
  border-radius: 14px;
  padding: 11px 14px;
  background: #fff;
  color: var(--cccs-vp-text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.cccs-vp-toolbar input:focus,
.cccs-vp-toolbar select:focus,
.cccs-vp-slot input:focus,
.cccs-vp-slot select:focus {
  border-color: var(--cccs-vp-accent);
  box-shadow: 0 0 0 4px rgba(47, 133, 90, .12);
}

.cccs-vp-grid {
  display: grid;
  grid-template-columns: repeat(var(--cccs-vp-columns, 3), minmax(0, 1fr));
  gap: 28px;
}

.cccs-vp-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--cccs-vp-bg);
  border: 1px solid var(--cccs-vp-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(22, 46, 29, .10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cccs-vp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 133, 90, .35);
  box-shadow: 0 24px 60px rgba(22, 46, 29, .14);
}

.cccs-vp-card[hidden] {
  display: none !important;
}

.cccs-vp-card-images {
  background: #f0f2ef;
}

.cccs-vp-image-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #e7e9e6;
  gap: 2px;
  padding: 0;
}

.cccs-vp-image-tabs button {
  border: 0;
  background: #e7e9e6;
  color: #58615a;
  padding: 15px 8px;
  min-height: 50px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background .18s ease, color .18s ease;
}

.cccs-vp-image-tabs button.is-active {
  background: var(--cccs-vp-accent);
  color: #fff;
}

.cccs-vp-image-stage {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(47, 133, 90, .10), rgba(47, 133, 90, .02));
}

.cccs-vp-image-stage img,
.cccs-vp-image-placeholder {
  display: none;
  width: 100%;
  height: 100%;
}

.cccs-vp-image-stage img.is-active,
.cccs-vp-image-placeholder.is-active {
  display: flex;
}

.cccs-vp-image-stage img {
  object-fit: cover;
}

.cccs-vp-image-placeholder {
  align-items: center;
  justify-content: center;
  color: var(--cccs-vp-muted);
  font-weight: 800;
  background:
    radial-gradient(circle at 25% 20%, rgba(47, 133, 90, .16), transparent 30%),
    linear-gradient(135deg, #f8faf7, #e6eee7);
}

.cccs-vp-card-body {
  flex: 1 1 auto;
  padding: 26px 26px 22px;
  text-align: center;
  border-top: 1px solid var(--cccs-vp-border);
}

.cccs-vp-badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(47, 133, 90, .10);
  color: var(--cccs-vp-accent);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 14px;
}

.cccs-vp-card h3 {
  margin: 0 0 18px;
  color: var(--cccs-vp-accent);
  font-size: 21px;
  line-height: 1.22;
  text-transform: uppercase;
  font-weight: 900;
}

.cccs-vp-card-meta {
  display: grid;
  gap: 8px;
  margin: 0 auto 20px;
  max-width: 440px;
}

.cccs-vp-card-meta p {
  margin: 0;
  color: var(--cccs-vp-text);
  font-size: 15px;
  line-height: 1.45;
}

.cccs-vp-card-meta strong {
  font-weight: 850;
}

.cccs-vp-vote-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.cccs-vp-vote-buttons button {
  cursor: pointer;
  border: 1px solid rgba(47, 133, 90, .22);
  background: #fff;
  color: var(--cccs-vp-accent);
  border-radius: 12px;
  min-height: 38px;
  font: inherit;
  font-weight: 850;
  font-size: 13px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.cccs-vp-vote-buttons button:hover {
  background: var(--cccs-vp-accent);
  color: #fff;
  border-color: var(--cccs-vp-accent);
}

.cccs-vp-card-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .25);
  background: var(--cccs-vp-accent);
}

.cccs-vp-card-actions a,
.cccs-vp-card-actions span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  font-size: 14px;
  text-align: center;
}

.cccs-vp-card-actions a + a,
.cccs-vp-card-actions span + span,
.cccs-vp-card-actions a + span,
.cccs-vp-card-actions span + a {
  border-left: 1px solid rgba(255, 255, 255, .42);
}

.cccs-vp-card-actions a:hover {
  background: rgba(0, 0, 0, .12);
  color: #fff;
}

.cccs-vp-empty,
.cccs-vp-no-filter-results {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 18px;
  background: rgba(47, 133, 90, .08);
  color: var(--cccs-vp-text);
  font-weight: 800;
  text-align: center;
}

.cccs-vp-vote-panel {
  --cccs-vp-panel-width: calc(100% - 36px);
  --cccs-vp-panel-max-width: none;
  --cccs-vp-panel-bottom: 18px;
  --cccs-vp-toggle-offset: 52px;
  --cccs-vp-toggle-side-offset: 24px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(47, 133, 90, .22);
  color: var(--cccs-vp-text);
  box-shadow: 0 -18px 48px rgba(12, 28, 17, .16);
  backdrop-filter: blur(16px);
  z-index: 9999;
}

.cccs-vp-vote-panel.is-fixed {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: var(--cccs-vp-panel-bottom);
  transform: translateX(-50%);
  width: min(var(--cccs-vp-panel-width), calc(100% - 36px));
  max-width: var(--cccs-vp-panel-max-width);
  border-radius: 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  gap: 16px;
  align-items: center;
}

.cccs-vp-vote-panel.is-inline {
  margin-top: 28px;
  border-radius: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  gap: 16px;
  align-items: center;
}

.cccs-vp-panel-title span {
  display: block;
  color: var(--cccs-vp-accent);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
}

.cccs-vp-panel-title strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.22;
}

.cccs-vp-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.cccs-vp-slot {
  position: relative;
}

.cccs-vp-slot label {
  display: block;
  margin: 0;
}

.cccs-vp-slot label > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--cccs-vp-text);
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 6px;
}

.cccs-vp-slot em {
  color: var(--cccs-vp-accent);
  font-style: normal;
  font-weight: 900;
}

.cccs-vp-slot input,
.cccs-vp-slot select {
  padding-right: 34px;
  min-height: 42px;
  font-size: 14px;
}

.cccs-vp-slot-select {
  display: none;
  width: 100%;
  appearance: auto;
}

.cccs-vp-slot-clear,
.cccs-vp-slot-clear-button {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cccs-vp-muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.cccs-vp-slot-clear:hover,
.cccs-vp-slot-clear-button:hover {
  background: transparent !important;
  color: var(--cccs-vp-text) !important;
}

.cccs-vp-autocomplete {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--cccs-vp-border);
  border-radius: 14px;
  box-shadow: 0 20px 52px rgba(12, 28, 17, .18);
  padding: 6px;
  z-index: 10002;
}

.cccs-vp-autocomplete button,
.cccs-vp-autocomplete-option,
.cccs-vp-candidate-option {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
  color: var(--cccs-vp-text);
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.cccs-vp-autocomplete button:hover,
.cccs-vp-autocomplete-option:hover,
.cccs-vp-candidate-option:hover {
  background: rgba(47, 133, 90, .10) !important;
  color: var(--cccs-vp-text) !important;
}

.cccs-vp-autocomplete strong {
  display: block;
  font-size: 14px;
}

.cccs-vp-autocomplete span {
  display: block;
  margin-top: 2px;
  color: var(--cccs-vp-muted);
  font-size: 12px;
}



/* Controles internos de la barra: clases propias para evitar heredar estilos globales de botones del tema. */
.cccs-vp-slot-clear-button,
.cccs-vp-slot-clear-button:hover,
.cccs-vp-slot-clear-button:focus {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
  outline: none;
}

.cccs-vp-candidate-option,
.cccs-vp-candidate-option:hover,
.cccs-vp-candidate-option:focus {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
  outline: none;
}

.cccs-vp-candidate-option:focus-visible {
  outline: 2px solid rgba(47, 133, 90, .35);
  outline-offset: 2px;
}

.cccs-vp-submit-wrap {
  display: grid;
  gap: 7px;
  min-width: 160px;
}

.cccs-vp-submit {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--cccs-vp-accent);
  color: #fff;
  padding: 12px 22px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 12px 28px rgba(47, 133, 90, .22);
}

.cccs-vp-submit:hover {
  transform: translateY(-1px);
  background: #246b49;
  color: #fff;
}

.cccs-vp-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.cccs-vp-form-message {
  color: var(--cccs-vp-muted);
  font-size: 12px;
  line-height: 1.2;
  min-height: 16px;
  text-align: center;
}

.cccs-vp-form-message.is-success {
  color: var(--cccs-vp-accent);
  font-weight: 850;
}

.cccs-vp-form-message.is-error {
  color: #a51f1f;
  font-weight: 850;
}

.cccs-vp-hp {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cccs-vp-fixed-spacer {
  height: 190px;
}

.cccs-vp-vote-panel.is-collapsed + .cccs-vp-fixed-spacer {
  height: 64px;
}

body.cccs-vp-body-has-fixed {
  padding-bottom: var(--cccs-vp-body-padding, 190px);
}

@media (max-width: 1180px) {
  .cccs-vp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cccs-vp-vote-panel.is-fixed,
  .cccs-vp-vote-panel.is-inline {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  
.cccs-vp-submit-wrap {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .cccs-vp-form-message {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .cccs-vp-grid {
    grid-template-columns: 1fr;
  }

  .cccs-vp-toolbar {
    border-radius: 16px;
  }

  .cccs-vp-header {
    display: block;
  }

  .cccs-vp-card-body {
    padding: 22px 18px;
  }

  .cccs-vp-image-stage {
    height: 250px;
  }

  .cccs-vp-vote-buttons {
    grid-template-columns: 1fr;
  }

  .cccs-vp-card-actions {
    grid-template-columns: 1fr;
  }

  .cccs-vp-card-actions a + a,
  .cccs-vp-card-actions span + span,
  .cccs-vp-card-actions a + span,
  .cccs-vp-card-actions span + a {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .42);
  }

  .cccs-vp-slots {
    grid-template-columns: 1fr;
  }

  .cccs-vp-vote-panel.is-fixed {
    bottom: 10px;
    border-radius: 18px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  
.cccs-vp-submit-wrap {
    grid-template-columns: 1fr;
  }

  .cccs-vp-submit {
    width: 100%;
  }

  .cccs-vp-fixed-spacer {
    height: 390px;
  }
}

/* Elementor component mode */
.cccs-vp-component {
  width: 100%;
}

.cccs-vp-panel-toggle {
  position: absolute;
  top: calc(-1 * var(--cccs-vp-toggle-offset, 52px));
  right: var(--cccs-vp-toggle-side-offset, 24px);
  width: var(--cccs-vp-toggle-width, auto);
  min-width: var(--cccs-vp-toggle-min-width, 118px);
  border: 1px solid rgba(47, 133, 90, .22);
  border-radius: 999px;
  background: #fff;
  color: var(--cccs-vp-accent);
  min-height: 40px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  box-shadow: 0 10px 26px rgba(12, 28, 17, .14);
  z-index: 10003;
}

.cccs-vp-vote-panel.is-inline .cccs-vp-panel-toggle {
  top: calc(-1 * var(--cccs-vp-toggle-offset, 52px));
}

.cccs-vp-panel-toggle:hover {
  background: var(--cccs-vp-accent);
  border-color: var(--cccs-vp-accent);
  color: #fff;
  transform: translateY(-1px);
}

.cccs-vp-vote-panel.is-collapsible.is-fixed,
.cccs-vp-vote-panel.is-collapsible.is-inline {
  grid-template-columns: minmax(160px, 240px) 1fr auto;
}

.cccs-vp-vote-panel.is-collapsed.is-fixed,
.cccs-vp-vote-panel.is-collapsed.is-inline {
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 0;
  padding: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  overflow: visible;
  pointer-events: none;
}

.cccs-vp-vote-panel.is-collapsed.is-fixed {
  left: auto;
  right: var(--cccs-vp-toggle-side-offset, 24px);
  bottom: var(--cccs-vp-panel-bottom);
  transform: none;
}

.cccs-vp-vote-panel.is-collapsed.is-inline {
  margin-top: calc(var(--cccs-vp-toggle-offset, 52px) + 8px);
}

.cccs-vp-vote-panel.is-collapsed .cccs-vp-panel-title,
.cccs-vp-vote-panel.is-collapsed .cccs-vp-slots,
.cccs-vp-vote-panel.is-collapsed 
.cccs-vp-submit-wrap {
  display: none !important;
}

.cccs-vp-vote-panel.is-collapsed .cccs-vp-panel-toggle {
  position: static;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cccs-vp-vote-panel:not(.is-collapsible) .cccs-vp-panel-toggle {
  display: none;
}

@media (max-width: 1180px) {
  .cccs-vp-vote-panel.is-collapsible.is-fixed,
  .cccs-vp-vote-panel.is-collapsible.is-inline {
    grid-template-columns: 1fr;
  }

  .cccs-vp-vote-panel.is-collapsed.is-fixed,
  .cccs-vp-vote-panel.is-collapsed.is-inline {
    display: block;
  }
}

@media (max-width: 760px) {
  .cccs-vp-vote-panel.is-fixed {
    left: 50%;
    right: auto;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(var(--cccs-vp-panel-width), calc(100% - 20px));
    border-radius: 18px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .cccs-vp-vote-panel.is-collapsed.is-fixed {
    left: auto;
    right: 10px;
    transform: none;
    width: auto;
    max-height: none;
    overflow: visible;
  }

  .cccs-vp-vote-panel.is-collapsed + .cccs-vp-fixed-spacer {
    height: 64px;
  }

  .cccs-vp-panel-toggle {
    right: 10px;
  }
}

.cccs-vp-card.is-selected {
  border-color: var(--cccs-vp-accent);
  box-shadow: 0 22px 62px rgba(22, 46, 29, .18);
}

.cccs-vp-vote-buttons button.is-selected,
.cccs-vp-vote-buttons button[aria-pressed="true"] {
  background: var(--cccs-vp-accent);
  color: #fff;
  border-color: var(--cccs-vp-accent);
  box-shadow: 0 8px 20px rgba(47, 133, 90, .22);
}

.cccs-vp-card.is-position-1 .cccs-vp-vote-buttons button[data-set-position="1"],
.cccs-vp-card.is-position-2 .cccs-vp-vote-buttons button[data-set-position="2"],
.cccs-vp-card.is-position-3 .cccs-vp-vote-buttons button[data-set-position="3"] {
  background: var(--cccs-vp-accent);
  color: #fff;
  border-color: var(--cccs-vp-accent);
}

/* v10: keep fixed panel toggle visible on mobile */
@media (max-width: 760px) {
  .cccs-vp-vote-panel.is-fixed {
    overflow: visible;
    max-height: none;
  }

  .cccs-vp-vote-panel.is-fixed .cccs-vp-slots {
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }


  .cccs-vp-slot .cccs-vp-slot-search,
  .cccs-vp-slot .cccs-vp-autocomplete {
    display: none !important;
  }

  .cccs-vp-slot .cccs-vp-slot-select {
    display: block !important;
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    background: #fff;
    padding: 12px 42px 12px 14px;
    color: var(--cccs-vp-text);
    border: 1px solid var(--cccs-vp-border);
    font-size: 15px;
  }

  .cccs-vp-slot-clear,
  .cccs-vp-slot-clear-button {
    bottom: 10px;
    z-index: 2;
  }

  .cccs-vp-vote-panel.is-fixed .cccs-vp-panel-toggle {
    top: calc(-1 * var(--cccs-vp-toggle-offset, 52px));
    right: var(--cccs-vp-toggle-side-offset, 10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10006;
  }

  .cccs-vp-vote-panel.is-collapsed.is-fixed .cccs-vp-panel-toggle {
    position: static;
  }
}
