/*
 * CHS Hedging Widget CSS Styling
 * Copyright 2023-Present Smithy, Inc
 * License is not given to copy or reuse this code for any purpose other than its intended use for Luckey Farmers, Inc.
 * Including bits from  Bootstrap v5.0.2 (https://getbootstrap.com/)
 * Copyright 2011-2021 The Bootstrap Authors
 * Copyright 2011-2021 Twitter, Inc.
 * Bootstrap Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
@charset "UTF-8";

:root {
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}

#chs-rss {
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-family: 'Barlow Semi Condensed';
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529 !important;
  background-color: inherit;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#chs-rss *, *::before, *::after { box-sizing: border-box; }

#chs-rss h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

#chs-rss h3, .h3 { font-size: calc(1.3rem + 0.6vw); }
#chs-rss h4, .h4 { font-size: calc(1.275rem + 0.3vw); }

@media (min-width: 1200px) {
  #chs-rss h3, .h3 { font-size: 1.75rem; }
  #chs-rss h4, .h4 { font-size: 1.5rem; }
  .modal-xl { max-width: 1140px; }
}

#chs-rss a {
  color: #0d6efd;
  text-decoration: underline;
}

#chs-rss a:hover { color: #0a58ca; }
#chs-rss a:not([href]):not([class]),
#chs-rss a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

#chs-rss p {
  margin-block-start: 0.5rem;
  margin-block-end: 0.5rem;
}

#chs-rss svg { vertical-align: middle; }
#chs-rss button { border-radius: 0; }
#chs-rss button:focus:not(:focus-visible) { outline: 0; }
#chs-rss button {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

#chs-rss button { text-transform: none; }
#chs-rss button, #chs-rss [type='button'] { -webkit-appearance: button; }
#chs-rss button:not(:disabled), #chs-rss [type='button']:not(:disabled) { cursor: pointer; }
#chs-rss ::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

#chs-rss ::-webkit-datetime-edit-fields-wrapper,
#chs-rss ::-webkit-datetime-edit-text,
#chs-rss ::-webkit-datetime-edit-minute,
#chs-rss ::-webkit-datetime-edit-hour-field,
#chs-rss ::-webkit-datetime-edit-day-field,
#chs-rss ::-webkit-datetime-edit-month-field,
#chs-rss ::-webkit-datetime-edit-year-field { padding: 0; }
#chs-rss ::-webkit-inner-spin-button { height: auto; }
#chs-rss ::-webkit-search-decoration { -webkit-appearance: none; }
#chs-rss ::-webkit-color-swatch-wrapper { padding: 0; }
#chs-rss ::file-selector-button { font: inherit; }
#chs-rss ::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}

#chs-rss ul {
  list-style: disc outside !important;
  margin: 0rem 0rem 0rem 2rem !important;
  padding: 0px !important;
}

#chs-rss li { padding-bottom: 0.33rem !important; }
#chs-rss li p { margin: 0px; }
#chs-rss .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--bs-gutter-y) * -1);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  margin-left: calc(var(--bs-gutter-x) * -0.5);
}

#chs-rss .row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

#chs-rss .col { flex: 1 0 0%; }
#chs-rss .col-auto {
  flex: 0 0 auto;
  width: auto;
}

#chs-rss .col-12 {
  flex: 0 0 auto;
  width: 100%;
}

#chs-rss .btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  /* border-radius: 0.25rem; */
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  #chs-rss .btn { transition: none; }
}

#chs-rss .btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#chs-rss .btn:disabled {
  pointer-events: none;
  opacity: 0.65;
}

#chs-rss .btn-light {
  color: #212529 !important;
  background-color: #f8f9fa !important;
  /* Moved to inline style for production */
  border: 1px solid #212529 !important;
}

#chs-rss .btn-light:hover {
  color: #212529 !important;
  background-color: #f9fafb !important;
}

#chs-rss .btn-light:focus {
  color: #212529 !important;
  background-color: #f9fafb !important;
  box-shadow: 0 0 0 0.25rem rgba(211, 212, 213, 0.5);
}

