/* layout */
html, body { height:100%; margin:0; }

body {
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

/* make only main grow; keep header pieces from shrinking */
.banner,
nav,
footer { 
  flex: 0 0 auto;      /* <-- IMPORTANT */
}

main { 
  flex: 1 0 auto;      /* grows to fill remaining height */
}


.bg-pattern {
  background-image: url('/assets/images/background-tile.svg');
  background-repeat: repeat;
  background-color: rgba(203, 227, 227, 1);
}

.banner {
  width: 100%;
  height: 4rem; /* Mobile height */
  background: url('/assets/images/top-banner-bg.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-decoration: none;
}

.banner-logo {
  height: 85%;
  width: auto;
  display: block;
}

@media (min-width: 992px) {
  .banner {
    height: 7rem;
  }
}


h1.menu-toggle {
  color: #fff;
  margin: 0;
  cursor: pointer;
  font-size: 1.25rem; /* optional tweak */
}

.gift-card-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-card-image {
  width: 100%;
  max-width: 12rem;
  max-height: 15rem;
  height: auto;
  object-fit: contain;
}

.gift-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gift-tile {
  border: none;
  border-radius: 1rem;
  background-color: #ffffff;
}

.gift-tile.shadow-sm {
  box-shadow: 0 0.75rem 2rem rgba(37, 50, 56, 0.08);
}

.gift-tile__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .gift-tile__body {
    flex-direction: row;
    align-items: center;
  }
}

.gift-tile__media {
  width: 140px;
  height: 140px;
  border-radius: 0.5rem;
  background: #f5f7f8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

@media (min-width: 992px) {
  .gift-tile__media {
    width: 170px;
    height: 170px;
  }
}

.gift-tile__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gift-tile__placeholder {
  font-size: 0.85rem;
  text-align: center;
}

.gift-tile__content {
  flex: 1;
  min-width: 0;
}

.gift-tile__merchant {
  font-size: 0.70rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #768692;
}

.gift-tile__title {
  font-weight: 600;
  color: #253238;
  font-size: 1rem;
}

.gift-tile__title a {
  font-weight: 600;
  color: #253238;
  text-decoration: none;
}

.gift-tile__description {
  color: #4b5a64;
}

.gift-tile__link-anchor {
  font-weight: 600;
  color: #146c43;
  text-decoration: none;
}

.gift-tile__link-anchor:hover,
.gift-tile__link-anchor:focus {
  text-decoration: underline;
  color: #0f5132;
}

.gift-tile__link-anchor-claimed {
  font-weight: 600;
  color: #DA291C;
  text-decoration: none;
}

.gift-tile__link-anchor-claimed:hover,
.gift-tile__link-anchor-claimed:focus {
  text-decoration: underline;
  color: #DA291C;
}

.gift-tile__details-link {
  font-weight: 600;
}

.gift-tile__meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 200px;
}

@media (min-width: 768px) {
  .gift-tile__meta {
    align-items: flex-end;
    text-align: right;
  }
}

.gift-tile__status {
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  font-weight: 600;
}

.gift-tile__price {
  font-weight: 700;
  color: #253238;
}

.gift-tile__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gift-tile__claim-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.gift-tile__primary-action,
.gift-tile__secondary-action {
  border-radius: 0.75rem;
  border-width: 1px;
  font-weight: 600;
  padding: 0.6rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gift-tile__primary-action {
  background: #e8f5ec;
  border-color: #198754;
  color: #146c43;
}

.gift-tile__primary-action:hover,
.gift-tile__primary-action:focus {
  background: #d1ebdb;
  color: #0f5132;
}

.gift-tile__secondary-action {
  background: #fdecec;
  border-color: #dc3545;
  color: #b02a37;
}

.gift-tile__secondary-action:hover,
.gift-tile__secondary-action:focus {
  background: #f8d7da;
  color: #842029;
}

.gift-tile--claimed .gift-tile__body {
  /* background: linear-gradient(135deg, rgba(248, 215, 218, 0.2), rgba(255, 255, 255, 0.95)); */
  background-color: rgba(218, 41, 28, 0.1);
  border-radius: 0.75rem;
}

.gift-tile--available .gift-tile__body {
  /* background: linear-gradient(135deg, rgba(222, 247, 227, 0.5), rgba(255, 255, 255, 0.95)); */
  background-color: rgba(222, 247, 227, 0.5);
  border-radius: 0.75rem;
}

.gift-tile__claimer {
  line-height: 1.3;
}

@media (max-width: 575.98px) {
  .gift-tile__meta {
    align-items: stretch;
    text-align: left;
  }

  .gift-tile__status {
    align-self: flex-start;
  }
}

.nhsuk-radios__item {
  font-weight: 400;
  font-size: 16px;
  font-size: 1rem;
  line-height: 1.5;
  clear: left;
  display: block;
  margin-bottom: 8px;
  min-height: 40px;
  padding: 0 0 0 40px;
  position: relative;
}
@media (min-width: 40.0625em) {
  .nhsuk-radios__item {
    font-size: 19px;
    font-size: 1.1875rem;
    line-height: 1.47368;
  }
}
@media print {
  .nhsuk-radios__item {
    font-size: 13pt;
    line-height: 1.25;
  }
}

.nhsuk-radios__item:last-child,
.nhsuk-radios__item:last-of-type {
  margin-bottom: 0;
}

.nhsuk-radios__input {
  cursor: pointer;
  height: 40px;
  left: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 40px;
  z-index: 1;
}

.nhsuk-radios__label {
  cursor: pointer;
  display: inline-block;
  margin-bottom: 0;
  padding: 8px 12px 4px;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

.nhsuk-radios__hint {
  display: block;
  padding-left: 12px;
  padding-right: 12px;
}

.nhsuk-radios__input + .nhsuk-radios__label::before {
  background: #ffffff;
  border: 2px solid #4c6272;
  border-radius: 50%;
  box-sizing: border-box;
  content: "";
  height: 40px;
  left: 0;
  position: absolute;
  top: 0;
  width: 40px;
}

.nhsuk-radios__input + .nhsuk-radios__label::after {
  background: #4c6272;
  border: 10px solid #212b32;
  border-radius: 50%;
  content: "";
  height: 0;
  left: 10px;
  opacity: 0;
  position: absolute;
  top: 10px;
  width: 0;
}

.nhsuk-radios__input:focus + .nhsuk-radios__label::before {
  border: 4px solid #212b32;
  box-shadow: 0 0 0 4px #E50000;
}

.nhsuk-radios__input:checked + .nhsuk-radios__label::after {
  opacity: 1;
}

.nhsuk-radios__input:disabled,
.nhsuk-radios__input:disabled + .nhsuk-radios__label {
  cursor: default;
}

.nhsuk-radios__input:disabled + .nhsuk-radios__label {
  opacity: 0.5;
}

@media (min-width: 40.0625em) {
  .nhsuk-radios--inline::after {
    clear: both;
    content: "";
    display: block;
  }
  .nhsuk-radios--inline .nhsuk-radios__item {
    clear: none;
    float: left;
    margin-right: 24px;
  }
}
.nhsuk-radios--inline.nhsuk-radios--conditional .nhsuk-radios__item {
  float: none;
  margin-right: 0;
}

.nhsuk-radios__divider {
  font-weight: 400;
  font-size: 16px;
  font-size: 1rem;
  line-height: 1.5;
  color: #212b32;
  margin-bottom: 8px;
  text-align: center;
  width: 40px;
}
@media (min-width: 40.0625em) {
  .nhsuk-radios__divider {
    font-size: 19px;
    font-size: 1.1875rem;
    line-height: 1.47368;
  }
}
@media print {
  .nhsuk-radios__divider {
    font-size: 13pt;
    line-height: 1.25;
  }
}

.nhsuk-radios__conditional {
  margin-bottom: 16px;
  border-left: 4px solid #4c6272;
  margin-left: 18px;
  padding-left: 30px;
}
@media (min-width: 40.0625em) {
  .nhsuk-radios__conditional {
    margin-bottom: 24px;
  }
}
.nhsuk-radios__conditional > :last-child {
  margin-bottom: 0;
}

.js-enabled .nhsuk-radios__conditional--hidden {
  display: none;
}

.nhsuk-select {
  font-weight: 400;
  font-size: 16px;
  font-size: 1rem;
  line-height: 1.5;
  background-color: #ffffff;
  border: 2px solid #4c6272;
  box-sizing: border-box;
  color: #212b32;
  height: 2.5rem;
  min-width: 23ex;
  max-width: 100%;
  padding: 4px;
}
@media (min-width: 40.0625em) {
  .nhsuk-select {
    font-size: 19px;
    font-size: 1.1875rem;
    line-height: 1.47368;
  }
}
@media print {
  .nhsuk-select {
    font-size: 13pt;
    line-height: 1.25;
  }
}
.nhsuk-select:focus {
  border: 2px solid #212b32;
  box-shadow: inset 0 0 0 2px;
  outline: 4px solid #E50000;
  outline-offset: 0;
}

.nhsuk-select option:active,
.nhsuk-select option:checked,
.nhsuk-select:focus::-ms-value {
  background-color: #005eb8;
  color: #ffffff;
}

.nhsuk-select--error {
  border: 2px solid #d5281b;
}