/* Celebrate Online Live Previewer v2.0.5 - Metallic Graphite devices */

.colp,
.colp * {
    box-sizing: border-box;
}

.colp {
    --colp-navy: #24364c;
    --colp-border: #d7dbe0;
    --colp-bg: #f5f6f7;
    --colp-text: #333940;
    width: 100%;
    max-width: 1500px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid var(--colp-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
    font-family: inherit;
}

/* ---------- Toolbar ---------- */
.colp .colp-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 330px) 1fr auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 76px;
    padding: 11px 16px;
    background: #fff;
    border-bottom: 1px solid #e0e2e5;
    position: relative;
    z-index: 20;
}

.colp .colp-picker {
    width: 100%;
}

.colp .colp-picker-label {
    display: block;
    margin: 0 0 5px 1px;
    color: #4c535c;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.colp .colp-picker-select {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 36px 0 11px;
    border: 1px solid #cbd0d5;
    border-radius: 5px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 14px;
    line-height: 42px;
    cursor: pointer;
    box-shadow: none;
}

.colp .colp-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.colp .colp-tab,
.colp .colp-fullscreen {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    font-family: inherit;
    cursor: pointer;
    box-shadow: none;
    text-shadow: none;
}

.colp .colp-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 92px;
    height: 46px;
    padding: 0 12px;
    border: 0;
    border-left: 1px solid #dfe2e5;
    border-radius: 0;
    background: #fff;
    color: #39414a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.colp .colp-tab:last-child {
    border-right: 1px solid #dfe2e5;
}

.colp .colp-tab:hover {
    background: #f1f3f5;
}

.colp .colp-tab.is-active {
    background: var(--colp-navy);
    color: #fff;
}

.colp .colp-tab-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
}

.colp .colp-tab-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.colp .colp-fullscreen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    justify-self: end;
    height: 42px;
    padding: 0 11px;
    border: 1px solid #cbd0d5;
    border-radius: 5px;
    background: #fff;
    color: #343a40;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.colp .colp-fullscreen:hover {
    background: #f3f4f5;
}

/* ---------- Panes ---------- */
.colp .colp-body {
    width: 100%;
    background: linear-gradient(180deg, #fbfbfc 0%, #f1f3f5 100%);
}

.colp .colp-pane {
    display: none;
    width: 100%;
}

.colp .colp-pane.is-active {
    display: block;
}

/* ---------- Combined fixed canvas ---------- */
.colp .colp-combined-viewport {
    position: relative;
    width: 100%;
    min-height: 1px;
    overflow: hidden;
    background: transparent;
}

.colp .colp-combined-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 1500px;
    height: 700px;
    transform-origin: top left;
    will-change: transform;
}

.colp .colp-combined-slot {
    position: absolute;
}

.colp .colp-slot-desktop {
    left: 35px;
    top: 58px;
    width: 850px;
}

.colp .colp-slot-tablet {
    left: 995px;
    top: 222px;
    width: 300px;
}

.colp .colp-slot-mobile {
    left: 1320px;
    top: 308px;
    width: 150px;
}