#chs-rss .btn-light:active, .btn-light.active {
  color: #212529 !important;
  background-color: #f9fafb !important;
  /* Moved to inline style for production */
  /* border-color: #212529 !important; */
}

#chs-rss .btn-light:active:focus, .btn-light.active:focus { box-shadow: 0 0 0 0.25rem rgba(211, 212, 213, 0.5); }

#chs-rss .btn-light:disabled {
  color: #212529 !important;
  background-color: #f8f9fa !important;
  /* Moved to inline style for production */
  /* border-color: #212529 !important; */
}

#chs-rss .fade { transition: opacity 0.15s linear; }

@media (prefers-reduced-motion: reduce) {
  #chs-rss .fade { transition: none; }
}

#chs-rss .fade:not(.show) { opacity: 0; }
#chs-rss .card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}

#chs-rss .btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: #000 !important;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center/1em auto no-repeat !important;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.5;
}

#chs-rss .btn-close:hover {
  color: #000;
  text-decoration: none;
  opacity: 0.75;
}

#chs-rss .btn-close:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  opacity: 1;
}

#chs-rss .btn-close:disabled {
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  opacity: 0.25;
}

#chs-rss .modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1060;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

#chs-rss .modal-dialog {
  position: relative;
  width: auto;
  margin: 5.6125rem auto 1.75rem auto;
  pointer-events: none;
}

#chs-rss .modal.show .modal-dialog { transform: none !important; }
#chs-rss .modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

@media (prefers-reduced-motion: reduce) {
  #chs-rss .modal.fade .modal-dialog { transition: none; }
}

#chs-rss .modal-dialog-scrollable { height: calc(100% - 7.5rem); }
#chs-rss .modal-dialog-scrollable .modal-content {
  max-height: 100%;
  overflow: hidden;
}

#chs-rss .modal-dialog-scrollable .modal-body { overflow-y: auto; }
#chs-rss .modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 7.5rem);
}

#chs-rss .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
}

#chs-rss .modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}

#chs-rss .modal-header .btn-close {
  padding: 0.5rem 0.5rem;
  margin: -0.5rem -0.5rem -0.5rem auto;
}

#chs-rss .modal-title {
  margin-bottom: 0;
  line-height: 1.5;
}

#chs-rss .modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

#chs-rss .modal-footer {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: calc(0.3rem - 1px);
  border-bottom-left-radius: calc(0.3rem - 1px);
}

#chs-rss .modal-footer > * { margin: 0.25rem; }

@media (max-width: 576px) {
  #chs-rss .chs-hedging-banner-container {
    scale: 90%;
    font-size: 0.875rem;
  }
}

@media (min-width: 576px) {
  #chs-rss .modal-dialog {
    max-width: 500px;
    margin: 5.6125rem auto 1.75rem auto;
  }

  #chs-rss .modal-dialog-scrollable { height: calc(100% - 7.5rem);}
  #chs-rss .modal-dialog-centered { min-height: calc(100% - 7.5rem);}
}

@media (min-width: 992px) {
  #chs-rss .modal-xl { max-width: 800px; }
}

@-webkit-keyframes spinner-border {
  to { transform: rotate(360deg); }
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

@-webkit-keyframes spinner-grow {
  0% { transform: scale(0); }

  50% {
    opacity: 1;
    transform: none;
  }
}

@keyframes spinner-grow {
  0% { transform: scale(0); }

  50% {
    opacity: 1;
    transform: none;
  }
}

#chs-rss .d-inline-block { display: inline-block !important; }
#chs-rss .position-relative { position: relative !important; }
#chs-rss .position-absolute { position: absolute !important; }
#chs-rss .border { border: 1px solid #dee2e6 !important; }
#chs-rss .justify-content-center { justify-content: center !important; }
#chs-rss .justify-content-between { justify-content: space-between !important; }
#chs-rss .align-items-center { align-items: center !important; }

#chs-rss .mx-0 {
  margin-right: 0 !important;
  margin-left: 0 !important;
}
#chs-rss .mb-0 { margin-bottom: 0 !important; }
#chs-rss .mt-2 { margin-top: 0.5rem !important; }
#chs-rss .mb-3 { margin-bottom: 1rem !important; }

