/* Feature Grid / Feature Card Tag Helpers */
.feature-wrapper {
    display: inline-block;
    padding: 1.25rem;
}




.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 20px;
}

@media (max-width: 576px) {
    .feature-wrapper {
        display: block;
        width: 100%;
    }
    .feature-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .feature-card {
        width: fit-content;
    }
}

.feature-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.feature-card .btn {
    min-width: 150px;
    flex-shrink: 0;
    flex-grow: 0;
    height: auto;
    padding: 0.6rem 2rem;
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card-icon img {
    max-width: 100%;
    max-height: 100%;
}

.feature-card-label {
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
}

/* =============================================
   Multi-Select Tag Helper
   ============================================= */


.ms-input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: var(--standard-border-radius);
    font-size: 0.9375rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ms-input:focus {
    outline: none;
    border-color: var(--button-color, #ff8b20);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--button-color, #ff8b20) 22%, transparent);
}

.ms-input::placeholder {
    color: #9ca3af;
}

.ms-search {
    position: relative;
}

.ms-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9ca3af;
    pointer-events: none;
}

/* Options List */
.ms-list {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow-y: auto;
    margin-top:5px;
}

.ms-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.ms-option:last-of-type {
    border-bottom: none;
}

.ms-option:hover {
    background: #f9fafb;
}

.ms-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ms-option.hidden {
    display: none;
}

.ms-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.ms-option.selected .ms-checkbox {
    background-color: var(--button-color, #ff8b20);
    background-image: none;
    border-color: var(--button-color, #ff8b20);
}

.ms-checkbox svg {
    width: 12px;
    height: 12px;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.15s ease;
}

.ms-option.selected .ms-checkbox svg {
    opacity: 1;
    transform: scale(1);
}

.ms-label {
    flex: 1;
    color: #374151;
}

.ms-option.selected .ms-label {
    color: #1f2937;
    font-weight: 500;
}

.ms-no-results {
    padding: 1.5rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    display: none;
}

.ms-no-results.visible {
    display: block;
}

/* Selected Tags */
.ms-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
 
}

.ms-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background-color: var(--button-color);
    background-image: none;
    color: #fff;
    padding: 0.375rem 0.5rem 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    animation: msTagPop 0.2s ease;
    margin-top: 0.25rem;
}

@keyframes msTagPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ms-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
    font-size: 0.75rem;
    line-height: 1;
}

.ms-tag-remove:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.ms-tags-empty {
    color: #9ca3af;
    font-size: 0.8125rem;
    font-style: italic;
    padding: 0.25rem 0;
}

/* Hidden select for form submission */
.ms-hidden-select {
    display: none;
}

/* =============================================
   Multi-Select DROPDOWN Mode
   ============================================= */

.ms-dropdown .ms-search {
    margin-bottom: 0;
}

.ms-dropdown .ms-input {
    padding-right: 2.5rem;
    cursor: pointer;
}

.ms-dropdown .ms-chevron {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #6b7280;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.ms-dropdown.open .ms-chevron {
    transform: translateY(-50%) rotate(180deg);
}

.ms-dropdown .ms-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    margin-top: 4px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

.ms-dropdown.open .ms-list {
    display: block;
    animation: msSlideDown 0.15s ease;
}

@keyframes msSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   JSON Display - Textarea with Copy Button
   ============================================= */

.json-display-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
}

.integration-response-display-box {
    font-family: 'Inter', 'Helvetica' !important;
    font-size: 14px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    resize: vertical;
    min-height: 60px;
    max-height: 300px;
    width: 100%;
    overflow-y: auto;
    cursor: default;
    white-space: pre;
    line-height: 1.6 !important;
    min-width: 300px;
}

.integration-response-display-box:focus {
    outline: 2px solid #ff8b20;
    outline-offset: 1px;
    background-color: #fafafa;
}

