/* Ads Manager Admin */
.ads-manager-wrap * {
    box-sizing: border-box;
}

.ads-manager-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.ads-manager-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ads-manager-head h2,
.ads-manager-section h2 {
    margin: 0 0 10px;
    font-size: 19px;
}

.ads-manager-rows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.ads-manager-card {
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 12px;
    background: #f6f7f7;
}

.ads-field {
    margin-bottom: 12px;
}

.ads-field>label:first-child {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.ads-input {
    width: 100%;
    max-width: 100%;
}

.ads-small-input {
    max-width: 120px;
}

.ads-switch-line {
    display: block;
    font-weight: 600;
}

.ads-radio-field label {
    display: inline-block;
    margin-left: 14px;
    font-weight: 400;
}

.ads-image-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ads-image-field>label {
    width: 100%;
}

.ads-preview {
    width: 52px;
    height: 28px;
    border: 1px solid #ccd0d4;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ads-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ads-clicks-box {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ads-clicks-number {
    font-weight: 700;
    color: #2271b1;
}

.ads-actions {
    margin-bottom: 0;
}

.ads-remove-row {
    color: #b32d2e;
}

.ads-manager-save {
    margin-top: 25px;
}

@media(max-width:782px) {
    .ads-manager-section {
        padding: 12px;
    }

    .ads-manager-head {
        display: block;
    }

    .ads-manager-head h2 {
        margin-bottom: 10px;
    }

    .ads-manager-head .button,
    .ads-manager-save .button {
        width: 100%;
        text-align: center;
    }

    .ads-manager-rows {
        grid-template-columns: 1fr;
    }

    .ads-manager-card {
        padding: 12px;
    }

    .ads-radio-field label {
        margin-left: 10px;
        margin-bottom: 6px;
    }

    .ads-upload-btn,
    .ads-clear-image,
    .ads-reset-clicks,
    .ads-remove-row {
        width: 100%;
        text-align: center;
    }

    .ads-preview {
        width: 46px;
        height: 25px;
    }
}

/* Front: Header Main */


@media(max-width:768px) {

}

/* Front: Top 468 */
#topads {
    width: 98%;
    min-height: 130px;
    padding: 0 1rem;
    display: flex;
    flex-flow: column;
    justify-content: start;
    align-items: center;
    gap: .4rem;
}

.topad-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.topad {
    width: 100%;
    aspect-ratio: 468/60;
    display: flex;
    justify-content: center;
    align-items: center;
}

.topad img {
    width: 100%;
    max-width: 468px;
    aspect-ratio: 468/60;
    display: block;
}

@media(min-width:769px) {
    #topads {
        padding: 1rem;
        flex-flow: row wrap;
        justify-content: space-around;
        gap: 1rem;
        min-height: 60px !important;
    }

    .topad-box {
        width: 40%;
    }

    .topad img {
        width: 468px;
        height: 60px;
    }
}

/* Front: Sticky Mobile */
.footer-ads {
    width: 100%;
    aspect-ratio: 468/60;
    position: fixed;
    bottom: 0;
    right: 0;
    background: #e1e2e1;
    z-index: 99999 !important;
    display: none;
}

.footer-ads div {
    width: 100%;
    position: relative;
    display: flex;
    flex-flow: column;
}

.footer-ads span {
    width: 30px;
    height: 20px;
    position: absolute;
    top: -20px;
    right: 10px;
    background: red;
    color: #fff;
    text-align: center;
    cursor: pointer;
    line-height: 20px;
    z-index: 2;
}

.footer-ads a {
    width: 100%;
    position: absolute;
    top: 0;
    right: 0;
}

.footer-ads a img,
.footer-ads img {
    width: 100%;
    height: 100%;
    display: block;
}

@media(max-width:768px) {
    .footer-ads {
        display: block;
    }
}

/* Front: Content Ad */
.content-ad-box {
    width: 100%;
    margin: 24px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-ad {
    width: 100%;
    max-width: 728px;
    aspect-ratio: 728/90;
    display: block;
}

.content-ad img {
    width: 100%;
    max-width: 728px;
    aspect-ratio: 728/90;
    display: block;
}