:root {
    --rz-primary: #066322;
    --rz-primary-light: oklch(from var(--rz-primary) calc(l + 0.1) c h);
    --rz-primary-lighter: oklch(from var(--rz-primary) calc(l + 0.2) c h);
    --rz-primary-dark: oklch(from var(--rz-primary) calc(l - 0.1) c h);
    --rz-primary-darker: oklch(from var(--rz-primary) calc(l - 0.2) c h);
    --rz-on-primary: #ffffff;
    --rz-on-primary-light: #111111;
    --rz-on-primary-lighter: #111111;
    --rz-on-primary-dark: #ffffff;
    --rz-on-primary-darker: #ffffff;
    --rz-base-50: #F8F6F5;
    --rz-base-100: #F2F0EF;
    --rz-base-200: #E9E8E6;
    --rz-card-background-color: var(--rz-base-50);

    --rz-secondary: #737373;
    --rz-secondary-light: oklch(from var(--rz-secondary) calc(l + 0.25) c h);
    --rz-secondary-lighter: oklch(from var(--rz-secondary) calc(l + 0.50) c h);
    --rz-secondary-dark: oklch(from var(--rz-secondary) calc(l - 0.25) c h);
    --rz-secondary-darker: oklch(from var(--rz-secondary) calc(l - 0.50) c h);
    --rz-on-secondary: #ffffff;
    --rz-info: #ffb717;
    --rz-on-info: #111111;

    --rz-info-light: oklch(from var(--rz-info) calc(l + 0.25) c h);
    --rz-info-lighter: oklch(from var(--rz-info) calc(l + 0.50) c h);
    --rz-info-dark: oklch(from var(--rz-info) calc(l - 0.25) c h);
    --rz-info-darker: oklch(from var(--rz-info) calc(l - 0.50) c h);

    --rz-success: #00b344;
    --rz-danger: #F4443A;
    --rz-link-color: #066322;
    --rz-link-hover-color: #69A17C;

    --hcp-gold: #ffb717;
    --hcp-gold-top: #ffd766;
    --hcp-gold-bottom: #ffb717;
}

/*.rz-button {*/
/*    border-radius: 9999px !important;*/
/*}*/

/*.rz-selectbar .rz-button {*/
/*    border-radius: revert;*/
/*}*/

.rz-button.rz-primary {

    background-color: #076324 !important;
    background-image: linear-gradient(to bottom, #0a7730 0%, #076324 52%, #044719 100%) !important;
    border-color: #065820 !important;
}

.rz-button.rz-info {

    background-color: var(--hcp-gold-bottom) !important;
    background-image: linear-gradient(to bottom, var(--hcp-gold-top) 0%, var(--hcp-gold-bottom) 100%) !important;
    border-color: var(--hcp-gold-bottom) !important;
}


a {
    color: var(--rz-link-color);
}

a:hover,
a:focus {
    color: var(--rz-link-hover-color);
}

.help-text ul {
    list-style: disc;
    padding-left: 1em;
    margin-left: 1em;
    padding-right: 1em;
    margin-right: 1em;
}

.text-bold {
    font-weight: bold;
}

/* The angle the highlight has travelled around the outline. Registering it as an
   <angle> is what lets it be interpolated - a plain custom property can't animate. */
@property --pulse-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* Styling the element (e.g., a notification dot) */
.pulse-element {

    --pulse-width: 3px; /* Thickness of the outline */
    --pulse-color: 255, 189, 41; /* Highlight colour */
    --pulse-tail: 140deg; /* How much of the outline the highlight covers */

    background-color: #de5448; /* A red color */

    position: relative;
    z-index: 1;

}

/* The travelling outline. It rides on the element's own edge rather than outside
   it, so nothing can clip it no matter how tight the container is. */
.pulse-element::after {

    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;

    /* The ring below is carved out of the padding, so the padding has to sit
       inside the box. Set it here rather than relying on a global reset. */
    box-sizing: border-box;

    /* A single bright arc in a conic gradient. Spinning the gradient's start
       angle walks that arc around the element. */
    background: conic-gradient(from var(--pulse-angle),
    rgba(var(--pulse-color), 0) 0deg,
    rgba(var(--pulse-color), 0) calc(360deg - var(--pulse-tail)),
    rgba(var(--pulse-color), 1) 350deg,
    rgba(var(--pulse-color), 0) 360deg);

    /* Punch out the middle so only a border-width ring of the gradient shows. */
    padding: var(--pulse-width);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;

    animation: pulse 2s infinite linear; /* Apply the animation */

}

/* Defining the animation using keyframes */
@keyframes pulse {
    to {
        --pulse-angle: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pulse-element::after {
        animation: none;
        background: rgba(var(--pulse-color), 1);
    }
}

.hcp-line {
    margin-top: 8px;
    margin-bottom: 5px;
    /*border-radius: 50%;*/
    opacity: 50%;
    border-color: var(--rz-primary);
    -webkit-filter: blur(1px);
    filter: blur(1px);
}

/* First item colors */
/*noinspection CssUnresolvedCustomProperty*/
.account-selectbar .rz-button:nth-child(1) {
    --rz-selectbar-selected-background-color: var(--rz-info);
    --rz-selectbar-selected-color: var(--rz-on-info);
}

/* Second item colors */
/*noinspection CssUnresolvedCustomProperty*/
.account-selectbar .rz-button:nth-child(2) {
    --rz-selectbar-selected-background-color: var(--rz-primary);
    --rz-selectbar-selected-color: var(--rz-on-primary);
}


.primary-selectbar .rz-button {
    --rz-selectbar-selected-background-color: var(--rz-primary);
    --rz-selectbar-selected-color: var(--rz-on-primary);
}

.yes-no-selectbar .rz-button {
    --rz-selectbar-selected-background-color: var(--rz-primary);
    --rz-selectbar-selected-color: var(--rz-on-primary);
}

/* 1. Base style for ALL buttons (keeps a dedicated space for the icon) */
.yes-no-selectbar .rz-button-text::before {
    content: '\e5ca'; /* Keep the icon structure loaded */
    font-family: var(--rz-icon-font-family, 'Material Symbols Outlined');
    font-weight: normal;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;

    /* Hide the icon by default, but preserve its layout footprint */
    opacity: 0;
    transform: scale(0);
    color: transparent;

    /* Smooth reset transition when an item is deselected */
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

/* 2. Bold text style for the selected button */
.yes-no-selectbar .rz-state-active .rz-button-text {
    font-weight: bold !important;
}

/* 3. Reveal and animate the icon on the selected button */
.yes-no-selectbar .rz-state-active .rz-button-text::before {
    opacity: 1;
    transform: scale(1);
    color: inherit; /* Restores the active text/theme color */

    /* Triggers the springy entry animation */
    animation: iconPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* 4. Definition for the entry pop */
@keyframes iconPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hcp-line {
    width: 100%;
    height: 2px;
    /*border-radius: 50%;*/
    opacity: 50%;
    background-color: var(--rz-primary);
    border-color: var(--rz-primary);
    -webkit-filter: blur(1px);
    filter: blur(1px);
}


.reg-category-list.rz-checkbox-list .rz-stack {
    display: grid !important;
    grid-template-columns: 1fr; /* 1 column by default */
    gap: 0.5rem;
    align-items: center;
}

/* Layout for medium screens or higher (768px and up) */
@media (min-width: 768px) {
    .reg-category-list.rz-checkbox-list .rz-stack {
        grid-template-columns: repeat(3, 1fr); /* Switches to 3 columns */
        gap: 0.5rem 1.5rem;
    }
}

.filled-icon {
    font-variation-settings: 'FILL' 1;
}