/*
===================================================================================================
TREND
===================================================================================================
*/

@layer trend {

.trend {display: inline-flex; align-items: center; column-gap: var(--spacing-5); padding: var(--trend-pad-y) var(--trend-pad-x); border-radius: var(--radius-6); font-size: var(--trend-font-size); line-height: var(--trend-line-height); white-space: nowrap; font-weight: var(--font-weight-semibold); background: var(--trend-background, transparent); color: var(--trend-color);}

/* ------------- SUB MODULES ------------- */
.trend__fill {display: flex; width: 100%; height: 100%; justify-content: center; align-items: center;}

/* ------------- ELEMENTS ------------- */
.trend .icon {display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 12px; line-height: 0; flex: 0 0 auto; color: var(--trend-icon-color);}
.trend .icon__pointer {width: 16px; height: 16px;}

/* VALUE
**************************************************************************************************/
.trend--value__xs {font-size: var(--font-size-12);}
.trend--value__sm {font-size: var(--font-size-14);}


/*
===================================================================================================
SUB MODULES
===================================================================================================
*/

/* SIZE
**************************************************************************************************/
.trend__xs {
  --trend-pad-y: 5px;
  --trend-pad-x: 10px;
  --trend-font-size: var(--font-size-12);
  --trend-line-height: var(--line-height-120);
}

.trend__sm {
  --trend-pad-y: 5px;
  --trend-pad-x: 10px;
  --trend-font-size: var(--font-size-16);
  --trend-line-height: var(--line-height-120);
}

.trend__md {
  --trend-pad-y: 5px;
  --trend-pad-x: 10px;
  --trend-font-size: var(--font-size-20);
  --trend-line-height: var(--line-height-120);
}

/* COLOR
**************************************************************************************************/
.trend__green {
  --trend-background: var(--color-green-50);
  --trend-color: var(--color-green-600);
  --trend-icon-color: var(--color-green-600);
  --trend-border-text-color: var(--color-blue-800);
}

.trend__red {
  --trend-background: var(--color-red-50);
  --trend-color: var(--color-red-500);
  --trend-icon-color: var(--color-red-500);
  --trend-border-text-color: var(--color-blue-800);
}

.trend__grey {
  --trend-background: var(--color-grey-300);
  --trend-color: var(--color-blue-900);
  --trend-icon-color: var(--color-blue-800);
  --trend-border-text-color: var(--color-blue-800);
}

.trend__light-grey {
  --trend-background: var(--color-grey-200);
  --trend-color: var(--color-blue-900);
  --trend-icon-color: var(--color-blue-800);
  --trend-border-text-color: var(--color-blue-800);
}

.trend__orange {
  --trend-background: var(--color-orange-50);
  --trend-color: var(--color-orange-500);
  --trend-icon-color: var(--color-orange-500);
  --trend-border-text-color: var(--color-blue-800);
}

.trend__blue {
  --trend-background: var(--color-blue-25);
  --trend-color: var(--color-blue-350);
  --trend-icon-color: var(--color-blue-350);
  --trend-border-text-color: var(--color-blue-800);
}


/* OTHER
**************************************************************************************************/
.trend__space-between {justify-content: space-between;}
.trend__w120 {min-width: 120px;}
.trend__border {border: 1px solid var(--color-grey-100); border-radius: var(--radius-8); background: 0; color: var(--trend-border-text-color); font-weight: var(--font-weight-regular); font-size: calc(var(--trend-font-size) - 2px);}
.trend__no-background {--trend-background: transparent; --trend-pad-y: 0; --trend-pad-x: 0;}
.trend__absolute {position: absolute; top: 50%; right: calc(var(--spacing-20) + var(--spacing-10)); transform: translateY(-50%);}
/* RESPONSIVE */
@media screen and (max-width: 640px) {
  .trend__absolute {right: var(--spacing-20);}
}

}
