/* IRK Donation Basket: Islamic Relief brand colours, mobile and desktop friendly */
.irk-basket {
  --irk-blue: #0778d4;
  --irk-blue-dark: #223a7b;
  --irk-text: #1a1a1a;
  --irk-line: #4d4d4d;
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 12px;
  vertical-align: middle;
  font-family: inherit;
}
.irk-basket__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.irk-basket__toggle:hover,
.irk-basket.is-open .irk-basket__toggle { border-color: var(--irk-blue); }
.irk-basket__toggle:focus-visible { outline: 3px solid var(--irk-blue); outline-offset: 2px; }
.irk-basket__count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--irk-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.irk-basket__panel {
  position: fixed;
  z-index: 100000;
  width: 360px;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  padding: 24px;
  background: #fff;
  color: var(--irk-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-align: left;
}
.irk-basket__panel[hidden] { display: none; }
.irk-basket__title {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--irk-line);
  font-size: 17px;
  font-weight: 700;
  font-style: italic;
}
.irk-basket__list { margin: 0; padding: 0; list-style: none; }
.irk-basket__line,
.irk-basket__total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.irk-basket__line { padding: 6px 0; font-size: 16px; }
.irk-basket__fund { overflow-wrap: anywhere; }
.irk-basket__amount { white-space: nowrap; }
.irk-basket__more { padding: 4px 0; font-size: 14px; color: #555; }
.irk-basket__total {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 2px solid var(--irk-line);
  font-size: 18px;
  font-weight: 700;
}
.irk-basket__donate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--irk-blue);
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none !important;
}
.irk-basket__donate:hover,
.irk-basket__donate:focus-visible { background: var(--irk-blue-dark); }
.irk-basket__arrow { display: inline-flex; }

/* Upgrading the header's existing basket link */
.irk-basket.irk-basket--existing { margin: 0; }
.irk-basket__toggle--existing { position: relative; width: auto; height: auto; padding: 0; border: 0; }
.irk-basket__toggle--existing .irk-basket__count { top: -10px; right: -12px; }

@media (max-width: 600px) {
  .irk-basket { margin: 0 6px; }
}
