﻿/* Component definitions */

.dd-hop-card {
    border: 1px solid var(--rz-border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--rz-panel-background-color, var(--rz-base-background-color));
}

.dd-hop-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.dd-step-badge {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--rz-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.dd-hop-title {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    color: var(--rz-text-color);
    word-break: break-all;
}

.dd-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--rz-text-secondary-color);
    margin: 14px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--rz-border-color);
}

.dd-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 900px) {
    .dd-fields { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .dd-fields { grid-template-columns: 1fr; }
}

.dd-fields.dd-fields-wide {
    grid-template-columns: 1fr;
}

.dd-field {
    background: var(--rz-body-background-color, #f9fafb);
    border-radius: 6px;
    /*padding: 8px;*/
}

.dd-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}

.dd-field-value {
    display: block;
    font-size: 13px;
    color: var(--rz-text-color);
    word-break: break-all;
    white-space: pre-wrap;
}

.dd-field-value.dd-empty {
    color: var(--rz-text-disabled-color, #aaa);
    font-style: italic;
}

.cp-section-title {
    color: var(--rz-text-color);
    font-weight: 700;
    font-size: 17px;
    margin-top: 0;
    margin-bottom: 0;
}

:root {
    --input-border: #d0d5dd;
    --input-focus-border: #6366f1;
    --input-error-border: #ef4444;
}

/********************/
/****** Button ******/
/********************/

.cp-button {
    /* Button Layout */
    box-sizing: border-box;
    display: inline-flex;
    height: 32px;
    padding: 8px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* Misc */
    border: 0;
    border-radius: 4px;
    flex-wrap: nowrap;
    text-wrap: nowrap;
    cursor: pointer;
    /* Text */
    color: var(--White, #FFF);
    text-align: center;
    /* Text xs-12/Bold-12 */
    font-family: "Open Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px; /* 150% */
}

    .cp-button:not(.cp-button-compact) {
        /*min-width: 147px;*/
        width: max-content;
    }

    .cp-button.cp-button-compact {
        min-width: max-content;
        width: max-content;
    }

    .cp-button:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

.cp-button--primary {
    border-radius: 4px;
    background: var(--Foundation-Primary-primary-500, #008D9E);
    /* button shadow */
    box-shadow: 0 1px 6px 0 rgba(93, 95, 99, 0.00);
    /* Text */
    color: var(--White, #FFF);
    text-align: center;
    /* Text xs-12/Bold-12 */
    font-family: "Open Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px; /* 150% */
}

    .cp-button--primary:hover {
        border-radius: 4px;
        background: var(--Foundation-Primary-primary-300, #54B3BE);
        /* button shadow */
        box-shadow: 0 1px 6px 0 rgba(93, 95, 99, 0.00);
        /* Text */
        color: var(--White, #FFF);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

    .cp-button--primary:active {
        border-radius: 4px;
        background: var(--Foundation-Primary-primary-600, #008090);
        /* button shadow */
        box-shadow: 0 1px 6px 0 rgba(93, 95, 99, 0.00);
        /* Text */
        color: var(--White, #FFF);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

    .cp-button--primary:focus {
        border-radius: 4px;
        outline: 4px solid var(--Foundation-Text-text-50, #E7E8EA);
        background: var(--Foundation-Primary-primary-500, #008D9E);
        /* Text */
        color: var(--White, #FFF);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

    .cp-button--primary:disabled {
        border-radius: 4px;
        background: var(--Foundation-Text-text-100, #B5B7BD);
        /* Text */
        color: var(--White, #FFF);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

.cp-button--secondary {
    border-radius: 4px;
    border: 1px solid var(--Foundation-Text-text-100, #B5B7BD);
    background: var(--White, #FFF);
    /* button shadow */
    box-shadow: 0 1px 6px 0 rgba(93, 95, 99, 0.00);
    /* Text */
    color: var(--Foundation-Text-text-500, #0F172A);
    text-align: center;
    /* Text xs-12/Bold-12 */
    font-family: "Open Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px; /* 150% */
}

    .cp-button--secondary:hover {
        border-radius: 4px;
        border: 1px solid var(--Foundation-Text-text-200, #91949D);
        background: var(--Foundation-Text-text-50, #E7E8EA);
        /* button shadow */
        box-shadow: 0 1px 6px 0 rgba(93, 95, 99, 0.00);
        /* Text */
        color: var(--Foundation-Text-text-500, #0F172A);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

    .cp-button--secondary:active {
        border-radius: 4px;
        border: 1px solid var(--Foundation-Primary-primary-400, #33A4B1);
        background: var(--White, #FFF);
        /* button shadow */
        box-shadow: 0 1px 6px 0 rgba(93, 95, 99, 0.00);
        /* Text */
        color: var(--Foundation-Text-text-500, #0F172A);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

    .cp-button--secondary:focus {
        border-radius: 8px;
        border: 4px solid var(--Foundation-Text-text-50, #E7E8EA);
        background: var(--White, #FFF);
        /* Text */
        color: var(--Foundation-Text-text-500, #0F172A);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

    .cp-button--secondary:disabled {
        border-radius: 4px;
        border: 1px solid var(--Foundation-Grey-gray-200, #F4F3F3);
        background: var(--Foundation-Grey-gray-100, #F9F9F9);
        /* Text */
        color: var(--Foundation-Text-text-200, #91949D);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

.cp-button--transparent {
    border-radius: 4px;
    background: var(--White, #FFF);
    /* Text */
    color: var(--Foundation-Primary-primary-500, #008D9E);
    text-align: center;
    /* Text xs-12/Bold-12 */
    font-family: "Open Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px; /* 150% */
}

    .cp-button--transparent:hover {
        border-radius: 4px;
        background: var(--White, #FFF);
        /* Text */
        color: var(--Foundation-Primary-primary-300, #54B3BE);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

    .cp-button--transparent:active {
        border-radius: 4px;
        background: var(--White, #FFF);
        /* Text */
        color: var(--Foundation-Primary-primary-600, #008090);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

    .cp-button--transparent:focus {
        border-radius: 4px;
        border: 4px solid var(--Foundation-Text-text-50, #E7E8EA);
        background: var(--White, #FFF);
        /* Text */
        color: var(--Foundation-Primary-primary-500, #008D9E);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

    .cp-button--transparent:disabled {
        border-radius: 4px;
        background: var(--White, #FFF);
        /* Text */
        color: var(--Foundation-Grey-gray-400, #D1D1D1);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

.cp-button--danger {
    border-radius: 4px;
    background: var(--Foundation-Error-E300, #EE4723);
    /* button shadow */
    box-shadow: 0 1px 6px 0 rgba(93, 95, 99, 0.00);
    /* Text */
    color: var(--White, #FFF);
    text-align: center;
    /* Text xs-12/Bold-12 */
    font-family: "Open Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px; /* 150% */
}

    .cp-button--danger:hover {
        border-radius: 4px;
        background: var(--Foundation-Error-E100, #F5927D);
        /* button shadow */
        box-shadow: 0 1px 6px 0 rgba(93, 95, 99, 0.00);
        /* Text */
        color: var(--White, #FFF);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

    .cp-button--danger:active {
        border-radius: 4px;
        background: var(--Foundation-Error-E400, #C43517);
        /* button shadow */
        box-shadow: 0 1px 6px 0 rgba(93, 95, 99, 0.00);
        /* Text */
        color: var(--White, #FFF);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

    .cp-button--danger:focus {
        border-radius: 4px;
        border: 4px solid var(--Foundation-Text-text-50, #E7E8EA);
        background: var(--Foundation-Error-E500, #97250D);
        /* Text */
        color: var(--White, #FFF);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */
    }

    .cp-button--danger:disabled {
        border-radius: 4px;
        background: var(--Foundation-Error-E75, #FAC4B8);
        /* Text */
        color: var(--Foundation-Text-text-400, #3F4555);
        text-align: center;
        /* Text xs-12/Bold-12 */
        font-family: "Open Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 18px; /* 150% */   
    }

/*******************/
/****** Field ******/
/*******************/

.cp-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cp-field__label {
    width: 100%;
}

.cp-field__req {
    margin-left: 2px;
}

.cp-field__control {
    width: 100%;
    position: relative; /* allows tooltip to be absolute */
}

/* Inline error */
.cp-field__error {
    width: 100%;
    font-size: 0.875rem;
    color: var(--input-error-text, #b42318);
}

/* Tooltip error (does NOT affect layout) */
.cp-field__tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--input-error-border, #ef4444);
    background: var(--tooltip-bg, #ffffff);
    color: var(--input-error-text, #b42318);
    font-size: 0.875rem;
    z-index: 10;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    white-space: nowrap;
}

/* Error hook: make inputs inside a field go red */
.cp-field--error .cp-input__control {
    border-color: var(--input-error-border, #ef4444);
}

    .cp-field--error .cp-input__control:focus {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    }

/**********************/
/****** Dropdown ******/
/**********************/

/* Container */
.cp-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

/* Filtering input (if AllowFiltering = true) */
.cp-dropdown__filter {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid var(--input-border, #d0d5dd);
    background: var(--input-bg, #ffffff);
    color: var(--input-text, #101828);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .cp-dropdown__filter:focus {
        border-color: var(--input-focus-border, #6366f1);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }

/* Native select */
.cp-dropdown__native {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 36px 8px 10px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid var(--input-border, #d0d5dd);
    background: var(--input-bg, #ffffff);
    color: var(--input-text, #101828);
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Custom dropdown arrow */
.cp-dropdown__native {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' stroke='%236b7280' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

    /* Focus state */
    .cp-dropdown__native:focus {
        border-color: var(--input-focus-border, #6366f1);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }

    /* Disabled */
    .cp-dropdown__native:disabled,
    .cp-dropdown__filter:disabled {
        background: var(--input-disabled-bg, #f2f4f7);
        color: var(--input-disabled-text, #98a2b3);
        cursor: not-allowed;
        opacity: 0.8;
    }

/* Error state (hook into CPField if you want) */
.cp-dropdown--error .cp-dropdown__native,
.cp-dropdown--error .cp-dropdown__filter {
    border-color: var(--input-error-border, #ef4444);
}

    .cp-dropdown--error .cp-dropdown__native:focus,
    .cp-dropdown--error .cp-dropdown__filter:focus {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    }

/**********************/
/****** TextBox ******/
/**********************/

.cp-input {
    width: 100%;
    position: relative;
}

.cp-input__control {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid var(--input-border, #d0d5dd);
    background: var(--input-bg, #ffffff);
    color: var(--input-text, #101828);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .cp-input__control:focus {
        border-color: var(--input-focus-border, #6366f1);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }

/* Make room for password toggle when present */
.cp-input--has-toggle .cp-input__control {
    padding-right: 64px;
}

.cp-input__toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 4px 6px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--muted-text, #475467);
}

    .cp-input__toggle:hover {
        text-decoration: underline;
    }

/* Disabled */
.cp-input__control:disabled {
    background: var(--input-disabled-bg, #f2f4f7);
    color: var(--input-disabled-text, #98a2b3);
    cursor: not-allowed;
    opacity: 0.85;
}

/**********************/
/****** Dropdown ******/
/**********************/

.cp-dd {
    position: relative;
    width: 100%;
}

.cp-dd-btn {
    width: 100%;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 44px 0 14px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    outline: none;
}

    .cp-dd-btn:focus {
        border-color: #6bd3dd;
        box-shadow: 0 0 0 4px rgba(107, 211, 221, 0.25);
    }

.cp-dd-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    /* placeholder look inside the custom dropdown button */
    .cp-dd-value.is-placeholder {
        color: #9ca3af; /* matches input placeholder */
    }

/* chevron */
.cp-dd-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%) rotate(45deg);
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    pointer-events: none;
}

/* panel */
.cp-dd-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
    padding: 6px;
    max-height: 240px;
    overflow: auto;
    z-index: 50;
    display: none;
}

.cp-dd.open .cp-dd-panel {
    display: block;
}

/* option */
.cp-dd-option {
    padding: 10px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    user-select: none;
}

    .cp-dd-option:hover,
    .cp-dd-option.active {
        background: rgba(8, 168, 188, 0.10);
    }

    .cp-dd-option.selected {
        background: rgba(8, 168, 188, 0.18);
        font-weight: 600;
    }

/**********************/
/****** Divider ******/
/**********************/

.cp-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 32px 0;
}

/**********************/
/****** StepBar ******/
/**********************/

.stepbar {
    width: 100%;
    background: #fff;
}

.stepbar-list {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 12px 24px;
    margin: 0;
    align-items: center;
}

.stepbar-item:not(:last-child) {
    position: relative;
    flex: 1;
    min-width: 0;
}

    /* Connector line (between steps) */
    .stepbar-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50%;
        left: calc(24px + 10px); /* circle radius + small offset */
        right: 16px; /* leave some space before next circle */
        height: 2px;
        background: #e6eef7; /* light blue/gray like screenshot */
        transform: translateY(-50%);
    }

/* Completed connector can be slightly stronger (optional) */
.stepbar-item.is-complete:not(:last-child)::after {
    background: #cfe8f1;
}

.stepbar-step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1; /* sit above connector line */
    white-space: nowrap;
}

.stepbar-circle {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}

/* States */
.stepbar-item.is-active .stepbar-circle {
    background: #12a7b3; /* teal */
    color: #fff;
}

.stepbar-item.is-upcoming .stepbar-circle {
    background: #e9edf3; /* light gray */
    color: #6b7280; /* gray text */
}

.stepbar-item.is-complete .stepbar-circle {
    background: #12a7b3; /* teal (or choose a lighter teal if you want) */
    color: #fff;
}

.stepbar-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937; /* near-black */
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
    background: white;
}

.stepbar-item.is-upcoming .stepbar-label {
    color: #374151;
    font-weight: 600;
}

/* Bottom subtle rule like the screenshot */
.stepbar-bottom-rule {
    height: 2px;
    background: #e6eef7;
    margin: 0 16px 32px 16px;
}

/************************/
/****** Radio List ******/
/************************/

.cp-radio {
    display: flex;
    gap: 16px;
    height: 44px;
    align-items: center;
}

.cp-radio-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
}

.cp-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 14px; /* bigger gap between pills */
    align-items: center;
    margin-top: 6px;
}

/* pill */
.cp-radio-item {
    position: relative;
    display: inline-flex;
    align-items: center; /* centers circle vertically */
    gap: 14px; /* bigger gap between circle + text */
    height: 44px; /* matches input height */
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    /* hide native radio but keep it accessible */
    .cp-radio-item input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.cp-radio-item-left {
    border-radius: 10px 0 0 10px !important;
}

.cp-radio-item-right {
    border-radius: 0 10px 10px 0 !important;
}

/* label text */
.cp-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 14px; /* keeps layout stable */
    font-size: 14px;
    color: #111827;
    line-height: 1;
}

    /* custom circle (perfectly centered) */
    .cp-radio-label::before {
        content: "";
        width: 18px;
        height: 18px;
        min-width: 18px;
        border-radius: 999px;
        border: 2px solid #d1d5db;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }

/* hover */
.cp-radio-item:hover {
    border-color: #cbd5e1;
    background: rgba(8,168,188,0.04);
}

/* selected pill + circle */
.cp-radio-item input[type="radio"]:checked + .cp-radio-label {
    font-weight: 600;
}

    .cp-radio-item input[type="radio"]:checked + .cp-radio-label::before {
        border-color: var(--cp-primary-400);
        box-shadow: inset 0 0 0 4px var(--cp-primary-400);
    }

/* selected pill styling */
.cp-radio-item:has(input[type="radio"]:checked) {
    border-color: rgba(8,168,188,0.55);
    background: rgba(8,168,188,0.08);
}

/* keyboard focus ring */
.cp-radio-item input[type="radio"]:focus-visible + .cp-radio-label::before {
    outline: 3px solid rgba(8,168,188,0.25);
    outline-offset: 3px;
}

/* make your pill radios match shorter inputs */
.cp-radio-item {
    height: 40px; /* was 44px */
    padding: 0 12px;
    border-radius: 10px;
}

/* keep radio circle consistent */
.cp-radio-label::before {
    width: 16px;
    height: 16px;
    min-width: 16px;
    box-shadow: inset 0 0 0 0 transparent;
}

/* when checked, smaller inner dot */
.cp-radio-item input[type="radio"]:checked + .cp-radio-label::before {
    box-shadow: inset 0 0 0 3px var(--cp-primary-400);
}

/*******************************/
/****** Loading Indicator ******/
/*******************************/

.cp-loading-indicator {
    padding: 20px;
    text-align: center;
    color: var(--rz-text-color);
    opacity: 0.7;
}

/*****************/
/****** Tag ******/
/*****************/

.status-tag-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-tag {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 8px;
    height: 18px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 100%;
    mix-blend-mode: multiply;
    box-sizing: border-box;
    white-space: nowrap;
    flex: none;
    flex-grow: 0;
}

.tag-variant-none {
    background-color: #F3F4F6;
    color: #374151;
}

.tag-variant-green {
    color: #166534;
    background-color: #DCFCE7;
}

.tag-variant-yellow {
    color: #92400E;
    background-color: #FEF3C7;
}

.tag-variant-red {
    color: #9B1C1C;
    background-color: #FCDDD6;
}

.tag-variant-red2 {
    color: #FFFFFF;
    background-color: #DC2626;
}

.tag-variant-blue {
    color: #1E40AF;
    background-color: #DBEAFE;
}

.tag-variant-gray {
    color: #374151;
    background-color: #F3F4F6;
}

.tag-shape-none {
}

.tag-shape-badge {
    justify-content: center;
}

.tag-shape-textonly {
    width: auto;
}

/***************************/
/****** Tag List Item ******/
/***************************/

.tag-list-item {
    background-color: var(--rz-secondary-lighter);
    padding: 0px 0px 0px 4px;
    display: flex;
    flex-wrap: nowrap;
    min-height: 1.5em;
    height: min-content;
    border: 1px solid #DEDEDE;
    border-radius: 4px;
    color: #505050;
    font-weight: 600;
    word-break: break-all;
}

.tag-list-item-text {
    margin-right: 4px;
}

.tag-list-item-close-button {
    display: flex;
    padding: 0px 6px 0px 6px;
    cursor: pointer;
    height: 1.5em;
    align-items: center;
}

    .tag-list-item-close-button:hover {
        background-color: #EEE9CC;
    }

    .tag-list-item-close-button:before {
        content: "";
        background-image: url("/images/Tag-Delete-Icon.svg");
        background-repeat: no-repeat;
        background-size: 0.7em;
        width: 0.7em;
        height: 0.8em;
        display: inline-block;
    }

/*****************************/
/****** Filter Dropdown ******/
/*****************************/

.filter-dropdown {
    display: flex;
    position: relative;
    height: 21px;
    cursor: pointer;
}

    /*.filter-dropdown:before, */ /* .filter-dropdown:after {
        content: url("/images/chevron-down-outline.svg");
        pointer-events: none;
        color: red;
    }*/

    .filter-dropdown select {
        color: #088C9D;
        background: transparent;
        border: none;
        outline: none;
        appearance: none;
        width: 100%;
        padding: 3px;
        padding-right: calc(6px + 14px);
        cursor: pointer;
    }

    .filter-dropdown option {
        color: #088C9D;
        background: transparent;
        border: none;
        outline: none;
    }

/*****************************/
/****** CP Dropdown ******/
/*****************************/

.cp-dropdown-wrapper {
    user-select: none !important;
}

    .cp-dropdown-wrapper > .cp-dropdown {
        display: none;
    }

    .cp-dropdown-wrapper:focus-within > .cp-dropdown {
        display: block;
    }

.cp-dropdown {
    position: absolute;
    background: white;
    box-shadow: 0 0 2px #000000;
    border-radius: 4px;
    z-index: 999;
    cursor: default;
    width: max-content;
    max-width: 600px;
    margin-top: 6px;
}

    .cp-dropdown > ul {
        list-style-type: none;
        padding: 0 4px;
        margin: 4px 0;
    }

        .cp-dropdown > ul > li:not(.cp-dropdown-options) {
            margin: 0;
            padding: 6px 8px;
        }

.cp-dropdown-options {
    max-height: 300px;
    overflow-y: auto;
}

    .cp-dropdown-options > ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

        .cp-dropdown-options > ul > li {
            margin: 0;
            padding: 6px 8px;
        }

/* Single-select FilterDropdown: header (label + current value) + plain highlighted options. */
.cp-dropdown .cp-dropdown-single-header {
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    padding: 8px 12px !important;
    margin-bottom: 2px;
    border-bottom: 1px solid #EEF0F3;
    white-space: nowrap;
}

.cp-dropdown-options > ul > li.cp-dropdown-option {
    cursor: pointer;
    color: #374151;
    border-radius: 6px;
    padding: 9px 12px;
    white-space: nowrap;
}

    .cp-dropdown-options > ul > li.cp-dropdown-option:hover {
        background: #F3F4F6;
    }

    .cp-dropdown-options > ul > li.cp-dropdown-option.is-selected {
        background: #EAF6F8;
        color: #0F172A;
        font-weight: 500;
    }