/* ---------- Device system ---------- */
.colp .colp-device {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.colp .colp-device-frame {
    position: relative;
    width: 100%;
}

.colp .colp-screen {
    position: relative;
    width: 100%;
    aspect-ratio: var(--colp-screen-ratio);
    overflow: hidden;
    background: #fff;
}

.colp .colp-screen-stage {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    margin: 0;
    padding: 0;
    will-change: transform;
}

.colp .colp-iframe {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    max-width: none !important;
    max-height: none !important;
    background: #fff !important;
}

/* Laptop */
.colp .colp-device-desktop .colp-device-frame {
    padding: 4.4% 4.1% 4.8%;
    border-radius: 18px 18px 8px 8px;
    background: linear-gradient(145deg,
        #c8cdd2 0%,
        #8f979f 12%,
        #555e67 30%,
        #30373e 48%,
        #1f252b 66%,
        #4b545d 82%,
        #171c21 100%
    );
    box-shadow:
        0 20px 38px rgba(0,0,0,.30),
        inset 0 2px 0 rgba(255,255,255,.58),
        inset 2px 0 0 rgba(255,255,255,.18),
        inset -2px -2px 0 rgba(0,0,0,.42),
        inset 0 -10px 18px rgba(0,0,0,.18);
}

.colp .colp-device-desktop .colp-screen {
    box-shadow: 0 0 0 2px #171b1f;
}

.colp .colp-laptop-camera {
    position: absolute;
    z-index: 3;
    top: 1.5%;
    left: 50%;
    width: 5px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #87919a 0%, #343b42 46%, #11161a 100%);
}

.colp .colp-laptop-base {
    position: relative;
    left: -3%;
    width: 106%;
    height: 24px;
    margin-top: -1px;
    border-radius: 2px 2px 24px 24px;
    background: linear-gradient(180deg,
        #b9c0c6 0%,
        #7b848d 18%,
        #444c54 42%,
        #242a30 66%,
        #5b646d 86%,
        #1b2025 100%
    );
    box-shadow:
        0 9px 16px rgba(0,0,0,.28),
        inset 0 2px 0 rgba(255,255,255,.45),
        inset 0 -2px 0 rgba(0,0,0,.35);
}

.colp .colp-laptop-base span {
    position: absolute;
    top: 0;
    left: 41%;
    width: 18%;
    height: 7px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, #555e66 0%, #242a30 100%);
}

/* Tablet */
.colp .colp-device-tablet .colp-device-frame {
    padding: 8.5% 5.8%;
    border-radius: 30px;
    background: linear-gradient(145deg,
        #b9bfc5 0%,
        #7f8891 14%,
        #4b545d 34%,
        #2a3138 54%,
        #1b2026 72%,
        #454e57 88%,
        #151a1f 100%
    );
    box-shadow:
        0 19px 34px rgba(0,0,0,.29),
        inset 0 2px 0 rgba(255,255,255,.52),
        inset 2px 0 0 rgba(255,255,255,.16),
        inset -2px -2px 0 rgba(0,0,0,.40),
        inset 0 -8px 16px rgba(0,0,0,.16);
}

.colp .colp-device-tablet .colp-screen {
    box-shadow: 0 0 0 2px #171b1f;
}

.colp .colp-tablet-camera {
    position: absolute;
    z-index: 3;
    top: 2.7%;
    left: 50%;
    width: 5px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #7e8891 0%, #333a41 48%, #11161a 100%);
}

/* Phone */
.colp .colp-device-mobile .colp-device-frame {
    padding: 12% 5.5% 11%;
    border-radius: 34px;
    background: linear-gradient(145deg,
        #adb4bb 0%,
        #747d86 15%,
        #424b54 36%,
        #252c33 58%,
        #181e24 74%,
        #3e474f 89%,
        #12171b 100%
    );
    box-shadow:
        0 18px 32px rgba(0,0,0,.31),
        inset 0 2px 0 rgba(255,255,255,.48),
        inset 2px 0 0 rgba(255,255,255,.15),
        inset -2px -2px 0 rgba(0,0,0,.42),
        inset 0 -7px 14px rgba(0,0,0,.17);
}

.colp .colp-device-mobile .colp-screen {
    border-radius: 7px;
    box-shadow: 0 0 0 2px #15191d;
}

.colp .colp-phone-speaker {
    position: absolute;
    z-index: 3;
    top: 4.4%;
    left: 37%;
    width: 26%;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #717b84 0%, #2d343a 45%, #171c21 100%);
}

/* ---------- Single device views ---------- */
.colp .colp-single-wrap {
    width: 100%;
    padding: 42px 30px 58px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 520px;
}

.colp .colp-single-desktop .colp-device {
    width: min(1180px, 96%);
}

.colp .colp-single-tablet .colp-device {
    width: min(600px, 90%);
}

.colp .colp-single-mobile .colp-device {
    width: min(390px, 88%);
}

/* ---------- Fullscreen ---------- */
.colp:fullscreen {
    width: 100vw;
    max-width: none;
    height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: auto;
    background: #f1f3f5;
}

.colp:fullscreen .colp-toolbar {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* ---------- Responsive toolbar ---------- */
@media (max-width: 920px) {
    .colp .colp-toolbar {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "picker picker"
            "tabs full";
        gap: 11px 12px;
    }

    .colp .colp-picker {
        grid-area: picker;
        max-width: none;
    }

    .colp .colp-tabs {
        grid-area: tabs;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .colp .colp-fullscreen {
        grid-area: full;
    }
}

@media (max-width: 620px) {
    .colp .colp-toolbar {
        padding: 10px;
    }

    .colp .colp-tab {
        min-width: 78px;
        padding: 0 8px;
    }

    .colp .colp-tab-label {
        font-size: 10px;
    }

    .colp .colp-fullscreen-label {
        display: none;
    }

    .colp .colp-single-wrap {
        padding: 30px 14px 44px;
    }
}

.colp-empty {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 6px;
}
