/* ============================================================
   CHRISTMAS DELIVERY: homepage delivery strips + delivery dates page
   Loaded from inc/misc.php
   ============================================================ */

/* ---------- Delivery strip 1: harlequin wrapping-paper pattern ---------- */
/*
.delivery-strip .section-bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='50'%3E%3Crect width='40' height='50' fill='%23c0304f'/%3E%3Cpolygon points='20,0 40,25 20,50 0,25' fill='%23f6b8bf'/%3E%3C/svg%3E") repeat !important;
  background-position: center center !important;
  background-size: 60px 105px !important;
}
*/
/* Vertical candy stripes */
.delivery-strip .section-bg {
  background: repeating-linear-gradient(
    90deg,
    #c0304f 0 70px,
    #f6b8bf 70px 140px
  ) !important;
  background-size: auto !important;
}

.delivery-strip {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

.delivery-strip .col > .col-inner {
  background: #fff;
  width: fit-content !important;
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 20px 40px !important;
  border-radius: 14px;
  border: none !important;
  box-shadow: 0 6px 18px rgba(80, 0, 20, .35) !important;
}

.delivery-strip .col-inner h4 {
  color: #c0304f !important;
}

.delivery-strip .col-inner .button {
  color: #c0304f !important;
  border-color: #c0304f !important;
}

.delivery-strip .col-inner .button:hover {
  background: #c0304f !important;
  color: #fff !important;
}

@media (min-width: 850px) {
  .delivery-strip {
    height: 150px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .delivery-strip .col > .col-inner {
    max-width: 1100px;
  }

  .delivery-strip .col-inner h4 {
    white-space: nowrap;
  }
}

@media (max-width: 849px) {
  .delivery-strip .col > .col-inner {
    max-width: calc(100% - 40px);
    padding: 18px 24px !important;
  }

  .delivery-strip .section-bg {
    background-size: 32px 56px !important;
  }

  .delivery-strip {
    min-height: 224px;
    display: flex;
    align-items: center;
  }
}

/* ---------- Delivery strip 2: plain background, gift tag only ---------- */

.delivery-strip2 .section-bg {
  background: #f6c6d6 !important; /* pale pink, change to #fff for white */
}

.delivery-strip2 .col > .col-inner {
  background: #fff;
  width: fit-content !important;
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 20px 40px !important;
  border-radius: 14px;
  border: none !important;
  box-shadow: 0 6px 18px rgba(80, 0, 20, .25) !important;
}

.delivery-strip2 .col-inner h4 {
  color: #c0304f !important;
}

.delivery-strip2 .col-inner .button {
  color: #c0304f !important;
  border-color: #c0304f !important;
}

.delivery-strip2 .col-inner .button:hover {
  background: #c0304f !important;
  color: #fff !important;
}

@media (min-width: 850px) {
  .delivery-strip2 {
    height: 150px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .delivery-strip2 .col > .col-inner {
    max-width: 1100px;
  }

  .delivery-strip2 .col-inner h4 {
    white-space: nowrap;
  }
}

@media (max-width: 849px) {
  .delivery-strip2 {
    padding: 28px 0 !important;
  }

  .delivery-strip2 .col > .col-inner {
    max-width: calc(100% - 40px);
    padding: 18px 24px !important;
  }
}

/* ---------- Delivery strip 3: burgundy background, gift tag ---------- */

.delivery-strip3 .section-bg {
  background: #6b1414 !important;
}

.delivery-strip3 .col > .col-inner {
  background: #fff;
  width: fit-content !important;
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 20px 40px !important;
  border-radius: 14px;
  border: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4) !important;
}

.delivery-strip3 .col-inner h4 {
  color: #6b1414 !important;
}

.delivery-strip3 .col-inner .button {
  color: #6b1414 !important;
  border-color: #6b1414 !important;
}

.delivery-strip3 .col-inner .button:hover {
  background: #6b1414 !important;
  color: #fff !important;
}

@media (min-width: 850px) {
  .delivery-strip3 {
    height: 150px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .delivery-strip3 .col > .col-inner {
    max-width: 1100px;
  }

  .delivery-strip3 .col-inner h4 {
    white-space: nowrap;
  }
}

@media (max-width: 849px) {
  .delivery-strip3 {
    padding: 28px 0 !important;
  }

  .delivery-strip3 .col > .col-inner {
    max-width: calc(100% - 40px);
    padding: 18px 24px !important;
  }
}
/* ---------- Delivery strip 4: plain ---------- */
/*
.delivery-strip .section-bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='50'%3E%3Crect width='40' height='50' fill='%23c0304f'/%3E%3Cpolygon points='20,0 40,25 20,50 0,25' fill='%23f6b8bf'/%3E%3C/svg%3E") repeat !important;
  background-position: center center !important;
  background-size: 60px 105px !important;
}
*/
/* Vertical candy stripes */
/*
.delivery-strip4 .section-bg {
  background: repeating-linear-gradient(
    90deg,
    #c0304f 0 70px,
    #f6b8bf 70px 140px
  ) !important;
  background-size: auto !important;
}
*/


.delivery-strip4 .col > .col-inner {
  background: #fff;
  width: fit-content !important;
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 20px 40px !important;
  border-radius: 14px;
  border: none !important;
  box-shadow: 0 6px 18px rgba(80, 0, 20, .35) !important;
}

.delivery-strip4 .col-inner h4 {
  color: #c0304f !important;
}

.delivery-strip4 .col-inner .button {
  color: #c0304f !important;
  border-color: #c0304f !important;
}

.delivery-strip4 .col-inner .button:hover {
  background: #c0304f !important;
  color: #fff !important;
}

@media (min-width: 850px) {
   .delivery-strip4 {
    height: 150px !important;
    padding: 20px 0 0 !important;   /* was: padding: 0 */
    display: flex;
    align-items: center;
	}
}
/* Remove Flatsome's default column/row spacing */
.delivery-strip4 .col {
  padding-bottom: 0 !important;
}
.delivery-strip4 .row {
  margin-bottom: 0 !important;
}

@media (min-width: 1200px) {
  .delivery-strip4 .col > .col-inner {
    max-width: 1100px;
  }

  .delivery-strip4 .col-inner h4 {
    white-space: nowrap;
  }
}

@media (max-width: 849px) {
  .delivery-strip4 .col > .col-inner {
    max-width: calc(100% - 40px);
    padding: 18px 24px !important;
  }

  .delivery-strip4 .section-bg {
    background-size: 32px 56px !important;
  }

  .delivery-strip4 {
    min-height: 224px;
    display: flex;
    align-items: center;
  }
}
/* ---------- Delivery dates page: header ---------- */

@media (min-width: 850px) {
  .dd-hero {
    height: 285px !important; /* 3 rows of 105px diamonds */
  }
}

.dd-hero h1 {
  color: #c0304f !important;
}

.dd-hero .dd-sub {
  color: #555;
  margin: 0;
}

/* ---------- Delivery dates page: last-order tags ---------- */

.dd-tags {
  margin-top: 40px;
}

.dd-tag {
  background: #fff;
  border-radius: 14px;
  padding: 24px 16px;
  box-shadow: 0 6px 18px rgba(80, 0, 20, .2);
  border-top: 6px solid #f6b8bf;
  height: 100%;
}

.dd-tag p {
  margin: 0;
}

.dd-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85em;
  color: #888;
}

.dd-date {
  font-family: "league-spartan", sans-serif;
  font-size: 2em;
  font-weight: 700;
  color: #c0304f;
  margin: 6px 0 10px !important;
}

.dd-services {
  color: #555;
  font-size: .95em;
  line-height: 1.5;
}

.dd-last {
  border-top-color: #c0304f; /* highlight the final deadline */
}

/* ---------- Delivery dates page: full table ---------- */

.dd-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
}

.dd-table th {
  background: #c0304f;
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .85em;
}

.dd-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3d6df;
}

