h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
}
p {
  margin-top: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
button {
  cursor: pointer;
}

a,
button,
img,
input {
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  color: inherit;
}
:focus {
  outline: none;
}
.visually-hidden {
  position: absolute;
  left: -1000000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/****** Widget ********/
.curs-widget * {
  box-sizing: border-box;
}
.curs-widget {
  display: block;
  position: relative;
  background-color: #fff;
  box-shadow: 0 8px 16px 8px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 24px 16px;
  margin: 24px auto;
  max-width: calc(100% - 32px);

  @media screen and (min-width: 1250px) {
    max-width: 1200px;
    width: calc(100% - 80px);
    margin: 24px 40px;
  }

  @media screen and (min-width: 990px) {
    padding: 24px 32px;
  }
}
.curs-heading {
  font-size: 20px;
}
.curs-date {
  color: #8e8e8e;
  margin-bottom: 16px !important;
}

.curs-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.curs-wrapper > * {
  flex-grow: 0;
  flex-shrink: 0;

  @media screen and (max-width: 990px) {
    flex-basis: 100%;
  }
}
.curs-item {
  position: relative;

  @media screen and (min-width: 990px) {
    flex-basis: 370px;
  }
}
/***** buttons *****/
.curs-buttons {
  position: relative;
  display: flex;
  justify-content: flex-start;
  color: #aaa;
  border: 1px solid #8e8e8e;
  border-radius: 12px;
  margin-bottom: 16px;
}
.curs-buttons > * {
  flex-basis: calc(100% / 7);
}
.curs-buttons > label {
  border-right: 1px solid #8e8e8e;
  padding: 4px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  margin: 0;

  @media screen and (min-width: 990px) {
    font-size: 16px;
    padding: 12px 10px;
  }
}
.curs-buttons > label.first {
  border-radius: 11px 0 0 11px;
}
.select-button {
  position: relative;
  border: none;
  background-color: #f4f4f4;
  padding: 12px;
  border-radius: 0 11px 11px 0;
}
.select-button::after {
  content: "";
  position: absolute;
  top: 0;
  right: 13px;
  width: 12px;
  height: 100%;
  background-image: url(../images/caret-down.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
}
.select-button.open::after {
  transform: rotate(180deg);
}

input[type="radio"]:checked + label {
  background-color: #5878fd;
  color: #fff;
}
.radio-more {
  position: absolute;
  top: 52px;
  right: -1px;
  background-color: #fff;
  border: 1px solid #8e8e8e;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease-out;
  z-index: 1;
  box-shadow: 0 8px 16px 8px rgba(0, 0, 0, 0.15);

  opacity: 0;
  visibility: hidden;
  max-height: 0;
}
.radio-more.open {
  opacity: 1;
  visibility: visible;
  overflow-y: scroll;
  max-height: 500px;
}

.radio-more > label {
  display: block;
  width: 270px;
  font-size: 14px;
  padding: 8px 16px;
  border-bottom: 1px solid #8e8e8e;
  margin: 0;
}
.radio-more > label:last-child {
  border: none;
}

/******** Input value ********/
.input-value {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  border: 1px solid #8e8e8e;
  padding: 16px 24px;
  transition: border 0.3s ease;
  border-radius: 12px;
  
  @media screen and (min-width: 990px) {
    padding: 24px 32px 16px;
  }
}
.input-value:focus-within {
  border: 1px solid #5878fd;
}
.curs-item-heading {
  font-size: 16px;
  margin-bottom: 16px;
}
.input-value .current-value {
  border: none;
  background-color: transparent;
  font-size: 32px;
  line-height: 1;
  color: #000;
  width: calc(100% - 80px);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  margin: 0 0 16px;
  padding: 0;
  
  @media screen and (min-width: 990px) {
    font-size: 36px;
    margin: 0 0 24px;
  }
}
.input-value .current-value:focus {
  border: none;
}
.input-value .current-value::placeholder {
  font-size: 20px;
}
.input-value .current-value::-webkit-input-placeholder {
  font-size: 20px;
}
.input-value .current-value::-moz-placeholder {
  font-size: 20px;
}
.input-value .current-value:-ms-input-placeholder {
  font-size: 20px;
}
.input-value .current-value:-moz-placeholder {
  font-size: 20px;
}

.currency-code {
  font-size: 26px;
  color: #5878fd;
  line-height: 1.3;
}
.input-value .current-rate {
  margin-bottom: 0;
  color: #aaa;
  font-size: 14px;
}

/****** divider ******/
.divider {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: #f4f4f4;
  cursor: pointer;
  
  @media screen and (min-width: 930px) {
    width: 60px;
    height: 60px;
  }
}
.divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/repeat.svg);
  background-size: 30px;
  background-position: center;
  background-repeat: no-repeat;

  @media screen and (max-width: 930px) {
    transform: rotate(90deg);
  }
}
/********* Input date ***********/
.current-bank,
.current-date {
  width: 100%;
  border: 1px solid #8e8e8e;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 16px;
  height: 40px;
  cursor: pointer;
  margin-bottom: 16px !important;
}
.current-bank {
  line-height: 1.3;
  margin-bottom: 0;
}
.current-date {
  color: #5878fd;
  text-align: right;
}
