/**
 * PayNext — fixed visual slots for template + custom uploads.
 * Wrappers define the box; img is scaled with object-fit inside it.
 */
.pn-img-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    line-height: 0;
    vertical-align: middle;
}

.pn-img-slot > img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.pn-img-slot--header-logo {
    width: 160px;
    height: 50px;
}

.pn-img-slot--footer-logo {
    width: 135px;
    height: 32px;
}

.pn-img-slot--brand,
.pn-img-slot--partner-logo {
    width: 152px;
    height: 28px;
}

.pn-img-slot--partner-logo {
    width: 120px;
    height: 36px;
}

.pn-img-slot--icon {
    width: 24px;
    height: 24px;
}

body.theme-paynext .cs_workflow_wrap .cs_iconbox_icon.pn-img-slot,
body.theme-paynext .cs_workflow_wrap .cs_iconbox_icon .pn-img-slot {
    width: 42px;
    height: 42px;
}

body.theme-paynext .cs_workflow_wrap .cs_iconbox_icon .pn-img-slot--icon {
    width: 24px;
    height: 24px;
}

.pn-img-slot--avatar,
.pn-img-slot--blog-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
}

.pn-img-slot--blog-avatar {
    width: 48px;
    height: 48px;
}

.pn-img-slot--avatar > img,
.pn-img-slot--blog-avatar > img,
.pn-img-slot--team > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.pn-img-slot--hero-main,
.pn-img-slot--hero-thumb {
    display: block;
    width: 100%;
}

.pn-img-slot--hero-main > img,
.pn-img-slot--hero-thumb > img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.pn-img-slot--card-lg,
.pn-img-slot--blog-thumb,
.pn-img-slot--content-card {
    display: block;
    width: 100%;
}

.pn-img-slot--card-lg > img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
}

.pn-img-slot--card-mini {
    width: 120px;
    height: 120px;
}

body.theme-paynext .cs_feature_card_thumb .pn-img-slot--card-mini {
    position: absolute;
    right: -17px;
    top: -32px;
    z-index: 1;
}

@media (max-width: 575px) {
    body.theme-paynext .cs_feature_card_thumb .pn-img-slot--card-mini {
        right: 0;
        top: -20px;
        width: 100px;
        height: 100px;
    }
}

.pn-img-slot--blog-thumb > img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 24px;
}

.pn-img-slot--content-card > img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 24px;
}

.pn-img-slot--team {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
}

/* Fallback selectors when wrapper cannot wrap (legacy markup) */
body.theme-paynext .cs_site_branding > img,
body.theme-paynext .cs_site_branding .pn-img-slot {
    max-height: 50px;
    max-width: 160px;
}

body.theme-paynext .cs_hero_brand .pn-img-slot,
body.theme-paynext .cs_hero_brand > img {
    max-height: 28px;
    max-width: 152px;
}

body.theme-paynext .cs_hero_brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

body.theme-paynext .cs_footer .cs_text_widget .pn-img-slot,
body.theme-paynext .cs_footer .cs_text_widget > img {
    max-height: 32px;
    max-width: 135px;
}

body.theme-paynext .cs_testimonial.cs_style_1 .cs_testimonial_meta .pn-img-slot,
body.theme-paynext .cs_testimonial.cs_style_1 .cs_testimonial_meta > img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 50%;
}

body.theme-paynext .cs_feature_card_thumb .cs_lg_img,
body.theme-paynext .cs_feature_card_thumb .pn-img-slot--card-lg > img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

body.theme-paynext .cs_brand .pn-img-slot,
body.theme-paynext .cs_brand_section_style_1 .cs_brand .pn-img-slot {
    width: 120px;
    height: 36px;
}

body.theme-paynext .cs_cta_style_2 .cs_contact_img .pn-img-slot--content-card {
    width: 100%;
    display: block;
}

body.theme-paynext .cs_cta_style_2 .cs_contact_img .pn-img-slot--content-card > img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: cover;
    border-radius: 60px 60px 0 0;
}

body.theme-paynext .cs_value_card .cs_icon .pn-img-slot--icon {
    width: 24px;
    height: 24px;
}
