/*
Version: 0.2.8

Edit directly:
sudo subl /var/www/html/wp-content/plugins/flytrippers-adhesion-ads/css/style.css
nano /www/flytripperscom_390/public/wp-content/plugins/flytrippers-adhesion-ads/css/style.css

*/

/* Common style */
#ft-ad-banner {
    font-family: Questrial, Arial, sans-serif;
    font-size: 0.9em;
    position: fixed;
    bottom: 0;
    z-index: 998;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border-top:1px solid #ccc;
    color:black;
    text-decoration: none;
}

#ft-ad-content {display: flex;}

#ft-ad-content div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#ft-ad-close {
    z-index: 999;
    padding: 5px;
    cursor: pointer;
    position: absolute;
}

#ft-ad-image-part {
    position: relative;  /* Add this to contain absolutely positioned children */
    overflow: hidden;    /* Prevent image overflow */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    row-gap: 10px;
    height: 100%;
    min-height: 100%;
    padding-bottom: 20px;
}

#ft-ad-main-image-2 {
    position: relative;  /* Change from absolute to relative */
    max-width: 100%;    /* Ensure image doesn't exceed container */
    height: auto;       /* Maintain aspect ratio */
    bottom: 0;          /* Remove the bottom: 50% */
}

#ft-ad-main-image-1 {
    position: relative;  /* Change from absolute to relative */
    max-width: 100%;    /* Ensure image doesn't exceed container */
    height: auto;       /* Maintain aspect ratio */
}

#ft-ad-info-valuation {
    position: relative;  /* Change from absolute to relative */
    /* bottom: 0; */
    width: 100%;        /* Ensure full width */
}

#ft-ad-text-part p {
    padding-bottom:0;
    margin-bottom:0 !important;
}
#ft-ad-text-part sup{font-size:0.5em;}

.ft-ad-button {
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    background-color: #0099ff;
}
.ft-ad-button:hover {
    background-color: #005C99;
}
.ft-ad-button-usa {
    color: #0099ff;
    font-weight: bold;
    text-decoration: underline;
}

#adFomo {
    color:red;
    padding-top:5px;
    font-weight:bold;
}


/* Desktop only style */
@media screen and (min-width: 1201px) {

    #ft-ad-banner {
        height:100px;
        line-height: 1.5em;
    }

    #ft-ad-content {
        width: 1200px;
    }

    #ft-ad-close {
        top: 8px;
        right: 10px;
        font-size: 1.1em;
    }

    #ft-ad-image-part {
        flex: 1;
        min-width: 0;   /* Allow flex item to shrink below content size */
        padding-bottom: 20px;
    }

    #ft-ad-text-part {
        flex: 3;
    }

    #ft-ad-button-part {
        flex: 1;
    }

    #ft-ad-main-image-2 {
        max-height:100px;
    }
    
    #ft-ad-main-image-1 {
        max-height:90px;
    }

    #ft-ad-info-valuation{
        line-height: 1em;
    }

    #ft-ad-info-valuation p{
        padding-bottom: 0.5em;
        font-size: 0.9em;
    }

    #ft-ad-info-valuation p span {
        font-size: 0.6em;
    }
    

    .ft-ad-button {
        padding: 10px 30px;
        border-radius: 6px;
    }

    #adFomo {
        font-size:0.9em;
    }

}


/* Tablet Responsive style */
@media screen and (max-width: 1200px) {

    #ft-ad-banner {
        height:100px;
        line-height: 1.5em;
    }

    #ft-ad-content {
        width: 1200px;
    }

    #ft-ad-close {
        top: 8px;
        right: 10px;
        font-size: 1.1em;
    }

    #ft-ad-image-part {
        flex: 1;
        min-width: 0;   /* Allow flex item to shrink below content size */
        margin-left: 10px;
        padding-bottom: 20px;
    }

    #ft-ad-text-part {
        flex: 3;
    }

    #ft-ad-button-part {
        flex: 1;
        margin-right: 10px;
    }

    #ft-ad-main-image-2 {
        max-height:100px;
    }
    
    #ft-ad-main-image-1 {
        max-height:90px;
    }

    #ft-ad-info-valuation{
        line-height: 1em;
    }

    #ft-ad-info-valuation p{
        padding-bottom: 0.5em;
        font-size: 0.9em;
    }

    #ft-ad-info-valuation p span {
        font-size: 0.6em;
    }
    
    .ft-ad-button {
        padding: 10px 30px;
        border-radius: 6px;
    }

    #adFomo {
        font-size:0.9em;
    }

}

/* Mobile Responsive style */
@media screen and (max-width: 600px) {

    #ft-ad-banner {
        height:62px;
        line-height: 0.8em;
    }
    #ft-ad-content {
        width: 100%;
    }

    #ft-ad-close {
        top: 2px;
        right: 4px;
        font-size: 0.6em;
    }

    #ft-ad-image-part {
        flex: 2;
        min-width: 0;   /* Allow flex item to shrink below content size */
        margin-left: 5px;
        padding-left: 5px;
        padding-right: 2px;
        padding-bottom: 10px;
    }

    #ft-ad-text-part {
        flex: 6;
        margin-left: 3px;
        padding-right: 1px;
    }

    #ft-ad-button-part {
        flex: 2;
    }

    #ft-ad-main-image-2 {
        /*max-height:62px;*/
        max-height:58px;
    }
    
    #ft-ad-main-image-1 {
        max-height:56px;
    }

    #ft-ad-text-part p {
        font-size: 0.8em;
    }

    #ft-ad-info-valuation{
        line-height: 0.6em;
    }

    #ft-ad-info-valuation p{
        font-size: 0.6em;
        padding-bottom: 0.6em;
    }

    #ft-ad-info-valuation p span {
        font-size: 0.5em;
    }
    

    #ft-ad-info-valuation p img{
        height: 1em;
    }

    .ft-ad-button {
        font-size: 0.7em;
        padding: 6px 10px;
        margin-left: 3px;
        margin-right: 3px;
        border-radius: 3px;
        /*background-color: red;*/
    }

    #adFomo {
        font-size:0.7em;
    }
}

#ft-adhesion-ad-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.ft-adhesion-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.ft-adhesion-ad .ad-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.ft-adhesion-ad .ad-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.4;
}

.ft-adhesion-ad .ad-button {
    background: #0099FF;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.ft-adhesion-ad .ad-button:hover {
    background: #005C99;
}

/* Template-specific styles */
.ft-adhesion-ad.card-template {
    background: #f8f9fa;
}

.ft-adhesion-ad.order-template {
    background: #e9ecef;
}

/* Responsive styles */
@media (max-width: 768px) {
    .ft-adhesion-ad {
        padding: 8px 12px;
    }

    .ft-adhesion-ad .ad-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .ft-adhesion-ad .ad-text {
        font-size: 14px;
    }
}

/* Hide on print */
@media print {
    #ft-adhesion-ad-container {
        display: none !important;
    }
}