#chs-rss .p-0 { padding: 0 !important; }
#chs-rss .p-3 { padding: 1rem !important; }
#chs-rss .px-0 {
  padding-right: 0 !important;
  padding-left: 0 !important;
}
#chs-rss .px-3 {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
}
#chs-rss .pt-1 { padding-top: 0.25rem !important; }
#chs-rss .pe-0 { padding-right: 0 !important; }
#chs-rss .pb-4 { padding-bottom: 1.5rem !important; }
#chs-rss .ps-3 { padding-left: 1rem !important; }
#chs-rss .text-center { text-align: center !important; }

#chs-rss .mhl-cards-container, #chs-rss .ahl-cards-container { text-align: center; }
#chs-rss .chs-hedging-banner-container {
  height: 7rem;
  margin-bottom: 2rem;
}

#chs-rss .hls-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  align-items: stretch;
  align-content: center;
  gap: 2rem 2rem;
}

#chs-rss .hl-container { flex: 0 1 30rem; }
#chs-rss .hl-cards-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-content: center;
  align-items: stretch;
  gap: 1rem 1rem;
}

/* placeholder container - allow for positioning of the placeholder box divs */
#chs-rss .pcontainer-left {
  display: flex;
  justify-content: flex-start;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

#chs-rss .error-card { animation: fade-in 1.5s; }
#chs-rss .err-msg-row {
  height: 26.625rem;
  justify-content: center;
  align-content: center;
  margin: 0;
}

#chs-rss .placeholder-box-date {
  background-image: linear-gradient(
    to right,
    #cecece,
    #cecece,
    #cecece,
    #cecece,
    #cecece,
    #cecece,
    #cecece,
    #cecece,
    #cecece,
    #ebecf0
  );
  background-size: 900%;
  background-position: 0 0;
  width: 7.25rem;
  height: 1.375rem;
  border-radius: 0px;
  animation: placeholder-animation 1.5s infinite;
}

#chs-rss .placeholder-btn-view {
  background-image: linear-gradient(
    to right,
    #cecece,
    #cecece,
    #cecece,
    #cecece,
    #cecece,
    #cecece,
    #cecece,
    #cecece,
    #cecece,
    #ebecf0
  );
  background-size: 900%;
  background-position: 0 0;
  height: 2.375rem;
  width: 3.65rem;
  border-radius: 0px;
  animation: placeholder-animation 1.5s infinite;
}

@keyframes placeholder-animation {
  0% { background-position: 0 0; }
  100% { background-position: -100% 0; }
}

#chs-rss .hl-card {
  border: 1px solid black !important;
  flex: 0 1 20rem;
  padding: 0.75rem 1rem !important;
  border-radius: unset !important;
}

#chs-rss .hl-date-container {
  text-align: left;
  padding-right: 0px !important;
  padding-left: 0px !important;
}

#chs-rss .hl-view-btn-container { text-align: right !important; }
#chs-rss .btn-view {
  color: white;
  background-color: #008b52 !important;
  border-color: #008b52 !important;
  border-radius: 0px !important;
}

#chs-rss .btn-view:hover {
  color: white;
  background-color: color-mix(in srgb, black 10%, #008b52) !important;
  border-color: color-mix(in srgb, black 10%, #008b52) !important;
}

#chs-rss .btn-view:active {
  color: white;
  background-color: color-mix(in srgb, black 20%, #008b52) !important;
  border-color: color-mix(in srgb, black 20%, #008b52) !important;
}

#chs-rss .btn-view:focus { box-shadow: 0 0 0 0.25rem rgba(0, 139, 82, 0.25) !important; }

#chs-rss .chs-logo-green-bg {
  background-color: #00a82d;
  text-align: center;
  vertical-align: middle;
  height: inherit;
}

#chs-rss .chs-logo-blue-bg {
  background-color: #0033a0;
  text-align: center;
  vertical-align: middle;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  height: inherit;
}

#chs-rss .chs-hi { height: inherit; }
#chs-rss .pe-10p { padding-right: 10% !important; }
