.bpb-rates {
  --bpb-orange: #f2633f;
  --bpb-orange-dark: #e95734;
  --bpb-ink: #232221;
  --bpb-soft: #f8f7f6;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0 clamp(10px, 3vw, 32px);
  color: var(--bpb-ink);
  /* background: #fff; */
  /* border: 1px solid #eeeae7; */
  /* border-radius: 24px; */
  /* box-shadow: 0 18px 48px rgba(48, 38, 31, .065); */
  font-family: inherit;
}

.bpb-rates::before {
  /* content: ""; */
  position: absolute;
  top: 0;
  right: 0;
  width: 148px;
  height: 112px;
  /* background: #fff7f3; */
  border-radius: 0 24px 0 72px;
  pointer-events: none;
}

.bpb-rates::after {
  /* content: ""; */
  position: absolute;
  top: 32px;
  right: 40px;
  width: 52px;
  height: 54px;
  border-radius: 10px;
  background: var(--bpb-orange);
  opacity: .11;
  -webkit-mask: url("../images/bpb-symbol.svg") center / contain no-repeat;
  mask: url("../images/bpb-symbol.svg") center / contain no-repeat;
  pointer-events: none;
}

.bpb-rates__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  /* padding-right: 76px; */
  margin-bottom: 28px;
}

.bpb-rates__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--bpb-orange);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bpb-rates h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 39px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.bpb-rates__date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 9px 5px 14px;
  color: #5b5551;
  background: transparent;
  border: solid 1px #fdefec;
  border-radius: 9px;
  font-size: 12px;
  white-space: nowrap;
}

.bpb-rates__date span {
  width: 7px;
  height: 7px;
  background: var(--bpb-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(242, 99, 63, .11);
}

.bpb-rates__table {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #e8e4e1;
  border-radius: 18px;
  background: var(--bpb-soft);
}

.bpb-rates__row {
  display: grid;
  grid-template-columns: clamp(110px, 12vw, 110px) repeat(3, minmax(120px, 1fr));
  min-height: 88px;
}

.bpb-rates__row--buy {
  border-bottom: 1px solid #e1ddda;
}

.bpb-rates__row-label,
.bpb-rates__cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bpb-rates__row-label {
  position: relative;
  z-index: 2;
  justify-content: center;
  padding: 0 27px;
  color: #fff;
  font-size: 17px;
  font-weight: 560;
}

.bpb-rates__row-label::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 18px;
  height: 18px;
  background: inherit;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
  z-index: 3;
}

.bpb-rates__row--buy .bpb-rates__row-label {
  background: var(--bpb-orange);
}

.bpb-rates__row--sell .bpb-rates__row-label {
  background: #3f3e3c;
}

.bpb-rates__row--buy .bpb-rates__cell { background: #faf9f8; }
.bpb-rates__row--sell .bpb-rates__cell { background: #f6f5f4; }

.bpb-rates__cell {
  position: relative;
  flex-direction: column;
  padding: 12px 20px;
  border-left: 1px solid #e1ddda;
  transition: background-color .2s ease;
}

.bpb-rates__cell:hover {
  background: #fff !important;
}

.bpb-rates__cell strong {
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
}

.bpb-rates__row--sell .bpb-rates__cell strong {
  color: #45413e;
}

.bpb-rates__currency-code {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -15px;
  min-width: 54px;
  padding: 5px 12px;
  color: var(--bpb-orange);
  background: #fff;
  border: 1px solid #eee7e3;
  border-radius: 999px;
  /* box-shadow: 0 5px 12px rgba(37, 26, 19, .055); */
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
}

.bpb-rates__cell small {
  margin-top: 8px;
  color: #938b86;
  font-size: 10px;
  line-height: 1.2;
  text-transform: capitalize;
}

.bpb-rates__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.bpb-rates__foot:empty {
  display: none;
}

.bpb-rates__foot p {
  margin: 0;
  color: #8b8580;
  font-size: 11px;
}

.bpb-rates__link {
  color: var(--bpb-ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.bpb-rates__link span {
  margin-left: 7px;
  color: var(--bpb-orange);
}

.bpb-rates__link:hover { color: var(--bpb-orange); }
.bpb-rates-empty { padding: 24px; color: #777; background: #f7f7f7; border-radius: 12px; }

@media (max-width: 700px) {
  .bpb-rates { padding: 22px 16px; border-radius: 19px; }
  .bpb-rates::before { width: 92px; height: 72px; border-radius: 0 19px 0 48px; }
  .bpb-rates::after { top: 13px; right: 17px; width: 38px; height: 40px; opacity: .1; }
  .bpb-rates__head {align-items: flex-start;/* padding-right: 58px; */margin-bottom: 22px;}
  .bpb-rates__date { padding: 7px 9px; font-size: 10px; }
  .bpb-rates__table { overflow-x: auto; border-radius: 14px; }
  .bpb-rates__row { grid-template-columns: 82px repeat(3, minmax(104px, 1fr)); min-width: 394px; min-height: 76px; }
  .bpb-rates__row-label { position: sticky; left: 0; z-index: 3; padding: 0 16px; font-size: 14px; }
  .bpb-rates__cell { padding: 10px; }
  .bpb-rates__cell strong { font-size: 17px; }
  .bpb-rates__cell small { font-size: 9px; }
  .bpb-rates__currency-code { bottom: -13px; min-width: 48px; padding: 4px 9px; font-size: 11px; }
}

@media (max-width: 440px) {
  .bpb-rates__head { display: block; }
  .bpb-rates__date { display: inline-flex; margin-top: 12px; }
  .bpb-rates__foot { display: block; }
  .bpb-rates__link { display: inline-block; margin-top: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .bpb-rates__cell { transition: none; }
}


.elementor-widget-loop-carousel:has(
  .swiper-wrapper > .swiper-slide:only-of-type
) .elementor-swiper-button {
  display: none !important;
}