:root {
  --cfdgraph-white: #fffeff;
  --cfdgraph-green: #00A443;
  --cfdgraph-green-1: #007F33;
  --cfdgraph-green-soft: #5BD38C;
  --cfdgraph-forest: #00402A;
  --cfdgraph-mint: #dcebe1;
  --cfdgraph-yellow: #FFCD52;
  --cfdgraph-orange: #FF9C1A;
  --cfdgraph-text: #3A3735;
  --cfdgraph-border: #d8cfc7;
}

#cfdgraph {
  width: 100%;
  max-width: 980px;
  margin: 20px auto;
  padding: 24px;
  border: 1px solid var(--cfdgraph-border);
  border-radius: 15px;
  background: var(--cfdgraph-white);
  box-sizing: border-box;
  color: var(--cfdgraph-text);
  overflow: hidden;
  text-align: left;
}

#cfdgraph * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "IberPangeaText" !important;
  font-style: normal;
}

#cfdgraph strong {
  font-family: "IberPangeaText Bold" !important;
  font-weight: 700;
}

#cfdgraph img {
  display: block;
  width: 100%;
}

#cfdgraph .cfdgraph_title {
  font-size: 30px;
  line-height: 1.125;
  margin-bottom: 16px;
  color: var(--cfdgraph-green-1) !important;
  font-family: "IberPangea" !important;
  font-weight: normal;
  text-align: left;
}

#cfdgraph .cfdgraph_title strong {
  font-family: "IberPangea Medium" !important;
  font-weight: normal;
}

#cfdgraph .cfdgraph_note {
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--cfdgraph-green-1) !important;
  font-family: "IberPangeaText Bold" !important;
  font-weight: normal;
  text-align: left;
  margin-bottom: 16px;
}

#cfdgraph .cfdgraph_content {
  width: 100%;
  max-width: 214px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  column-gap: 16px;
}

#cfdgraph .cfdgraph_list {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  list-style: none;
  color: var(--cfdgraph-text);
  font-size: 0.75em;
  line-height: 1;
  writing-mode: vertical-rl;
}

#cfdgraph .cfdgraph_list_item {
  display: block;
  align-items: flex-start;
  color: #615D5A;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "IberPangeaText" !important;
  font-size: 16px;
  font-weight: normal;
  line-height: 20px;
  text-align: right;
  transform: rotate(-20deg);
  transform-origin: center;
}

#cfdgraph .cfdgraph_list_item::before {
  content: none !important;
  display: none !important;
}

#cfdgraph .cfdgraph_label {
  position: relative;
  z-index: 4;
  grid-column: 1;
  grid-row: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40%;
  max-width: 94px;
  min-height: 42px;
  margin-top: 21px;
  padding: 10px;
  border: 1px solid var(--cfdgraph-green-1);
  border-radius: 999px;
  background: var(--cfdgraph-white);
  color: var(--cfdgraph-text);
  font-size: 11px;
  line-height: 1;
  font-family: "IberPangeaText" !important;
  font-weight: normal;
  text-align: center;
  opacity: 0.2;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

#cfdgraph .cfdgraph_label-1 {
  justify-self: start;
}

#cfdgraph .cfdgraph_label-2 {
  justify-self: end;
  max-width: 99px;
  border-color: #5BD38C;
}

#cfdgraph .cfdgraph_label::before,
#cfdgraph .cfdgraph_label::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

#cfdgraph .cfdgraph_label::before {
  bottom: 100%;
  left: 50%;
  width: 8px;
  height: 17px;
  background: url("/wcorp/gc/prod/es_ES/estaticos/contratos-diferencia-grafico/images/flecha-1-m.svg?v=20260623") center / contain no-repeat;
  transform: translateX(-50%);
}

#cfdgraph .cfdgraph_label::after {
  display: none;
}

#cfdgraph .cfdgraph_label-2::before {
  left: -32px;
  width: 56px;
  height: 16px;
  background-image: url("/wcorp/gc/prod/es_ES/estaticos/contratos-diferencia-grafico/images/flecha-2-m.svg?v=20260623");
  transform: none;
}

#cfdgraph .cfdgraph_media {
  width: 100%;
  grid-column: 1;
  line-height: 0;
}

#cfdgraph .cfdgraph_media-m {
  display: block;
  grid-row: 2;
  width: 100%;
  margin: 8px auto 0;
}

#cfdgraph .cfdgraph_media-d {
  display: none;
}

#cfdgraph .cfdgraph_media svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

