/* PJDev shared overrides and small progressive-enhancement styles. */

.pj-delivery-reference .pj-fulfillment-btn {
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.pj-delivery-reference .pj-fulfillment-btn:hover,
.pj-delivery-reference .pj-fulfillment-btn:focus {
  box-shadow: 0 0 0 3px rgba(22, 113, 58, .16);
  outline: none;
}

.pj-delivery-reference .pj-fulfillment-btn.is-active {
  background: #16713a;
  border-color: #16713a;
  color: #fff;
  fill: #fff;
}

.pj-delivery-reference .pj-fulfillment-btn:not(.is-active) {
  background: #fff;
  border: 2px solid #1f1f1f;
  color: #1f1f1f;
  fill: #1f1f1f;
}

.pj-delivery-reference [data-address-unit]:disabled {
  cursor: default;
}

.pj-form-status {
  color: #b42318;
  font-family: Sarabun, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  min-height: 20px;
}

.pj-form-status:empty {
  display: none;
}

.pj-form-status.is-muted {
  color: #555;
}

.pj-carryout-panel {
  border-top: 1px solid #d8d8d2;
  margin-top: 6px;
  padding-top: 14px;
}

.pj-carryout-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pj-carryout-head h2 {
  color: #1f1f1f;
  font-family: PapaSans, Sarabun, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-transform: uppercase;
}

.pj-carryout-head span {
  background: #f4f4f2;
  border-radius: 999px;
  color: #555;
  font-family: Sarabun, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px;
  white-space: nowrap;
}

.pj-carryout-head span:empty {
  display: none;
}

.pj-store-results {
  display: grid;
  gap: 10px;
}

.pj-store-empty {
  color: #555;
  font-family: Sarabun, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.pj-store-option {
  align-items: flex-start;
  background: #fff;
  border: 2px solid #d7d7d2;
  border-radius: 8px;
  color: #1f1f1f;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  padding: 14px;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease;
  width: 100%;
}

.pj-store-option:hover,
.pj-store-option:focus {
  border-color: #16713a;
  outline: none;
}

.pj-store-option.is-selected {
  border-color: #16713a;
  box-shadow: 0 0 0 3px rgba(22, 113, 58, .14);
}

.pj-store-radio {
  align-items: center;
  border: 2px solid #777;
  border-radius: 50%;
  display: flex;
  height: 20px;
  justify-content: center;
  margin-top: 2px;
  width: 20px;
}

.pj-store-option.is-selected .pj-store-radio {
  border-color: #16713a;
}

.pj-store-option.is-selected .pj-store-radio::after {
  background: #16713a;
  border-radius: 50%;
  content: "";
  height: 10px;
  width: 10px;
}

.pj-store-title {
  display: block;
  font-family: Sarabun, Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 4px;
  text-transform: uppercase;
  word-break: break-word;
}

.pj-store-meta {
  color: #555;
  display: block;
  font-family: Sarabun, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.pj-store-distance {
  color: #b42318;
  font-family: Sarabun, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.pj-header-location-address {
  max-width: min(56vw, 32rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pac-container {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  z-index: 10000;
}

@media (max-width: 640px) {
  body[data-app="pj-delivery"] header nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body[data-app="pj-delivery"] header nav ul::-webkit-scrollbar {
    display: none;
  }

  body[data-app="pj-delivery"] header nav li {
    flex: 0 0 auto;
  }

  body[data-app="pj-delivery"] header nav li a {
    white-space: nowrap;
  }

  .pj-delivery-reference .pj-fulfillment-btn {
    min-width: 0;
  }

  .pj-delivery-reference .pj-fulfillment-btn svg {
    height: 40px;
    width: 40px;
  }

  .pj-delivery-reference .pj-fulfillment-btn .text-2xl {
    font-size: 20px;
  }

  .pj-store-option {
    grid-template-columns: auto 1fr;
  }

  .pj-store-distance {
    grid-column: 2;
  }
}