.dd-table tbody tr:nth-child(even) {
  background: #fdf2f6;
}

.dd-table td:last-child {
  font-weight: 700;
  color: #c0304f;
  white-space: nowrap;
}

@media (max-width: 849px) {
  .dd-tag {
    margin-bottom: 16px;
  }

  .dd-tags .dd-tag {
    width: 100%;
    max-width: 320px;
    min-height: 189px;
    margin-left: auto;
    margin-right: auto;
  }

  .dd-table th:nth-child(2),
  .dd-table td:nth-child(2) {
    display: none;
  }

  .dd-tags > .col:last-child {
    padding-bottom: 0;
  }

  .dd-tags .dd-last {
    margin-bottom: 0;
  }

  .dd-table {
    width: calc(100% - 26px);
    margin-top: 30px;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .dd-cta .button {
    margin: 0 4px 10px !important;
    padding: 0 14px;
    font-size: .85em;
  }

  .col:has(> .col-inner > .dd-table),
  .col:has(.dd-table) {
    padding-bottom: 40px;
  }

  .dd-cta h2 {
    margin-top: 0;
  }
}

/* Equal-height tags */
.dd-tags > .col > .col-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dd-tags .dd-tag {
  flex: 1 1 auto;
  height: auto !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Final deadline tag: filled red */
.dd-tag.dd-last {
  background: #c0304f !important;
  border-top-color: #6b1414 !important;
  box-shadow: 0 8px 24px rgba(80, 0, 20, .4) !important;
}

.dd-tag.dd-last .dd-label,
.dd-tag.dd-last .dd-date,
.dd-tag.dd-last .dd-services {
  color: #fff !important;
}

@media (min-width: 850px) {
  .dd-tag.dd-last {
    transform: scale(1.04);
  }

  .dd-tags {
    max-width: 83.333% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.dd-tags .dd-tag {
  width: 100% !important;
  align-self: stretch;
}

/* ---------- Countdown ---------- */

.dd-countdown {
  margin-top: 14px;
}

.dd-cd-label {
  margin: 0 0 8px;
  color: #555;
  font-size: .95em;
}

.dd-cd-label strong {
  color: #c0304f;
}

.dd-cd-units {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dd-cd-units div {
  background: #c0304f;
  color: #fff;
  border-radius: 10px;
  min-width: 64px;
  padding: 8px 6px 6px;
  line-height: 1;
}

.dd-cd-units span {
  display: block;
  font-family: "league-spartan", sans-serif;
  font-size: 1.8em;
  font-weight: 700;
}

.dd-cd-units small {
  display: block;
  margin-top: 4px;
  font-size: .7em;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .85;
}

@media (max-width: 549px) {
  .dd-cd-units {
    gap: 6px;
  }

  .dd-cd-units div {
    min-width: 54px;
  }

  .dd-cd-units span {
    font-size: 1.4em;
  }
}

/* Note: the 83.333% !important rule above still wins on desktop; this applies below 850px */
.dd-tags {
  max-width: 1580px;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Button text: target the inner span too, so Flatsome's light-text styling doesn't override it */
.delivery-strip .col-inner .button,
.delivery-strip .col-inner .button span,
.delivery-strip2 .col-inner .button,
.delivery-strip2 .col-inner .button span {
  color: #c0304f !important;
}

.delivery-strip3 .col-inner .button,
.delivery-strip3 .col-inner .button span {
  color: #6b1414 !important;
}

/* Hover: white text on the filled button */
.delivery-strip .col-inner .button:hover,
.delivery-strip .col-inner .button:hover span,
.delivery-strip2 .col-inner .button:hover,
.delivery-strip2 .col-inner .button:hover span,
.delivery-strip3 .col-inner .button:hover,
.delivery-strip3 .col-inner .button:hover span {
  color: #fff !important;
}
