/* SP Download Banner Widget - 3-Column Promotional Grid */

.sp-download-banner {
    width: calc(100% - 40px) !important;
    max-width: 1440px !important;
    margin: 0 auto -100px auto !important;
    padding: 70px 50px !important;
    position: relative;
    overflow: hidden;
    border-radius: 40px !important;
    z-index: 99;
    box-sizing: border-box;
    box-shadow: none !important;
    /* Background set in PHP as linear-gradient */
}
/* Override global Elementor Kit image styles that might add borders/shadows */
.sp-download-banner img,
.sp-download-banner svg {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    padding: 0 !important;
    background: none !important;
}

.sp-download-banner .sp-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.sp-download-banner__wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Col 1: App Download Info */
.sp-db-app-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    flex: 1.5; /* Takes up most space */
    max-width: 600px;
}

/* Col 2: Store Icons Column */
.sp-db-stores-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.sp-db-app-toggles {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px;
    border-radius: 20px;
    width: fit-content;
}

.sp-db-toggle-item {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    opacity: 0.4;
    border: none !important;
    box-shadow: none !important;
}

.sp-db-toggle-item.active {
    background: #ffffff;
    opacity: 1;
}

.sp-db-toggle-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit !important;
}

.sp-app-title {
    font-size: 34px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    font-family: var(--primaryFont);
    line-height: 1.1;
}

.sp-app-desc {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.sp-db-stores-box {
    margin: 0;
}

.sp-db-available-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.sp-db-store-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sp-download-banner .sp-db-store-icons a.sp-db-store-link,
.sp-download-banner .sp-db-store-icons .sp-db-store-circle {
    width: 60px;
    height: 60px;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

.sp-db-store-circle:hover {
    transform: scale(1.1);
}

.sp-db-store-circle svg,
.sp-db-store-circle img {
    width: 100%; 
    height: 100%;
    object-fit: contain;
    background: none !important;
}

/* Col 3: QR Code Box Styling */
.sp-db-qr-col {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

.sp-db-qr-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none !important; /* Removed border per user request */
    box-shadow: none !important;
}

.sp-db-qr-img-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 8px;
    background: #ffffff;
    border-radius: 8px;
    border: none !important;
    box-shadow: none !important;
}

.sp-db-qr-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sp-db-qr-label {
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    margin: 0;
    text-align: center;
    letter-spacing: 0.5px;
}

/* --- Optimized Responsive Section --- */

@media (max-width: 1399px) {
    .sp-download-banner {
        padding: 60px 40px !important;
    }

    .sp-download-banner__wrapper {
        gap: 30px;
    }

    .sp-app-title {
        font-size: 30px;
    }

    .sp-db-service-inner {
        padding: 40px 24px;
    }
}

@media (max-width: 1199px) {
    .sp-download-banner {
        width: calc(100% - 30px) !important;
        margin-bottom: -100px !important; /* Overlap effect for tablet/mobile */
        padding: 50px 30px !important;
    }

    .sp-download-banner__wrapper {
        flex-direction: column !important; /* Stack vertically on tablet */
        align-items: stretch;
        gap: 40px;
    }

    .sp-db-app-col, 
    .sp-db-stores-col {
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
    }

    .sp-db-stores-box {
        text-align: left;
    }

    .sp-db-store-icons {
        justify-content: flex-start;
    }

    .sp-db-qr-col {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    .sp-app-title {
        font-size: 28px;
    }

    .sp-app-desc {
        font-size: 1rem;
    }

    .sp-app-desc {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .sp-download-banner {
        padding: 40px 15px !important;
        border-radius: 30px !important;
        margin-bottom: -110px !important; /* Standardized overlap */
    }

    .sp-download-banner__wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .sp-db-app-col,
    .sp-db-stores-col {
        align-items: center;
        text-align: center;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .sp-db-app-toggles {
        margin-bottom: 5px;
    }

    .sp-db-stores-box {
        text-align: center;
    }

    .sp-db-store-icons {
        justify-content: center;
    }

    .sp-db-qr-col {
        justify-content: center;
        padding-top: 10px;
    }
}

@media (max-width: 480px) {
    .sp-download-banner {
        padding: 40px 15px !important;
    }

    .sp-app-title {
        font-size: 22px;
    }
    .sp-db-qr-img-wrapper {
        width: 160px;
        height: 160px;
    }
}
