/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License version 3.0
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */

/* General Styles */
#submitAge {
    margin-top: 20px;
}

.btn_confirm {
    margin-left: 20px;
}

.age_verify_input {
    margin: auto;
    width: 90%;
    max-width: 260px;
    margin-top: 20px;
    text-align: center;
}

.age_verify {
    margin-top: 25px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: 70%;
}

.age_verify_text_content {
    padding-top: 14%;
}

.custom_msg_age_verify {
    text-align: center;
    width: 90%;
    max-width: 70%;
    margin: auto;
    margin-top: 20px;
}

.age_verify_buttons {
    margin-top: 25px;
    text-align: center;
}

.psagechecker-hide {
    display: none;
}

.psagechecker_hide {
    display: block;
}

.deny_msg_age_verify {
    text-align: center;
    width: 90%;
    max-width: 230px;
    margin: auto;
    margin-top: 20px;
}

.logo_age_verify {
    margin-top: 20px;
    text-align: center;
    height: auto;
}

.logo_age_verify img {
    max-height: 100px;
    width: auto;
}

/* Age Verification Inputs using Flexbox */
.age_verify_input {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.age_verify_input .day,
.age_verify_input .month,
.age_verify_input .year {
    flex: 1 1 30%;
    max-width: 100px;
    box-sizing: border-box;
}

/* Lightbox Styles */
#psagechecker_block {
    background: #fff;
    border-radius: 2px;
    margin: 2.5rem auto 1.5rem;
    padding: 3.125rem;
    width: 90%;
    max-width: 1000px;
    box-sizing: border-box;
}

#psagechecker_block .custom_title {
    text-align: center;
    margin-bottom: 15px;
}

#psagechecker_block .desc {
    color: #232323;
    text-align: center;
    margin-bottom: 40px;
}

.preload {
    /* Disable CSS transitions, transforms, and animations */
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

#psagechecker_block .insta-card {
    transition: 0.3s;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    padding-top: 100%;
    margin-bottom: 30px;
}

#psagechecker_block .insta-card:hover {
    opacity: 0.5;
}

#psagechecker_block .insta-card-img {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
}

#psagechecker_block .load-more {
    text-align: center;
}

/* Lightbox */
#psagechecker_block .lightbox {
    position: fixed;
    min-width: 300px;
    min-height: 200px;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background-color: white;
    z-index: 99999;
    border-radius: 4px;
    box-sizing: border-box;
}

#psagechecker_block .lightbox-content {
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

#psagechecker_block .content-left {
    /* Add styles if needed */
}

#psagechecker_block .psagechecker-account-block-mobile {
    padding: 10px;
    display: none;
}

#psagechecker_block .content-right {
    padding: 20px;
}

#psagechecker_block .lightbox-img {
    width: 100%;
    height: auto;
    background-position: center;
    background-size: cover;
}

#psagechecker_block #close {
    position: absolute;
    font-size: 30px;
    top: 10px;
    right: 15px;
    color: #333;
    cursor: pointer;
}

#psagechecker_block .posted,
#psagechecker_block .via {
    font-size: 14px;
    color: #7a7a7a;
}

#psagechecker_block .author {
    color: #232323;
}

#psagechecker_block .text {
    display: -webkit-box;
    margin-top: 20px;
    max-height: 100px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-line;
}

#psagechecker_block .custom-title,
#psagechecker_block .product-image,
#psagechecker_block .product-name {
    text-align: center;
}

#psagechecker_block .price {
    font-size: 20px;
    font-weight: bold;
    color: #232323;
}

#psagechecker_block .product-button {
    text-align: center;
}

#psagechecker_block .product-name {
    margin-top: 10px;
    max-height: 50px;
    overflow: hidden;
}

/* Media Queries for Responsiveness */

/* Tablets and small desktops */
@media only screen and (max-width: 1200px) {
    #psagechecker_block .lightbox {
        width: 80%;
    }
}

/* Large mobiles and tablets */
@media only screen and (max-width: 991px) {
    #psagechecker_block .lightbox {
        width: 90%;
    }

    #psagechecker_block .psagechecker-account-block-mobile {
        display: block;
    }

    #psagechecker_block .psagechecker-account-block {
        display: none;
    }

    #psagechecker_block .lightbox-content {
        overflow-y: auto;
        max-height: 80vh;
    }

    #psagechecker_block .lightbox-img {
        min-height: 250px;
    }
}

/* Small mobiles */
@media only screen and (max-width: 576px) {
    #psagechecker_block .lightbox {
        width: 95%;
    }

    .age_verify_input {
        flex-direction: column;
        gap: 15px;
    }

    .age_verify_input .day,
    .age_verify_input .month,
    .age_verify_input .year {
        max-width: 100%;
    }

    #psagechecker_block #close {
        font-size: 25px;
        top: 5px;
        right: 10px;
    }

    #psagechecker_block .text {
        font-size: 14px;
    }
}

/* Extra small mobiles */
@media only screen and (max-width: 350px) {
    #psagechecker_block .lightbox {
        left: 5%;
        width: 90%;
    }

    #psagechecker_block .lightbox-img {
        min-height: 200px;
    }
}