#cfdgraph .cfdgraph_shape {
  cursor: pointer;
  opacity: 0.2;
  transition: opacity 0.2s ease;
}

#cfdgraph .cfdgraph_shape-1 {
}

#cfdgraph .cfdgraph_shape-2 {
}

#cfdgraph .cfdgraph_shape-3 {
}

#cfdgraph .cfdgraph_shape:focus-visible,
#cfdgraph [data-cfdgraph-shape]:focus-visible {
  outline: 2px solid var(--cfdgraph-green-1);
  outline-offset: 3px;
}

#cfdgraph .cfdgraph_shape.is-active {
  opacity: 1;
}

#cfdgraph [data-cfdgraph-shape] {
  cursor: pointer;
}

#cfdgraph [data-cfdgraph-shape].is-active {
}

#cfdgraph .cfdgraph_label.is-active {
  opacity: 1;
}

#cfdgraph .cfdgraph_legend {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--cfdgraph-border);
  border-radius: 10px;
  list-style: none;
}

#cfdgraph .cfdgraph_legend_item {
  position: relative;
  padding-left: 18px;
  color: var(--cfdgraph-text) !important;
  font-size: 16px;
  line-height: 1.25;
  font-family: 'IberPangeaText' !important;
  font-weight: normal;
  text-align: left;
}

#cfdgraph .cfdgraph_legend_item strong {
  font-family: 'IberPangeaText Bold' !important;
  font-weight: normal;
}

#cfdgraph .cfdgraph_legend_item::before {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  top: 5px;
  left: 0;
  width: 9px;
  height: 9px;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--cfdgraph-green-1);
  font-size: 0 !important;
  line-height: 0 !important;
}

#cfdgraph .cfdgraph_legend_item-1 {
}

#cfdgraph .cfdgraph_legend_item-2 {
}

#cfdgraph .cfdgraph_legend_item-2::before {
  background: var(--cfdgraph-green-soft);
}

#cfdgraph .cfdgraph_legend_item-3 {
}

#cfdgraph .cfdgraph_legend_item-3::before {
  background: var(--cfdgraph-forest);
}

#cfdgraph .cfdgraph_source {
  grid-column: 1 / -1;
  margin-top: 16px;
  color: var(--cfdgraph-text) !important;
  font-size: 12px;
  line-height: 1.33;
  font-family: 'IberPangeaText' !important;
  font-weight: normal;
  font-style: italic;
  text-align: left;
}

@media (min-width: 700px) {

  #cfdgraph .cfdgraph_title {
    font-size: 32px;
    line-height: 1.125;
    margin-bottom: 24px;
  }

  #cfdgraph .cfdgraph_content {
    max-width: 530px;
    padding-right: 130px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  #cfdgraph .cfdgraph_list {
    flex-direction: column;
    writing-mode: horizontal-tb;
  }

  #cfdgraph .cfdgraph_list_item {
    display: flex;
    transform: none;
  }

  #cfdgraph .cfdgraph_media {
    max-width: 355px;
    grid-column: 2;
    grid-row: 1;
  }

  #cfdgraph .cfdgraph_media-m {
    display: none;
  }

  #cfdgraph .cfdgraph_media-d {
    display: block;
    width: 100%;
  }

  #cfdgraph .cfdgraph_label {
    position: absolute;
    width: auto;
    min-width: 97px;
    margin-top: 0;
    font-size: 13px;
  }

  #cfdgraph .cfdgraph_label-1 {
    top: 15%;
    right: 0;
    justify-self: auto;
  }

  #cfdgraph .cfdgraph_label-2 {
    top: 41%;
    right: 0;
    justify-self: auto;
  }

  #cfdgraph .cfdgraph_label::before {
    display: block;
    top: 50%;
    bottom: auto;
    left: auto;
    right: calc(100% + 4px);
    width: 17px;
    height: 8px;
    background-image: url("/wcorp/gc/prod/es_ES/estaticos/contratos-diferencia-grafico/images/flecha-1-d.svg?v=20260623");
    transform: translateY(-50%);
  }

  #cfdgraph .cfdgraph_label-2::before {
    background-image: url("/wcorp/gc/prod/es_ES/estaticos/contratos-diferencia-grafico/images/flecha-2-d.svg?v=20260623");
  }

  #cfdgraph .cfdgraph_label::after {
    display: none;
  }

  #cfdgraph .cfdgraph_source {
    margin-top: 24px;
    font-size: 14px;
  }
}