.copy-button {
    position: relative;
    background: var(--button-color, var(--orange));
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background: #ff9f45;
    transform: scale(1.05);
}

.copy-button.copied::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.copy-button.copied {
    background: #28a745;
}

.json-empty {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* =============================================
   Date Format Display
   ============================================= */

.formatted-date,
.formatted-datetime,
.formatted-time {
    color: #333;
    cursor: help;
}

.formatted-date:hover,
.formatted-datetime:hover,
.formatted-time:hover {
    text-decoration: underline;
    text-decoration-style: dotted;
}

.date-empty {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* =============================================
   Expandable Container Tag Helper
   ============================================= */

.expandable-container {
    margin-top: 0.5rem;
}
.expandable-content-inner a {
    color: var(--black) !important;
    text-decoration: underline;
}

.expandable-label {
    font-weight: normal !important;
    color: var(--black) !important;
    font-size: var(--main-text-semi-bold-font-size) !important;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: inline;
    margin: 0;
    box-shadow: none;
}

/* Collapsed: label reads as body copy (black). Expanded: keep default secondary link tone. */
.expandable-label[aria-expanded="false"] {
    color: #000;
}

.expandable-label:hover {
    color: black;
    text-decoration: underline;
    background: none !important;
    border: none !important;
    transform: none !important;
}

.expandable-label:focus {
    color: var(--bs-secondary, #5a6268);
    text-decoration: underline;
    outline: none;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.expandable-label:active {
    color: var(--bs-secondary, #5a6268) !important;
    background: none !important;
    border: none !important;
    transform: none !important;
}

.expandable-label[aria-expanded="false"]:focus {
    color: #000;
}

.expandable-label[aria-expanded="false"]:active {
    color: #000 !important;
}

.expandable-content {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
    transition:
        grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        margin-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-content.expanded {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 20px;
}

.expandable-content-inner {
    min-height: 0;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .expandable-content {
        transition: none;
    }
}

/* =============================================
   Email Input Tag Helper
   ============================================= */

.email-input-container {
    margin-top: .1rem;
}

.email-input-wrapper {
    position: relative;
}

.email-textarea,
.email-input {
    width: 100%;
    margin-bottom: 0.5rem;
}

.email-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    min-height: 32px;
    max-height: 180px;
    overflow: auto;
    padding-right: 0.25rem;
}

.email-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background-color: var(--button-color, #ff8b20);
    background-image: none;
    color: #fff;
    padding: 0.375rem 0.5rem 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    animation: emailTagPop 0.2s ease;
    box-shadow: none;
}

/* List Input Tag Helper - Clear button alignment */
.listinput-clearbtn {
    height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
}

/* =============================================
   Form Group Textarea Min Heights
   ============================================= */

/* =============================================
   HTML editor with live preview (Direct Mail)
   ============================================= */

.html-editor-with-preview .html-editor-row {
    display: grid;
    grid-template-columns: var(--html-editor-code-column, 1fr) var(--html-editor-preview-column, 1fr);
    grid-auto-rows: minmax(0, var(--html-editor-pane-height, 22rem));
    gap: 1rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .html-editor-with-preview .html-editor-row {
        grid-template-columns: 1fr;
    }

    /* On phone, show preview above editor */
    .html-editor-with-preview .html-preview-wrap {
        order: 1;
    }

    .html-editor-with-preview .html-editor-code-wrap {
        order: 2;
    }
}

/* Shared height: editor content area matches preview iframe area */
.html-editor-with-preview {
    --html-editor-header-height: 2.5rem;
    --html-editor-code-column: 1fr;
    --html-editor-preview-column: 1fr;
    --html-editor-pane-height: 22rem;
}

.html-editor-code-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    min-height: 14rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.375rem;
    overflow: hidden;
}

.html-editor-code-wrap-spacer {
    flex-shrink: 0;
    height: var(--html-editor-header-height);
}

.html-editor-code-editor-row {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.html-editor-line-numbers {
    flex-shrink: 0;
    width: 3.5rem;
    min-height: 0;
    padding: 0.375rem 0.25rem;
    overflow-y: hidden;
    overflow-x: hidden;
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--bs-secondary-color, #6c757d);
    text-align: right;
    user-select: none;
    border-right: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-light, #f8f9fa);
    /* height set by JS to match textarea so they stay in sync when resized */
}

.html-editor-line-numbers > div {
    line-height: 1.5;
    padding-right: 0.5rem;
}

.html-editor-code-wrap .html-editor-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none !important;
    min-height: 0;
    height: 100%;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    overflow-y: auto;
}

.html-editor-with-preview .html-editor-input {
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: none;
}

.html-preview-wrap {
    display: flex;
    flex-direction: column;
    min-height: 14rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.375rem;
    background: #fff;
    overflow: hidden;
}

.html-preview-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
    min-height: var(--html-editor-header-height, 2.5rem);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-secondary-color, #6c757d);
    background: var(--bs-light, #f8f9fa);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

/* Enlarge preview button - size only */
.html-preview-enlarge-btn {
    height: 2rem;
    flex: 0 0 auto;
    width: max-content;
    max-width: 8rem;
    padding: 0 1rem;
    font-size: 0.8125rem;
    line-height: 2rem;
}

/* Enlarge preview overlay - sits on top of existing modal without closing it */
.html-preview-enlarge-overlay {
    --html-preview-modal-width: 100%;
    --html-preview-modal-max-width: 90vw;
    --html-preview-modal-height: calc(100vh - 2rem);
    --html-preview-modal-max-height: 90vh;
    --html-preview-image-max-width: 75vw;
    --html-preview-image-max-height: 75vh;
    --html-preview-image-content-width: auto;
    --html-preview-image-content-height: auto;
    position: fixed;
    inset: 0;
    z-index: 1070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

.html-preview-enlarge-overlay[aria-hidden="false"] {
    pointer-events: auto;
}

.html-preview-enlarge-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.5);
}

.html-preview-enlarge-panel {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    max-width: var(--html-preview-modal-max-width);
    width: var(--html-preview-modal-width);
    height: var(--html-preview-modal-height);
    max-height: var(--html-preview-modal-max-height);
    background: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.html-preview-enlarge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-light, #f8f9fa);
    flex-shrink: 0;
}

.html-preview-enlarge-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.html-preview-enlarge-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: var(--html-preview-enlarge-code-column, 50%) var(--html-preview-enlarge-preview-column, 50%);
    overflow: hidden;
}

.html-preview-enlarge-overlay {
    --html-preview-enlarge-code-column: 50%;
    --html-preview-enlarge-preview-column: 50%;
}

/* Shared preview modal in image mode (reuse HTML preview modal) */
.html-preview-enlarge-overlay--image .html-preview-enlarge-editor-wrap {
    display: none;
}

.html-preview-enlarge-overlay--image .html-preview-enlarge-body {
    display: block;
    grid-template-columns: 1fr;
}

.html-preview-enlarge-overlay--image .html-preview-enlarge-panel {
    width: min(var(--html-preview-image-content-width), var(--html-preview-image-max-width));
    max-width: var(--html-preview-image-max-width);
    height: auto;
    max-height: var(--html-preview-image-max-height);
}

.html-preview-enlarge-overlay--image .html-preview-enlarge-preview-wrap {
    width: min(var(--html-preview-image-content-width), var(--html-preview-image-max-width));
    max-width: var(--html-preview-image-max-width);
    min-height: 0;
}

.html-preview-enlarge-overlay--image .html-preview-enlarge-preview-label {
    display: none;
}

.html-preview-enlarge-overlay--image .html-preview-enlarge-iframe {
    width: min(var(--html-preview-image-content-width), var(--html-preview-image-max-width));
    height: min(var(--html-preview-image-content-height), var(--html-preview-image-max-height));
    min-height: 0;
    flex: 0 0 auto;
    background: #f5f5f5;
}

@media (max-width: 768px) {
    /* On phone, stack enlarged preview above editor */
    .html-preview-enlarge-body {
        grid-template-columns: 1fr;
    }

    .html-preview-enlarge-preview-wrap {
        order: 1;
        min-height: 40vh;
    }

    .html-preview-enlarge-editor-wrap {
        order: 2;
        min-height: 40vh;
        border-right: 0;
        border-top: 1px solid var(--bs-border-color, #dee2e6);
    }
}

.html-preview-enlarge-editor-wrap {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--bs-border-color, #dee2e6);
    overflow: hidden;
}

.html-preview-enlarge-code-editor-row {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.html-preview-enlarge-line-numbers {
    flex-shrink: 0;
    width: 4rem;
    min-height: 0;
    padding: 0.375rem 0.25rem;
    overflow-y: hidden;
    overflow-x: hidden;
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--bs-secondary-color, #6c757d);
    text-align: right;
    user-select: none;
    border-right: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-light, #f8f9fa);
}

.html-preview-enlarge-line-numbers > div {
    line-height: 1.5;
    padding-right: 0.5rem;
}

.html-preview-enlarge-editor-wrap .html-preview-enlarge-editor {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none !important;
    min-height: 0;
    height: 100%;
    border: none;
    border-radius: 0;
    padding: 0.5rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.html-preview-enlarge-editor {
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: none;
}

.html-preview-enlarge-preview-wrap {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.html-preview-enlarge-preview-label {
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-secondary-color, #6c757d);
    background: var(--bs-light, #f8f9fa);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.html-preview-enlarge-iframe {
    flex: 1;
    min-height: 0;
    width: 100%;
    border: none;
    background: #fff;
}

/* Help modal overlay - same visual pattern as image preview overlay */
.html-help-overlay {
    --html-help-modal-max-width: 90vw;
    --html-help-modal-max-height: 90vh;
    position: fixed;
    inset: 0;
    z-index: 1070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

.html-help-overlay[aria-hidden="false"] {
    pointer-events: auto;
}

.html-help-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.5);
}

.html-help-panel {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    max-width: var(--html-help-modal-max-width);
    width: 100%;
    max-height: var(--html-help-modal-max-height);
    background: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.html-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-light, #f8f9fa);
    flex-shrink: 0;
}

.html-help-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.html-help-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 1rem;
}

.html-preview-iframe {
    flex: 1;
    min-height: 12rem;
    width: 100%;
    border: none;
    background: #fff;
}

.html-preview-empty {
    margin: 1rem;
    color: #6c757d;
    font-style: italic;
}

#HtmlDesignFront {
    min-height: 6rem; /* 6 rows worth of height */
}

#HtmlDesignBack {
    min-height: 6rem; /* 4 rows worth of height */
}

@keyframes emailTagPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.email-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
    font-size: 0.75rem;
    line-height: 1;
}

.email-tag-remove:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.email-tags-empty {
    color: #9ca3af;
    font-size: 0.8125rem;
    font-style: italic;
    padding: 0.25rem 0;
}

.email-creative-images-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.email-creative-image-row {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.375rem;
    background: #fff;
    padding: 0.45rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.email-creative-image-name-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}

.email-creative-image-name {
    font-size: 0.8125rem;
    line-height: 1.3;
    color: #495057;
    word-break: break-word;
}

.email-creative-image-unsaved {
    font-size: 0.7rem;
    font-weight: 600;
    color: #856404;
    background: #fff3cd;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.email-creative-image-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.icon-only-button {
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.icon-only-button:hover {
    opacity: 0.85;
}




/* =============================================
   Manual Option
   ============================================= */

.ms-manual .ms-search {
    position: relative;
    margin-bottom: 0;
}
