са/* 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 {
  margin-top: 22px;
}

.pj-carryout-panel[hidden] {
  display: none;
}

.pj-carryout-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6e6e1;
}

.pj-carryout-head span {

  background: #eaf5ee;
  border-radius: 999px;
  color: #16713a;
  font-family: Sarabun, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  padding: 6px 11px;
  white-space: nowrap;
}

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

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

.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: center;
  background: #fff;
  border: 1px solid #e2e2dd;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(17, 17, 17, .04);
  color: #1f1f1f;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr auto;
  padding: 16px 18px;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
  width: 100%;
}

.pj-store-option:hover,
.pj-store-option:focus-visible {
  background: #f4faf6;
  border-color: #16713a;
  box-shadow: 0 4px 14px rgba(22, 113, 58, .12);
  outline: none;
}

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

.pj-store-radio {
  align-items: center;
  background: #fff;
  border: 2px solid #b6b6ae;
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  height: 22px;
  justify-content: center;
  transition: border-color .16s ease;
  width: 22px;
}

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

.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: 11px;
  width: 11px;
}

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

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

.pj-store-distance {
  align-self: center;
  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;
}

/* Google Places autocomplete dropdown styled to match the production
   Papa Johns combobox list (white card, rounded-lg, papaGreen-10 hover/active,
   shadow-dropdown, max-h 308px scroll). */
.pj-delivery-reference .pac-container,
.pac-container {
  background: #fff;
  border: 0;
  border-radius: .5rem; /* rounded-lg */
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, .2); /* shadow-dropdown */
  box-sizing: border-box;
  color: rgb(18 20 18); /* text-black-900 */
  font-family: Sarabun, Arial, sans-serif;
  margin-top: 4px;
  max-height: 308px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  z-index: 10000;
}

/* Hide the Google "powered by" logo row so the list matches the reference. */
.pac-container::after {
  display: none;
}

.pac-item {
  background: #fff;
  border: 0;
  color: rgb(18 20 18); /* text-black-900 */
  cursor: pointer;
  font-size: .875rem; /* text-sm */
  line-height: 1.25rem;
  padding: .75rem; /* p-3 */
}

.pac-item:hover,
.pac-item-selected,
.pac-item-selected:hover {
  background: rgb(241 247 245); /* bg-papaGreen-10 */
}

.pac-item-query {
  color: rgb(18 20 18);
  font-size: .875rem;
}

.pac-icon {
  display: none;
}


@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;
  }
}
