﻿.addrica-card {
    max-width: 850px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}

.addrica-header {
    background: #ffffff;
    padding: 1.2rem;
    text-align: center;
}

.addrica-logo {
    width: 280px;
    background: white;
    @* background: #000000;
    *@ @* padding: 10px 18px;
    *@ border-radius: 14px;
    margin-bottom: 0.5rem;
}

.addrica-codebar {
    background: #000000;
    color: #f1c40f;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 10px;
    width: 80%;
    margin: 0.8rem auto 1.2rem;
}

.code-icon {
    font-size: 1.8rem;
}

/* Verification status */
.verification-status {
    text-align: center;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 8px;
    margin: 10px auto 20px auto;
    width: 90%;
    font-size: 1.1rem;
}

    .verification-status.verified {
        background: #d4edda;
        color: #155724;
        border: 2px solid #c3e6cb;
    }

    .verification-status.not-verified {
        background: #f8d7da;
        color: #721c24;
        border: 2px solid #f5c6cb;
        font-size: 1.1rem;
    }
/* End Verification status */

.addrica-location-details {
    color: #ffffff;
    background: #2c3e50;
    border-radius: 10px;
    padding: 0.8rem;
    width: 80%;
    margin: 0 auto 1rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.addrica-qr img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.qr-caption {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.addrica-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.map-btn {
    background: #1abc9c;
    color: #ffffff;
    border: none;
    margin-top: 1rem;
}

    .map-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

.share-btn {
    background: #007bff;
    color: #fff;
    border-radius: 6px; /* square edges with slight softness */
    padding: 0.65rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

    .share-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

.email-btn {
    background: #0d6efd;
    color: #fff;
    border-radius: 6px;
    padding: 0.65rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.whatsapp-btn {
    background: #25D366;
    color: #fff;
    border-radius: 6px;
    padding: 0.65rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.sms-btn {
    background: #6c757d;
    color: #fff;
    border-radius: 6px;
    padding: 0.65rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

/* SHARE HEADER */
.share-header {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 20px;
    text-align: center;
}

/* Center the group horizontally */
.share-group {
    display: inline-flex;
    align-items: center;
    gap: 12px; /* space between text + button */
}

/* Title styling */
.share-title {
    font-weight: 700;
    font-size: 1rem;
    color: #000;
}

/* Desktop-only button */
.desktop-otherapps-btn {
    display: inline-flex !important; /* Show on desktop */
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

/* CSS for the popup + button */

.show-mailing-btn {
    margin-top: 12px;
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

/* Popup overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

/* Popup card */
.popup-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 420px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
}

.close-popup-btn {
    margin-top: 20px;
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.copy-btn, .print-btn, .download-btn {
    margin-top: 10px;
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.save-btn {
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    margin: 5px;
}

    .save-btn:hover {
        background: #0069d9;
    }

/* Saved address pop up */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
}

.popup-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    width: 380px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.popup-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.popup-body ul {
    list-style: none;
    padding: 0;
}

.popup-body li {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}
/* End Saved address pop up */

.print-btn {
    background: #198754;
}

.download-btn {
    background: #6f42c1;
}

/* --- Desktop Defaults --- */
.mobile-share-row {
    display: none !important;
}

.desktop-otherapps-btn {
    display: inline-flex !important;
}

/* --- Mobile View Overrides --- */
@media (max-width: 992px) { /* Increased to 992px to capture tablets/large phones */

    .addrica-codebar,
    .addrica-location-details {
        width: 92% !important;
        margin-left: auto;
        margin-right: auto;
    }

    .addrica-logo {
        width: 200px;
    }

    .addrica-qr img {
        width: 160px;
        height: 160px;
    }

    /* 2. Show and Format the Mobile Share Row */
    .mobile-share-row {
        display: flex !important; /* Fixed: Added the missing dot */
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 15px;
        padding: 0 10px;
    }

        /* 3. Button Sizing inside the row */
        .mobile-share-row .share-btn {
            flex: 1 1 40%; /* Allows 2 buttons per line on small screens */
            min-width: 130px;
            padding: 12px 10px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.85rem;
            border: none;
            color: #ffffff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

    /* 4. Mobile Specific Button Colors */
    .whatsapp-btn {
        background-color: #25D366 !important;
    }

    .email-btn {
        background-color: #0d6efd !important;
    }

    .sms-btn {
        background-color: #6c757d !important;
    }

    .mobile-otherapps-btn {
        background-color: #007bff !important;
    }
}