#delivery-estimator-drawer {
    position: fixed;
    top: -300px; /* Start hidden above the viewport */
    right: 20px; /* Align with button */
    width: 400px; /* or desired width */
    max-width: 95%;
    background: #fff;
    border-bottom: 3px solid #ff4081;
    padding: 20px;
    transition: top 0.3s ease;
    z-index: 9999;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#delivery-estimator-drawer.open {
    top: 80px; /* slide down below the button */
}

#delivery-estimator-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dadada;
    padding: 12px 20px;
    border-radius: 10px;
    padding-to
    color: #fff;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10000;
}
/* Add this until line 46 to Appearance → Customize → Additional CSS */
#delivery-estimator-btn,
#delivery-estimator-drawer {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.fade-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}


#delivery-address {
    width: 100%;          /* full width of drawer */
    max-width: 100%;
    padding: 12px;        /* bigger for easier typing */
    font-size: 16px;      /* easier to read */
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px; /* <-- adds space below the input */
    margin-top: 10px; /* <-- adds space above the input */
}

/* Spinner for delivery calculation */
#delivery-result .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 5px;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}


/* Make autocomplete suggestions appear above the input */
.pac-container {
    z-index: 10500 !important;   /* Ensure above other elements */
}

/* Force the dropdown to appear above */
.pac-container::after {
    content: '';
    display: block;
}

#delivery-address:focus + .pac-container,
input:focus + .pac-container {
    bottom: 100% !important;    /* Position above the input */
    top: auto !important;
}


