.ral-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.ral-popup.open {
    display: flex;
}

.popup-top {
    background: #fff;
    padding: 0rem 2.5rem 0rem 2.5rem;
}

.popup-bottom {
    background: #e6e6e5;
    padding: 1.5rem;
}

.ral-popup form {
    background: #fff;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.ral-popup form p {
    margin-bottom: 0.75rem;
}

.toplabel {
	font-weight: 400;
	padding: 10px 0;
	font-size: 1.15em;
}

.ral-popup input,
.ral-popup select {
    width: 100%;
    padding: 0.5rem 0.5rem;
    font-size: 0.95em;
    border: 1px solid #ccc;
    box-sizing: border-box;
	border-radius: 0px;
}

.uicore-body-content .ral-popup input {
	border: 0px;
	font-size: 1.0em;
	padding: 4px 1rem;
	margin: 0;	
}

.uicore-body-content .ral-popup input::placeholder {
	color: black;
}

.uicore-body-content .ral-popup p {
	margin: 0 0 5px 0;
	padding: 0;
}

.ral-popup select[multiple] {
    height: auto;
}

#ralColorPreview {
    height: 120px;
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center;
}

.popup-close {
    position: absolute;
    top: 0rem;
    right: 0rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
	background: #F18602;
    cursor: pointer;
    border: none;
	width: 2.5rem;
	height: 2.5rem;
	text-align: center;
}


.kleur-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f8f8f8;
}

.kleur-checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.4rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.kleur-checkbox-grid input[type="checkbox"] {
    transform: scale(1.1);
}

.kleur-dropdown {
    background: #fff;
    margin-top: 1rem;
    overflow: hidden;
}

.kleur-toggle {
    width: 100%;
    text-align: left;
    background: #f18700;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
	border-radius: 0px;
}



.kleur-toggle .arrow {
    font-size: 1.2rem;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.kleur-options {
    display: none;
    padding: 1rem;
    background: #f8f8f8;
    max-height: 250px;
    overflow-y: auto;
}

.kleur-dropdown.open .kleur-options {
    display: block;
}

.kleur-dropdown.open .kleur-toggle .arrow {
    transform: rotate(180deg);
}

.rechts {
	width: 100%;
	text-align: right;
}

.kleur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0;
}

.kleur-grid label {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
}

.kleur-vlak {
    display: inline-block;
    width: 40px;
    height: 15px;
    background-size: cover;
    background-position: center;
		margin-right: 6px;
	margin-left: 6px;
	background: white;
}

#ralCodeHeading {
	color: black;
	font-size: 1.6em;
	font-weight: bold;
	text-transform: uppercase;
}

#ralCodeHeading span {
  font-size: 0.6em;
  color: #555;
  text-transform: none;
  font-weight: normal;
	display: block;
	line-height: auto;
	margin-bottom: -10px;
}

.popupbutton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f18700;
  color: white;
  padding: 0.8rem 1.2rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.popupbutton .arrow-icon {
  width: 10px;
  height: 10px;
}

.dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

