:root {
	--panel_white: #f0f3fa;
}

.reg_page .extra_nav {
	display: none !important;
}
#registration_form_wrapper .container {
	padding-top: 50px;
	padding-bottom: 50px;
	border-radius: 90px 5px 90px 5px;
	background-color: var(--dark_blue);
}
#registration_form_wrapper .content {
	padding-left: 50px;
	padding-right: 50px;
}
/* light panels */
.content  .panel {
	background: var(--panel_white);
	padding: 30px;
	margin-bottom: 30px;
	margin-top: 30px;
	position: relative;
	border-radius: 45px 5px 45px 5px;
}
.content  .panel .close_panel {
	width: 50px;
	height: 50px;
	position: absolute;
	top: 5px;
	right: 5px;
	background-image: url(../_shared/_img/icons/close_button.png);
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0;
	transition: all 1s ease-in-out;
	cursor: pointer;
}
.content .panel:hover .close_panel {
	opacity: 0.7;	
}
.content .panel:hover .close_panel:hover {
	opacity: 1;	
	transform: scale(1.1);
	transition: all .1s ease-in-out;
}
/* add delegate */
#action_buttons {
	display: flex;
	justify-content: space-between;	
	margin-bottom: 1em;
}
#add_ticket  {
	font-weight: 400;
	border: 1px solid rgba(255,255,255,0);
	color: #fff;
	cursor: pointer;
	background-repeat: no-repeat;
	text-align: left;
	background-image: url(../_shared/_img/icons/add_icon_24px.png);
	padding: 10px 20px 10px 45px !important;
	background-position: left 10px center;
}
#add_ticket:hover  {
	text-decoration: underline;
}
#add_ticket.disabled {
	opacity: 0;
	cursor: default;	
}

/* order summary */
.order_summary .total td {
  border-top: 2px solid #000;
}

/* edit */
.delegate_info {
	position: relative;	
	border-top: 1px solid #ccc;
	padding: 10px 0 20px 0;
}
.delegate_info p {
	margin-bottom: 0;
}
.edit_button {
	position: absolute;
	top: 0px;
	right: 0px;
	color: #aaa;
	padding: 2px 8px;
	cursor: pointer;
	text-transform: uppercase;
	font-size: 0.9em;
	font-weight: 600;
	border: 1px solid #aaa;
}
.edit_button.edit_delegate {
	top: 10px;	
}
.edit_button:hover {
	background: var(--mid_blue);
	color: #fff;
	border: 1px solid var(--mid_blue);
}

/* overlays / edit forms modal */
body.overlay_active {
    overflow: hidden;
}
.overlay_close {
	position: absolute;
	width: 16px;
	height: 16px;
	top: 20px;
	right: 20px;
	background-image: url(../_shared/_img/dialogue/dialog_close_black.png);	
	opacity: 0.5;
	cursor: pointer;
}
.overlay_container {
    display: flex;               /* enable flexbox */
    justify-content: center;     /* horizontal centring */
    align-items: center;         /* vertical centring */
    min-height: 100%;            /* so it centres even if content is short */
    padding: 24px;               /* breathing room on small screens */
}
.overlay_container .content {
	 max-height: calc(100vh - 48px);   /* <= viewport, minus the container padding */
    overflow: auto;              /* <- internal scroll when needed */
	max-width: 700px;
	margin: 0 auto;	
	background: #fff;
	padding: 30px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	border-radius: 8px;
}

.is_loading {
    opacity: .2;
    pointer-events: none;   /* optional: prevent clicks while loading */
    transition: opacity .2s;
}

/* Simple toast */
#toast {
    position: fixed; left: 50%; bottom: -124px; transform: translateX(-50%);
    padding: 10px 14px; background: var(--mid_blue); color: #fff; border-radius: 6px;
    opacity: 0; pointer-events: none; transition: all .2s ease-in-out;
    z-index: 9999;
}
#toast.show { 
	opacity: 1;
	bottom: 24px; 
}

@media (max-width: 740px) {
	#registration_form_wrapper .container {
		padding-top: 30px;
		padding-bottom: 30px;
		border-radius: 10px;
	
	}
	#registration_form_wrapper .content {
		padding-left: 20px;
		padding-right: 20px;
	}
/* light panels */
.content  .panel {
	background: var(--panel_white);
	padding: 20px;
	margin-bottom: 30px;
	margin-top: 30px;

	border-radius: 5px;
}
	
}

@media (max-width: 540px) {
	/* big form go single column */
	.content #registration_form table , 
	.content #registration_form table thead, 
	.content #registration_form table tbody, 
	.content #registration_form table th, 
	.content #registration_form table tr td, 
	.content #registration_form table tr { 
		display: block; 
		border: 0;
		padding-left: 0;
		padding-right: 0;
	}
	.content #registration_form table tr td:last-of-type {
		padding-bottom: 1em;
	}
	.content  .panel {
		padding: 15px;
	}
}