.zgcam-modal,
.zgcam-modal * {
    box-sizing: border-box;
}

.zgcam-modal-overlay {
    position: fixed;
    z-index: 2147483099;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
  }
  
  .zgcam-modal.is-hidden,
  .zgcam-modal-overlay.is-hidden {
    display: none;
  }

.zgcam-modal {
    --zgcam-primary: #1ab798;
    --zgcam-text: #222222;
    --zgcam-muted: #5a687d;
    --zgcam-border: #eeeeee;
    --zgcam-black: #0a0a0a;

    position: fixed;
    z-index: 2147483100;
    top: 50%;
    left: 50%;
    width: min(960px, calc(100vw - 2rem));
    height: 560px;
    max-width: 960px;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.10),
        0 4px 6px -4px rgba(0, 0, 0, 0.10);
    color: var(--zgcam-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: auto;
}

.zgcam-modal img,
.zgcam-modal svg {
    display: block;
}

.zgcam-modal button,
.zgcam-modal a {
    font: inherit;
}

.zgcam-modal__inner {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.zgcam-modal__left {
    display: flex;
    flex: 0 0 50%;
    min-height: 0;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: var(--zgcam-black);
    color: #ffffff;
}

.zgcam-modal__headline {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.zgcam-modal__headline span {
    color: var(--zgcam-primary);
    font-weight: 500;
}

.zgcam-modal__collage {
    display: flex;
    width: 100%;
    max-height: 240px;
    min-height: 0;
    aspect-ratio: 4 / 3;
    gap: 8px;
}

.zgcam-modal__collage-large {
    position: relative;
    flex: 0 0 48%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.zgcam-modal__collage-grid {
    display: grid;
    flex: 1 1 0;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.zgcam-modal__collage-grid>div {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.zgcam-modal__collage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.zgcam-modal__testimonial {
    margin: auto 0 0;
    padding-top: 4px;
}

.zgcam-modal__testimonial blockquote {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-style: italic;
    line-height: 1.625;
}

.zgcam-modal__testimonial figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.zgcam-modal__person {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.zgcam-modal__person img {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.zgcam-modal__person span {
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zgcam-modal__trustpilot {
    width: auto;
    height: 20px;
    flex: 0 0 auto;
    object-fit: contain;
}

.zgcam-modal__right {
    position: relative;
    display: flex;
    flex: 0 0 50%;
    min-height: 0;
    flex-direction: column;
    overflow-y: auto;
    padding: 32px;
    background: #ffffff;
}

.zgcam-modal__close {
    position: absolute;
    z-index: 50;
    top: 16px;
    right: 16px;
    display: flex;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--zgcam-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--zgcam-muted);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.zgcam-modal__close:hover {
    background: #fafafa;
}

.zgcam-modal__close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.zgcam-modal__right h2 {
    min-height: 30px;
    margin: 0;
    padding: 0;
    color: var(--zgcam-text);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.zgcam-modal__right p {
    margin: 0;
    color: var(--zgcam-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.zgcam-modal__right h2+p {
    padding-top: 16px;
}

.zgcam-modal__right p+p {
    padding-top: 12px;
}

.zgcam-modal__discount {
    width: 100%;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--zgcam-border);
    border-radius: 16px;
}

.zgcam-modal__discount-title {
    margin: 0 0 4px !important;
    color: var(--zgcam-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
}

.zgcam-modal__discount-text {
    margin: 0 0 16px !important;
    color: var(--zgcam-muted) !important;
    font-size: 14px !important;
    line-height: 1.375 !important;
}

.zgcam-modal__code-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zgcam-modal__code {
    display: flex;
    height: 44px;
    min-width: 0;
    flex: 1 1 0;
    align-items: center;
    overflow: hidden;
    padding: 0 16px;
    border: 1px solid var(--zgcam-border);
    border-radius: 8px;
    background: #fafafa;
    color: var(--zgcam-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    line-height: 21px;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: all;
}

.zgcam-modal__copy {
    display: flex;
    height: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--zgcam-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--zgcam-text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.zgcam-modal__copy:hover {
    transform: scale(1.02);
    background: #fafafa;
}

.zgcam-modal__copy:active {
    transform: scale(0.98);
}

.zgcam-modal__copy img {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.zgcam-modal__cta {
    display: inline-flex;
    width: 100%;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--zgcam-primary);
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.zgcam-modal__cta:hover {
    transform: scale(1.02);
    background: #18a98c;
}

.zgcam-modal__cta:active {
    transform: scale(0.98);
}

@media (max-width: 639px) {
    .zgcam-modal {
        right: 16px;
        left: 16px;
        width: auto;
        height: auto;
        max-height: calc(100vh - 2rem);
        transform: translateY(-50%);
        border-radius: 24px;
    }

    .zgcam-modal__left {
        display: none;
    }

    .zgcam-modal__right {
        flex-basis: 100%;
        padding: 24px;
    }

    .zgcam-modal__right h2 {
        padding-right: 48px;
        font-size: 18px;
    }

    .zgcam-modal__code-row {
        flex-direction: column;
        align-items: stretch;
    }

    .zgcam-modal__copy {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .zgcam-modal__copy,
    .zgcam-modal__cta,
    .zgcam-modal__close {
        transition: none;
    }

    .zgcam-modal__copy:hover,
    .zgcam-modal__copy:active,
    .zgcam-modal__cta:hover,
    .zgcam-modal__cta:active {
        transform: none;
    }
}

@media (max-width: 639px) {
    .zgcam-modal__code-row {
      min-height: 100px;
    }
}