body.postid-16783 .cpc-fs-actions .envelope-positioned {
    top: var(--envelope-y) !important;
    left: var(--envelope-x) !important;
    transform: translate(-50%, -50%) !important;
}
body.postid-16783 .cpc-fs-modal-options {
    top: max(calc(var(--cpc-fs-top, 54px) + 8px), env(safe-area-inset-top)) !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 24px));
    max-height: calc(100dvh - var(--cpc-fs-top, 54px) - 24px);
    border-radius: 15px;
    overflow: hidden;
}
body.postid-16783 .cpc-fs-modal-options .cpc-fs-modal-header { padding: 8px 12px; gap: 7px; }
body.postid-16783 .cpc-fs-modal-options .cpc-fs-modal-header h2 { flex: 1; }
body.postid-16783 .cpc-fs-modal-options .cpc-fs-modal-content { scrollbar-gutter: auto; }
body.postid-16783 .cpc-fs-modal-options .cpc-fs-extra-fields .cpc-preset-field { margin-bottom: 0; }
body.postid-16783 .cpc-fs-modal-options .cpc-preset-label,
body.postid-16783 .cpc-fs-modal-options .cpc-preset-label-text { display: none; }
body.postid-16783 .cpc-fs-modal-options .cpc-fs-modal-content { padding: 8px 12px 12px; }
body.postid-16783 .cpc-fs-modal-options .cpc-vector-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    margin: 0 !important;
    padding: 2px 2px 6px;
}
body.postid-16783 .cpc-fs-modal-options .cpc-vector-thumb {
    flex: 0 0 122px;
    width: 122px !important;
    height: 138px !important;
    min-height: 138px !important;
    padding: 6px !important;
    margin: 0 !important;
    border: 1px solid #dad6cc !important;
    border-radius: 12px !important;
    background: white !important;
    scroll-snap-align: start;
}
body.postid-16783 .cpc-fs-modal-options .cpc-vector-thumb.active,
body.postid-16783 .cpc-fs-modal-options .cpc-vector-thumb[aria-pressed=true] {
    border-color: #217348 !important;
    box-shadow: inset 0 0 0 1px #217348 !important;
}
body.postid-16783 .cpc-fs-modal-options .cpc-vector-thumb img { display: block; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain; }
body.postid-16783 .envelope-design-nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: 12px; }
body.postid-16783 .envelope-design-nav button {
    width: 36px; min-height: 36px; height: 36px; margin: 0; padding: 0;
    border: 1px solid #cec9bc; border-radius: 50%; background: white; color: #215c38; font-size: 24px; line-height: 1;
}
@media (max-height: 690px) {
    body.postid-16783 .cpc-fs-modal-options .cpc-fs-modal-header { padding-block: 4px; }
    body.postid-16783 .cpc-fs-modal-options .cpc-fs-modal-content { padding-block: 4px; }
    body.postid-16783 .envelope-design-nav button { width: 32px; height: 32px; min-height: 32px; }
}
