/* Address Action Buttons Styling */
.time-schedule-box {
    position: relative;
    transition: all 0.3s ease;
}

.address-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.time-schedule-box:hover .address-actions {
    opacity: 1;
}

.address-actions .btn {
    padding: 5px 8px;
    font-size: 12px;
    margin: 0 2px;
    min-width: auto;
}

.address-actions .btn i {
    font-size: 10px;
}

/* Ensure address content doesn't overlap with buttons */
.time-schedule-box ul {
    padding-right: 80px;
}

/* Selected address styling */
.time-schedule-box.bg-info .address-actions {
    opacity: 1;
}

.time-schedule-box.bg-info .address-actions .btn {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Form error styling */
.invalid-feedback.d-block {
    display: block !important;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Modal specific styles */
#address-area {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

#address-area .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#address-area .login-body-wrapper {
    position: relative !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 20px !important;
}

#address-area .login-body {
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    max-width: 600px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    z-index: 20 !important;
}

/* Responsive modal */
@media (max-width: 768px) {
    #address-area .login-body {
        margin: 10px;
        max-height: 95vh;
    }
}

/* Form loading state */
.submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .address-actions {
        opacity: 1; /* Always show on mobile */
        position: static;
        text-align: right;
        margin-top: 10px;
    }
    
    .time-schedule-box ul {
        padding-right: 0;
    }
    
    .address-actions .btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}