/* Aramex Rate Popup Wrapper */
#aramex-rate-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* Popup inner box */
#aramex-rate-popup .inner {
    background: #fff;
    width: 360px;
    margin: 6% auto;
    padding: 18px;
    border-radius: 10px;
    position: relative;
    z-index: 99999;
}

/* Close button in popup */
#aramex-rate-popup .close {
    position: absolute;
    right: 10px;
    top: 8px;
    cursor: pointer;
    font-size: 20px;
    border: none;
    background: none;
}

/* Inputs & Select styling */
#aramex-rate-popup input,
#aramex-rate-popup select {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Country dropdown height */
#aramex_country {
    height: 40px;
}

/* Submit button styling */
#aramex-rate-popup button[type="submit"] {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
}

/* Rate Calculator Button on Cart/Product */
.aramex-rate-calc-btn {
    margin-top: 10px;
    display: inline-block;
    padding: 8px 12px;
    cursor: pointer;
}

/* Loading state styling */
#aramex-rate-form button.loading {
    background-color: #004f8c !important;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Rate results list */
#aramex-rate-result ul {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

#aramex-rate-result li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
    border: 1px solid #e2e2e2;
    transition: all 0.2s ease-in-out;
}

#aramex-rate-result li:hover {
    background: #e9f4ff;
    border-color: #b3d7ff;
}

/* Result labels & values */
#aramex-rate-result .label {
    font-weight: 500;
}

#aramex-rate-result .price {
    font-weight: 600;
    color: #007bff;
}

/* Popup heading & result spacing */
.aramex-title {
    text-align: center;
    margin-top: 0;
}

#aramex-rate-result {
    margin-top: 12px;
    text-align: center;
}

/* Fix select dropdown going behind elements */
#aramex-rate-popup select {
    position: relative;
    z-index: 100000 !important;
    background: #fff;
}

/* Button lower z-index so dropdown goes above */
#aramex-rate-popup .action.primary {
    position: relative;
    z-index: 1;
}
