.cg4-notify {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 0px;
	right: 0px;
	margin: 16px;
	width: min-content;
	min-width: 400px;
  z-index: 3000;
  gap: 0.25rem;
}

.cg4-notify-card {
	padding: var(--padding_base);
  border-radius: var(--radius-md);
}

.cg4-notify-message {
  font-size: 0.8em;
  margin-top: 12px;
}

.notify-red,
.cg4-notify-red {
  color: var(--red);
  background: var(--red-50);
  border: 1px solid var(--red);
}

.cg4-notify-green {
	color: var(--green); 
	background: var(--green-50);
	border : 1px solid var(--green);
}

.cg4-notify-blue {
  color: var(--blue);
  background: var(--blue-50);
  border: 1px solid var(--blue);
}

.popup_back {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
    will-change: opacity;
    z-index: var(--z-index, 1000);
}

.popup_back.visible {
    opacity: 0.7;
    pointer-events: auto;
}

.popup_panel {
    position: fixed;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    will-change: transform, opacity;
    z-index: var(--z-index, 1001);
    padding: 2rem;
}

.popup_panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.popup_panel.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.popup_title {
  padding: 0.5rem 0 2rem;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  justify-content: space-between;
  font-size: 24px;
  font-weight: 700;
}

.popup_title span {
	gap: 24px;
  display: flex;
  align-items: center;
}

.popup_title img
{
	cursor:pointer;
	height:24px;
	width:24px;
	border:1px solid  white;
}

.popup_title img:hover
{
	border-radius:4px;
	-moz-border-radius:4px;
	-webkit-border-radius:4px;
	-khtml-border-radius:4px;
	border:1px solid var(--gray_400);
}

/* Password toggle styles (scoped to cg4 passbox) */
.passbox-with-toggle {
  position: relative;
}
.passbox-with-toggle input[type="password"],
.passbox-with-toggle input[type="text"] {
  padding-right: 36px; /* space for the eye button */
}
.passbox-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: .8;
}
.passbox-toggle:hover { opacity: 1; }

.popup-line {
    height: 1px;
    background-color: var(--gray_100);
    margin: 0;
}

.popup_content
{
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: var(--line2);
}

.popup-end {
  display: flex;
  flex-direction: row;
  justify-content: end;
  gap: 8px;
  margin-top: 3rem;
}

.popup-end button {
    min-width:90px;
}

@media (max-width: 768px) {
    .popup_panel {
        width: 90vw !important;
        max-height: 90vh !important;
        margin: 16px;
    }
    
    .popup_content {
        -webkit-overflow-scrolling: touch;
    }
}




