/* GET IT QUICKER box */
#postcode-box.availability-box {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
#postcode-box .availability-header .title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
#postcode-box .availability-body .description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

/* Flex layout for postcode + button */
.postcode-check-wrapper {
  display: flex;
  gap: 0.5rem;
}
.postcode-check-wrapper input {
  flex: 1;
}
.postcode-check-wrapper button {
  white-space: nowrap;
}

#stock-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    transition: opacity 0.3s;
}

#stock-modal {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
	border-radius: 4px;
    z-index: 1000;
    width: 600px;
    max-width: 95%;
}
.stock-modal-content {
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

#stock-modal[style*="display: block"],
#stock-modal.open {
    display: block;
}
#stock-modal-overlay.open {
    display: block;
}

.close-stock-modal {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-weight: bold;
}

.modal-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tab-button {
  width: 48%;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  background: #eee;
  border: none;
  border-radius: 4px;
}

.tab-button.active {
  background: #ccc;
}

.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: block;
}

.modal-postcode-wrapper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.modal-postcode-wrapper input {
  flex: 1;
}
.modal-postcode-wrapper button {
  white-space: nowrap;
}
/* only target the postcode-wrapper inside the modal */
#stock-modal .postcode-check-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}
#stock-modal .postcode-check-wrapper input {
  flex: 1;
}
#stock-modal .postcode-check-wrapper button {
  white-space: nowrap;
}


.hhd-availability-section {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.availability-box {
  background-color: #f0f5fc;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  flex: 1 1 48%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom:5px;
}

.availability-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.availability-header .icon {
  width: 28px;
  height: 28px;
  margin-right: 10px;
}

.availability-header .title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.availability-body {
  font-size: 0.95rem;
}

.availability-body .location-name {
  font-weight: 600;
  margin: 4px 0;
}

.availability-body .store-address {
  color: #666;
  margin-bottom: 6px;
}

.stock-status {
  font-weight: 500;
  margin-bottom: 10px;
}


/* Green for in stock */
.availability-box .stock-status.in {
  color: #2e7d32 !important;
}

/* Grey for low stock or "Order now" */
.availability-box .stock-status.low {
  color: #747474 !important;
}

/* Red for out of stock or online exclusive */
.availability-box .stock-status.out {
  color: #c62828 !important;
}



.stock-msg {
  font-weight: bold;
  margin: 5px 0;
}

/* Green for in stock */
.availability-box .stock-msg.in {
  color: #2e7d32 !important;
}

/* Grey for low stock or "Order now" */
.availability-box .stock-msg.low {
  color: #747474 !important;
}

/* Red for out of stock or online exclusive */
.availability-box .stock-msg.out {
  color: #c62828 !important;
}



a.change-link {
  font-size: 0.9rem;
  color: #0073aa;
  text-decoration: underline;
  cursor: pointer;
}
a.change-link:hover {
  color: #005f8d;
}


/* Product Page Availability Section */

#selected-store-display {
  display: block !important;
  width: 100% !important;
  margin-bottom: 10px;
}


#selected-store-display .availability-box {
  margin-bottom: 10px;
  border: 1px solid #ccc;
  padding: 5px 5px 10px 20px;
  border-radius: 6px;
  background-color: #fafafa;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

#selected-store-display .availability-header {
  display: flex;
  align-items: center; /* Vertically center icon + title */
  gap: 5px; /* Space between icon and title */
  margin-bottom: 5px;
}

#selected-store-display .availability-header .icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

#selected-store-display .availability-header .title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #00205b;
  line-height: 1;
  margin-top: 20px;
}

#selected-store-display p.location-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #00205b;
  line-height: 1;
  margin-top: 5px;
}

#selected-store-display p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: #444;
}

#selected-store-display .stock-status {
  font-weight: 600;
}

#selected-store-display .stock-status.in {
  color: #2d8a34;
}

#selected-store-display .stock-status.out {
  color: #cc0000;
}

#selected-store-display .change-link,
#selected-store-display #check-stock-btn {
  display: inline-block;
  margin-top: 5px;
  margin:bottom: 5px;
  font-size: 0.9rem;
  color: #0073aa;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

#selected-store-display .change-link:hover {
  text-decoration: none;
}

button.select-store-button {
  background-color: #00205b !important;
  color: #FFF             !important;
  border-radius: 4px      !important;
}

/* Optional: hover state */
button.select-store-button:hover {
  background-color: #1D3D72 !important;
}

button.use-postcode-button {
  background-color: #00205b !important;
  color: #FFF             !important;
  border-radius: 4px      !important;
}

/* Optional: hover state */
button.use-postcode-button:hover {
  background-color: #1D3D72 !important;
}

/* Base rounded corners (and optional default look) */
button.tab-button {
  border-radius: 4px !important;
  /* If you want them to share the same base colors as select-store-button, uncomment these:
  background-color: #00205b !important;
  color: #FFF             !important;
  */
}

/* Active/tab-selected state */
button.tab-button.active {
  background-color: #00205c !important;
  color: #FFF             !important;
}

