.cocamar-weather,
.cocamar-weather * {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-sizing: border-box;
}

.cocamar-weather {
  margin-left: auto;
  margin-right: auto;
  max-width: 1400px;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

.cocamar-weather__card {
  align-items: center;
  background: #FAFAFA;
  border-radius: 20px;
  display: flex;
  gap: 0;
  height: 235px;
  justify-content: flex-start;
  overflow: hidden;
  padding: 24px 76px 24px 84px;
  position: relative;
  width: 100%;
}

.cocamar-weather__left {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: clamp(24px, 6.5vw, 101px);
  min-width: 0;
}

.cocamar-weather__icon {
  align-items: center;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.1);
  display: flex;
  flex: 0 0 auto;
  height: 180px;
  justify-content: center;
  width: 180px;
}

.cocamar-weather__icon-img {
  height: 98px !important;
  width: 99px !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: block;
}

.cocamar-weather__icon--rain,
.cocamar-weather__icon--thunder {
  height: 120px !important;
  width: 120px !important;
}

.cocamar-weather__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.cocamar-weather__place {
  line-height: 1;
}

.cocamar-weather__city {
  color: #4a4a49;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cocamar-weather__state {
  color: #4a4a49;
  font-size: 20px;
  font-weight: 400;
  margin-top: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cocamar-weather__date {
  color: #4a4a49;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 34px !important;
  white-space: nowrap;
  overflow: visible;
}

@media (min-width: 1025px) {
  .cocamar-weather__meta {
    max-width: 540px;
    width: auto;
  }
}

.cocamar-weather__right {
  flex: 0 1 445px;
  margin-left: auto;
  min-width: 0;
}

.cocamar-weather__temps {
  align-items: center;
  background: #95c11f;
  border-radius: 10px;
  box-sizing: border-box;
  display: flex;
  height: 100px;
  justify-content: center;
  padding: 0 20px;
  width: 100%;
  max-width: 445px;
  min-width: 0;
}

.cocamar-weather__temp-max,
.cocamar-weather__temp-min {
  color: #ffffff;
  font-size: 61px;
  font-weight: 700;
  line-height: 1;
}

.cocamar-weather__temps-divider {
  background: #ffffff;
  border-radius: 2px;
  display: inline-block;
  height: 71px;
  margin: 0 14px;
  width: 2px;
}

@media (min-width: 1025px) {
  .cocamar-weather__left {
    padding-right: 40px;
  }
}

.cocamar-weather__forecast {
  display: flex;
  justify-content: space-between;
  padding: 18px 76px 0 84px;
  position: relative;
  width: 100%;
}

.cocamar-weather__day {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 90px;
}

.cocamar-weather__day-icon-wrap {
  align-items: center;
  display: flex;
  height: 40px;
  justify-content: center;
}

.cocamar-weather__day-icon {
  height: 31px;
  width: 51px;
}

.cocamar-weather__day-icon-img {
  height: 31px !important;
  width: 51px !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: block;
}

.cocamar-weather__day-icon--rain,
.cocamar-weather__day-icon--thunder {
  height: 40px !important;
  width: 51px !important;
}

.cocamar-weather__day-name {
  color: #95c11f;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.cocamar-weather__day-max {
  color: #4a4a49;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.cocamar-weather__day-min {
  color: #adaebc;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.cocamar-weather__search {
  display: none;
  margin: 0 0 16px 0;
  max-width: 448px;
  position: relative;
}

.cocamar-weather[data-show-search="1"] .cocamar-weather__search {
  display: block;
}

.cocamar-weather__search-input {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 9999px !important;
  color: #4a4a49;
  font-size: 16px;
  height: 50px;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 54px 0 20px;
  width: 100%;
}

.cocamar-weather__search-input::placeholder {
  color: #adaebc;
}

.cocamar-weather__search-button {
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 0;
  width: 40px;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.cocamar-weather__search-button:hover,
.cocamar-weather__search-button:focus,
.cocamar-weather__search-button:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.cocamar-weather__search-icon {
  display: block;
  height: 22px;
  width: 22px;
  background-image: url('../icons/search.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-left: auto;
  margin-right: auto;
}

.cocamar-weather__search-button:focus {
  outline: none;
}

.cocamar-weather__error {
  color: #b91c1c;
  font-size: 14px;
  margin-top: 10px;
  min-height: 18px;
}

.cocamar-weather__skeleton-card,
.cocamar-weather__skeleton-forecast {
  display: none;
  pointer-events: none;
}

.cocamar-weather[data-loading="1"] .cocamar-weather__skeleton-card,
.cocamar-weather[data-loading="1"] .cocamar-weather__skeleton-forecast {
  display: flex;
}

.cocamar-weather[data-loading="1"] .cocamar-weather__card > :not(.cocamar-weather__skeleton-card) {
  opacity: 0;
}

.cocamar-weather[data-loading="1"] .cocamar-weather__forecast > :not(.cocamar-weather__skeleton-forecast) {
  opacity: 0;
}

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

.cocamar-weather__skeleton-card {
  align-items: center;
  background: #FAFAFA;
  border-radius: inherit;
  inset: 0;
  justify-content: space-between;
  padding: inherit;
  position: absolute;
}

.cocamar-weather__skeleton-left {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: clamp(24px, 6.5vw, 101px);
  min-width: 0;
}

.cocamar-weather__skeleton-icon {
  border-radius: 9999px;
  height: 180px;
  width: 180px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);
  background-size: 400% 100%;
  animation: cocamarWeatherShimmer 1.2s ease-in-out infinite;
}

.cocamar-weather__skeleton-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: min(540px, 55vw);
}

.cocamar-weather__skeleton-line {
  border-radius: 9999px;
  height: 16px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);
  background-size: 400% 100%;
  animation: cocamarWeatherShimmer 1.2s ease-in-out infinite;
}

