﻿#cart-count {
    background-color: #dc3545;
    color: #fff;
    font-size: 0.75em;
    padding: 0.25em 0.6em;
    border-radius: 50%;
    margin-left: 0.25rem;
    display: inline-block;
    min-width: 1.5em;
    text-align: center;
    line-height: 1;
}

.me-1 {
    margin-right: 0.25rem;
}

/* Overlay */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal dialog */
.custom-modal-dialog {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

/* Header */
.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

/* Close button */
.close-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Body */
.custom-modal-body {
    padding: 1rem;
}

/* Footer */
.custom-modal-footer {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    text-align: right;
}

/* Form row */
.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

    .form-row label {
        margin-bottom: 0.5rem;
        font-weight: bold;
    }

.form-input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-btn {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #0d6efd;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

/* Success (green) */
.custom-btn-success {
    background-color: #198754;
    border-color: #198754;
}

    .custom-btn-success:hover {
        background-color: #157347;
        border-color: #146c43;
    }

/* Outline secondary (gray border, white background) */
.custom-btn-outline-secondary {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

    .custom-btn-outline-secondary:hover {
        background-color: #6c757d;
        color: #fff;
    }



.address-list-scroll {
    max-height: 60vh; /* Adjust so header/footer still visible */
    overflow-y: auto;
    overflow-x: hidden;
}
