/* =========================================================
   ChapResto Owner Upload UX - Promotions / Ads
   Load after owner-publications.css and owner CSS.
   ========================================================= */

.owner-publication-form .owner-image-uploader,
.owner-form .owner-image-uploader {
    margin-top: .35rem;
}

.owner-publication-form .owner-uploader-shell,
.owner-publication-form .owner-image-upload-box,
.owner-form .owner-uploader-shell,
.owner-form .owner-image-upload-box {
    border-radius: 22px !important;
}

.owner-publication-preview {
    height: min(420px, 58vh);
    border-radius: 24px;
    background-color: #efe3d3;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(67, 45, 28, .10);
    box-shadow: 0 14px 34px rgba(45, 30, 18, .08);
}

.owner-publication-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, rgba(255,255,255,.55) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,.55) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,.55) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.55) 75%);
    background-size: 22px 22px;
    background-position: 0 0, 0 11px, 11px -11px, -11px 0;
    opacity: .22;
    pointer-events: none;
}

.owner-publication-preview span {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.95);
    color: #c74f16;
    font-size: .72rem;
    font-weight: 1000;
}

.owner-publication-card .owner-publication-image {
    background-size: cover;
}

@media (max-width: 760px) {
    .owner-publication-preview {
        height: 340px;
    }
}

.owner-upload-mode-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: .2rem 0 .75rem;
}

.owner-upload-mode {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 0 .9rem;
    border-radius: 999px;
    border: 1px solid rgba(90, 60, 40, .14);
    background: #fff;
    color: #241d19;
    font-weight: 950;
    cursor: pointer;
}

    .owner-upload-mode.active {
        background: #241d19;
        color: #fff;
        border-color: #241d19;
    }

.owner-upload-preview {
    background: #fff7ef;
}

    .owner-upload-preview img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .owner-upload-preview.crop-fill img {
        object-fit: cover;
    }

    .owner-upload-preview.fit-full img {
        object-fit: contain;
        background: #fff7ef;
    }

    .owner-upload-preview.poster {
        aspect-ratio: 3 / 4;
    }

    .owner-upload-preview.wide {
        aspect-ratio: 3 / 2;
    }

    .owner-upload-preview.square {
        aspect-ratio: 1 / 1;
    }