.cocamar-weather__skeleton-line--lg {
  height: 28px;
  width: 70%;
}

.cocamar-weather__skeleton-line--md {
  height: 18px;
  width: 45%;
}

.cocamar-weather__skeleton-line--sm {
  height: 18px;
  width: 55%;
  margin-top: 10px;
}

.cocamar-weather__skeleton-temps {
  border-radius: 10px;
  height: 100px;
  max-width: 445px;
  width: 100%;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);
  background-size: 400% 100%;
  animation: cocamarWeatherShimmer 1.2s ease-in-out infinite;
}

.cocamar-weather__skeleton-forecast {
  align-items: flex-start;
  gap: 12px;
  inset: 0;
  justify-content: space-between;
  padding: inherit;
  position: absolute;
  width: 100%;
}

.cocamar-weather__skeleton-day {
  border-radius: 12px;
  height: 96px;
  width: 90px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);
  background-size: 400% 100%;
  animation: cocamarWeatherShimmer 1.2s ease-in-out infinite;
}

@media (max-width: 1024px) {
  .cocamar-weather__card {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    height: auto;
  }

  .cocamar-weather__skeleton-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    justify-content: flex-start;
  }

  .cocamar-weather__skeleton-left {
    width: 100%;
  }

  .cocamar-weather__skeleton-temps {
    max-width: none;
    width: 100%;
  }

  .cocamar-weather__right {
    flex: 0 0 auto;
    margin-left: 0;
    width: 100%;
  }

  .cocamar-weather__temps {
    max-width: none;
    width: 100%;
  }

  .cocamar-weather__left {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .cocamar-weather {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cocamar-weather__card {
    gap: 12px;
    padding: 14px 20px;
  }

  .cocamar-weather__left {
    gap: 12px;
  }

  .cocamar-weather__icon {
    height: 84px;
    width: 84px;
  }

  .cocamar-weather__skeleton-icon {
    height: 84px;
    width: 84px;
  }

  .cocamar-weather__skeleton-text {
    gap: 8px;
    width: 100%;
  }

  .cocamar-weather__skeleton-line--lg {
    height: 18px;
  }

  .cocamar-weather__skeleton-line--md,
  .cocamar-weather__skeleton-line--sm {
    height: 14px;
  }

  .cocamar-weather__skeleton-line--sm {
    margin-top: 6px;
  }

  .cocamar-weather__icon-img {
    height: 52px !important;
    width: 52px !important;
  }

  .cocamar-weather__icon--rain,
  .cocamar-weather__icon--thunder {
    height: 64px !important;
    width: 64px !important;
  }

  .cocamar-weather__meta {
    gap: 0;
  }

  .cocamar-weather__city {
    font-size: 24px;
  }

  .cocamar-weather__state {
    font-size: 14px;
    margin-top: 6px;
  }

  .cocamar-weather__date {
    font-size: 14px;
    margin-top: 20px !important;
  }

  .cocamar-weather__temps {
    height: 72px;
    padding: 0 16px;
  }

  .cocamar-weather__skeleton-temps {
    height: 72px;
  }

  .cocamar-weather__temp-max,
  .cocamar-weather__temp-min {
    font-size: 36px;
  }

  .cocamar-weather__temps-divider {
    height: 40px;
    margin: 0 12px;
  }

  .cocamar-weather__forecast {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 12px 6px 12px;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #95c11f #e5e7eb;
  }

  .cocamar-weather__skeleton-forecast {
    justify-content: flex-start;
  }

  .cocamar-weather__skeleton-day {
    height: 80px;
    width: 72px;
  }

  .cocamar-weather__forecast::-webkit-scrollbar {
    height: 6px;
  }

  .cocamar-weather__forecast::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 9999px;
  }

  .cocamar-weather__forecast::-webkit-scrollbar-thumb {
    background: #95c11f;
    border-radius: 9999px;
  }

  .cocamar-weather__day {
    flex: 0 0 72px;
    width: 72px;
    gap: 10px;
  }

  .cocamar-weather__day-icon-wrap {
    height: 28px;
  }

  .cocamar-weather__day-icon-img {
    height: 24px !important;
    width: 38px !important;
  }

  .cocamar-weather__day-icon--rain,
  .cocamar-weather__day-icon--thunder {
    height: 28px !important;
    width: 38px !important;
  }

  .cocamar-weather__day-name {
    font-size: 13px;
  }

  .cocamar-weather__day-max,
  .cocamar-weather__day-min {
    font-size: 13px;
  }

  .cocamar-weather__search {
    margin-bottom: 10px;
    max-width: none;
  }

  .cocamar-weather__search-input {
    height: 42px;
    font-size: 14px;
    padding: 0 46px 0 16px;
  }

  .cocamar-weather__search-button {
    height: 42px;
    right: 10px;
  }
}

@media (max-width: 420px) {
  .cocamar-weather__card {
    padding: 12px 18px;
  }

  .cocamar-weather__temps {
    height: 68px;
  }

  .cocamar-weather__temp-max,
  .cocamar-weather__temp-min {
    font-size: 34px;
  }

  .cocamar-weather__day {
    flex-basis: 68px;
    width: 68px;
  }
}

@media (max-width: 360px) {
  .cocamar-weather__temps {
    height: 64px;
  }

  .cocamar-weather__temp-max,
  .cocamar-weather__temp-min {
    font-size: 32px;
  }

  .cocamar-weather__day {
    flex-basis: 64px;
    width: 64px;
  }
}

@media (min-width: 810px) and (max-width: 830px) and (min-height: 1100px) and (max-height: 1200px),
  (min-width: 1100px) and (max-width: 1200px) and (min-height: 810px) and (max-height: 830px) {
  .cocamar-weather {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cocamar-weather__search {
    max-width: none;
    width: 100%;
  }

  .cocamar-weather__card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cocamar-weather__forecast {
    padding-left: 12px;
    padding-right: 12px;
  }
}
