/**
 * Add social icons to header
 *
 * @format
 */

.search-social-wrapper {
  display: inline-flex;
  width: 100%;
  gap: 10px;
}

.search-social-wrapper .search {
  flex: 1;
}

.header-social {
  max-width: 100px;
  display: inline-flex;
  align-items: flex-end;
  gap: 9px;
}

.header-social svg {
  width: 42px;
  height: 42px;
}

.header-social svg.insta {
  display: none;
}

.header-social img {
  width: 42px;
  height: 42px;
}

.header-social svg.fb {
  fill: #1877f2;
}

.header-product-guides {
  display: none;
}

.header-product-guides .button {
  background-color: black;
  font-weight: bold;
  border-radius: 2px;
  padding: 12px 16px;
}

.aws-search-result .aws_onsale {
  background: #df1425;
}

.mobile-product-guides .button {
  border-radius: 4px;
  background-color: #e3e3e3;
  color: black;
  padding: 7px 12px;
}

@media only screen and (min-width: 920px) {
  .main-header .header-top > .container {
    grid-gap: 10px;
  }

  .main-header .search-container {
    padding: 15px 3px 0 5px;
  }

  .header-social svg,
  .header-social svg.fb {
    fill: white;
  }

  .header-social img.insta {
    display: none;
  }

  .header-social svg.insta {
    display: block;
  }

  .header-product-guides {
    display: flex;
  }
}

@media only screen and (max-width: 919px) {
  .main-header .mobile-icons li {
    margin-left: 8px;
  }

  .main-header .mobile-icons li a {
    font-size: 12px;
    line-height: 17px;
  }
}

/* Add social icons to delivery guarantee columns section */
.delivery-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.delivery-social__contents {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-right: 15px;
}
.delivery-social a {
  display: block;
}
.delivery-social__icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.delivery-social__icons svg,
.delivery-social__icons img {
  width: 54px;
  height: 54px;
  margin: 0;
}
.delivery-social__icons svg.fb {
  fill: #1877f2;
}

section.delivery-cols-section .col p {
  white-space: nowrap;
}

@media only screen and (max-width: 680px) {
  section.delivery-cols-section .delivery-social__contents {
    justify-content: center;
    flex-direction: row-reverse;
  }

  .delivery-social__icons {
    margin-right: 20px;
  }

  .delivery-social__icons img {
    width: 40px;
    height: 40px;
  }
}

@media only screen and (max-width: 500px) {
  section.delivery-cols-section .delivery-social__contents {
    justify-content: flex-end;
    text-align: left;
  }

  section.delivery-cols-section .delivery-social__icons {
    margin-left: 10px;
  }
}

/** 
 * Extra section layout for open hours - used on the home page
 **/

.open-hours-section.tiles-section {
  padding: 30px 0;
}

.open-hours-section.tiles-section > .container {
  display: block;
}

.open-hours-section .column {
  text-align: center;
  padding: 20px 0;
}

.open-hours-section .column:first-child {
  padding: 20px 0 20px 30px;
}

.open-hours-section .column:last-child {
  padding: 20px 30px 20px 20px;
}

.open-hours-section .column h3 {
  color: white;
  font-weight: 700;
  font-size: 40px;
  line-height: 50px;
  margin: 0;
}

.open-hours-section .column img {
  width: 100%;
  height: auto;
}

.open-hours-section__wrapper {
  display: grid;
  grid-template-columns: 25% auto 25%;
  grid-gap: 30px;
  background: #008539;
}

.open-hours-section__content {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.open-hours-section__open-times {
  color: #ffff04;
  text-align: center;
}

.open-hours-section__open-times-row {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 10px;
}

.open-hours-section__open-times-row span {
  width: 50%;
  text-align: left;
  font-weight: bold;
}

.open-hours-section__open-times-row span:first-child {
  text-align: right;
}

.open-hours-section__footer {
  color: white;
  font-weight: 500;
}

.tiles-section:has(.type-download) .container {
  display: grid;
  /* grid with 4 columns */
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 30px;

  @media only screen and (max-width: 968px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.download-image {
  width: 100%;
}

.download-image img {
  width: 100%;
  height: auto;
  display: block;
}

.tiles-section:has(.type-download) .tile {
  background: transparent;
}

.tiles-section:has(a) .tile {
  cursor: pointer;
}

.tiles-section:has(.type-download) .download-title {
  font-weight: bold;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.tiles-section:has(.type-download) .download-icon {
  width: 30px;
  height: 30px;
  background-image: url('../images/download-icon.svg');
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
}

@media only screen and (max-width: 680px) {
  .tiles-section:has(.type-download) .container {
    grid-template-columns: 1fr;
  }

  .open-hours-section__wrapper {
    display: grid;
    grid-template-columns: auto;
    grid-gap: 0;
  }

  .open-hours-section .column,
  .open-hours-section .column:first-child,
  .open-hours-section .column:last-child {
    padding: 20px;
  }

  .column.open-hours-section__content {
    padding: 0 20px;
  }

  .open-hours-section .column img {
    max-width: 30%;
  }

  .open-hours-section__footer {
    margin-bottom: 10px;
  }
}

.single-post .post-thumbnail img {
  max-width: 1200px;
  max-height: 450px;
  background-size: cover;
  object-fit: cover;
  margin: 15px 0 5px 0;
}
