/* Main Wrapper */
.ax-pincode-wrapper {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    margin: 15px 0;
    transition: all 0.2s ease;
}

/* Input Container & Resetting Shopify's default input borders */
.ax-input-container {
    display: flex;
    align-items: center;
    padding: 12px 16px;
}

.ax-input-container input {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    flex: 1;
    font-size: 16px;
    padding: 0 12px !important;
    background: transparent !important;
    color: #1e293b;
    height: auto !important;
    min-height: unset !important;
    margin: 0 !important;
}

.ax-icon-loc { color: #94a3b8; display: flex; align-items: center; }

/* Gray Loader Styling */
.ax-loader {
    width: 18px;
    height: 18px;
    border: 2.5px solid #e2e8f0; /* Light gray track */
    border-top-color: #64748b;    /* Visible Darker gray spinner */
    border-radius: 50%;
    animation: ax-rotation 0.8s linear infinite;
    display: inline-block;
}

@keyframes ax-rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success & Error Colors */
.ax-success { background-color: #dcecfd; border-color: #152e49; }
.ax-error { background-color: #fff1f2; border-color: #152e49; }

#ax-results {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 12px 16px;
}

.ax-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 14px;
    gap: 12px;
}

.ax-main-left {
    flex: 1;
    min-width: 0;
}

.ax-loc-text {
    font-weight: 400;
    font-size: 12px;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}

.ax-edd-text {
    display: block;
    margin: 0 0 2px 0;
    font-size: 15px;
    color: #475569;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.25;
}

/* Expanded details styling */
.ax-expanded-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #99f6e4;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.ax-expanded-details p { margin: 4px 0; }

.ax-pill-container {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    color: #0d9488;
    font-weight: 600;
}

.ax-sep { color: #cbd5e1; font-weight: normal; }

.ax-toggle-details {
    color: #0d9488;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.ax-error .ax-toggle-details, .ax-error .ax-err-text { color: #e11d48; }

.ax-results-hidden { display: none; }

.ax-err-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #e11d48;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: #e11d48;
}