/* rich-editor.css - toolbar + editing area (light "paper" so any color is visible) */
.re-wrap {
    border: 1px solid #c8cfdd;
    border-radius: 10px;
    overflow: visible;
    background: #ffffff;
}

.re-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 8px;
    background: #f2f4f9;
    border-bottom: 1px solid #dfe4ee;
}

.re-btn {
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #d3d9e6;
    border-radius: 6px;
    background: #ffffff;
    color: #111111 !important;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.re-btn:hover {
    background: #e8ecf6;
}

.re-select {
    height: 30px;
    border: 1px solid #d3d9e6;
    border-radius: 6px;
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 13px;
    padding: 0 6px;
}

.re-color {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    border: 1px solid #d3d9e6;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    margin-bottom: 0;
}

.re-color .re-color-label {
    font-weight: 700;
    font-size: 13px;
    color: #111111;
    border-bottom: 3px solid #111111;
    line-height: 1;
}

.re-color-bg .re-color-label {
    border-bottom-color: #ffd400;
    background: #ffd400;
    padding: 0 3px;
}

.re-color input[type="color"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.re-area {
    min-height: 260px;
    max-height: 520px;
    overflow: auto;
    padding: 14px 16px;
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
}

.re-area * {
    color: inherit;
}

.re-area [style*="color"] {
    color: revert;
}

.re-area p,
.re-area div {
    margin: 0 0 6px;
}

/* form labels on the job create / edit screens */
.create__campaigns__form label:not(.bg--base):not(.form-check-label),
.create__campaigns__form .form-group > label:not(.bg--base):not(.form-check-label),
.create__campaigns__form .form-gorup > label:not(.bg--base):not(.form-check-label) {
    display: inline-block;
    color: #111111 !important;
    background: #ffffff;
    border-radius: 6px;
    padding: 2px 10px;
    font-weight: 600;
    margin-bottom: 6px;
}

.create__campaigns__form .form-check-label {
    background: transparent;
    color: #000000 !important;
    padding: 0;
    font-weight: 400;
}

/* ---------- colour palette dropdown ---------- */
.re-color-wrap {
    position: relative;
    display: inline-block;
}

.re-palette {
    position: absolute;
    z-index: 9999;
    top: 34px;
    left: 0;
    display: none;
    width: 214px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #d3d9e6;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(9, 14, 30, .28);
}

.re-palette.open {
    display: block;
}

.re-swatches {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
}

.re-swatch {
    width: 100%;
    padding-top: 100%;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    cursor: pointer;
}

.re-swatch:hover {
    outline: 2px solid #2563eb;
}

.re-palette-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.re-palette-foot .re-mini {
    flex: 1;
    height: 28px;
    border: 1px solid #d3d9e6;
    border-radius: 6px;
    background: #ffffff;
    color: #111111;
    font-size: 12px;
    cursor: pointer;
}

.re-palette-foot input[type="color"] {
    width: 36px;
    height: 28px;
    padding: 0;
    border: 1px solid #d3d9e6;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
}


/* ---------- square colour boxes (v1.0.21) ---------- */
.re-toolbar {
    overflow: visible !important;
}

.re-palette {
    position: fixed;
    width: 236px !important;
    padding: 10px !important;
    background: #ffffff !important;
    border: 1px solid #cfd6e4 !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 34px rgba(9, 14, 30, .35) !important;
    z-index: 100000 !important;
}

.re-swatches {
    display: grid !important;
    grid-template-columns: repeat(10, 20px) !important;
    gap: 3px !important;
    justify-content: center;
}

.re-swatch {
    display: block;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    border: 1px solid rgba(0, 0, 0, .25) !important;
    border-radius: 0 !important;   /* perfect squares */
    cursor: pointer;
}

.re-swatch:hover {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

.re-palette-foot {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.re-palette-foot input[type="color"] {
    width: 34px !important;
    height: 28px !important;
    border-radius: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    position: static !important;
    inset: auto !important;
}

.re-palette-foot .re-mini {
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #111111 !important;
}

/* current colour indicator on the toolbar buttons stays a square chip */
.re-color .re-color-label {
    border-radius: 0 !important;
}
