/*
Theme Name: GDPR Menedzser
Theme URI: https://digitalform.hu/
*/


/* Animation */
.anim { -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; transition: all 0.2s ease-out; }


/*
---------------
	COOKIE
---------------
*/
/* Normal style */
#dform_cookie { width: 400px; left: 0; bottom: 0; padding: 30px; font-family: PT Sans, Arial, Verdana, sans-serif; font-size: 0; color: #333 !important; line-height: 18px; line-height: 20px; background: white; position: fixed; visibility: hidden; opacity: 0; z-index: 1000; -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; transition: all 0.2s ease-out; -moz-box-shadow: 0px 20px 150px rgba(0,0,0,0.3); -webkit-box-shadow: 0px 20px 150px rgba(0,0,0,0.3); box-shadow: 0px 20px 150px rgba(0,0,0,0.3); }
/*#dform_cookie { width: 400px; left: 0; bottom: 0; padding: 30px; font-family: PT Sans, Arial, Verdana, sans-serif; font-size: 0; color: #333 !important; line-height: 18px; line-height: 20px; background: white; position: fixed; visibility: hidden; opacity: 0; z-index: 1000; -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; transition: all 0.2s ease-out; -moz-box-shadow: 0 0 20px rgba(0,0,0,0.3); -webkit-box-shadow: 0 0 20px rgba(0,0,0,0.3); box-shadow: 0 0 20px rgba(0,0,0,0.3); }*/

#dform_cookie p { margin-bottom: 10px; font-size: 14px; }
#dform_cookie p a { font-weight: bold; text-decoration: underline; color: #111; }
#dform_cookie p a:hover { color: #000; }

#dform_cookie .actions { font-size: 0 !important; font-weight: bold; }
#dform_cookie .actions a { vertical-align: top; display: inline-block; }

#dform_cookie .actions a.accept { height: 40px; margin-right: 15px; padding: 0 20px; font-size: 15px !important; text-align: center; text-decoration: none !important; color: white !important; line-height: 40px; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; }
#dform_cookie .actions a.accept:hover { background: #111 !important; }

#dform_cookie .actions a.open_cookie_manager { height: 40px; font-size: 15px !important; text-decoration: underline; color: #2b2e34; line-height: 40px; }
#dform_cookie .actions a.open_cookie_manager:hover { text-decoration: none; }

/* Wide, new moder style */
#dform_cookie.wide { width: 100%; left: 0; bottom: 0; padding: 30px 20px; color: white !important; line-height: 20px; -moz-box-shadow: 0 0 5px rgba(0,0,0,0.3); -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.3); box-shadow: 0 0 5px rgba(0,0,0,0.3); }
#dform_cookie.wide .dform_cookie_inner { max-width: 940px; margin: auto; }
#dform_cookie.wide p { font-size: 16px; }
#dform_cookie.wide p a, 
#dform_cookie.wide p a:hover { color: white; }

#dform_cookie.wide .actions a.accept { color: #111 !important; background: white; }
#dform_cookie.wide .actions a.accept:hover { text-decoration: underline !important; background: white !important; }

#dform_cookie.wide .actions a.open_cookie_manager { color: white; }

/* Style 2019 */
#dform_cookie.style2019 { left: 20px; bottom: 20px; padding: 30px 40px 20px 20px; line-height: 18px; -moz-box-shadow: 0 0 5px rgba(0,0,0,0.3); -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.3); box-shadow: 0 0 5px rgba(0,0,0,0.3); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; }
#dform_cookie.style2019:after { width: 80px; height: 80px; right: -30px; top: -10px; background: url(../images/icon_cookie.svg) no-repeat center; background-size: auto 100%; position: absolute; content: ''; }
#dform_cookie.style2019 p { font-size: 14px; color: #555; }
#dform_cookie.style2019 h3 { margin-bottom: 10px; font-size: 22px; font-weight: 700; text-transform: uppercase; color: #000; line-height: 1; letter-spacing: 3px; } 

/* With header image */
#dform_cookie.header_image { left: 20px; bottom: 20px; padding: 0; text-align: center; -moz-box-shadow: 0 0 20px rgba(0,0,0,0.3); -webkit-box-shadow: 0 0 20px rgba(0,0,0,0.3); box-shadow: 0 0 20px rgba(0,0,0,0.3); }
#dform_cookie.header_image .dform_cookie_inner { padding: 20px; }

#dform_cookie.header_image p { font-size: 15px; }

#dform_cookie.header_image .dform_cookie_header_image { height: 150px; background-repeat: no-repeat; background-position: center; background-size: cover; }

body.cookie_panel #dform_cookie { visibility: visible; opacity: 1; }

/* Cookie options */
#dform_cookie_options { min-width: 50px; height: 50px; left: 20px; bottom: 20px; font-family: PT Sans, Arial, Verdana, sans-serif; font-size: 16px; font-weight: bold; text-transform: uppercase; position: fixed; z-index: 1000; cursor: pointer; }
#dform_cookie_options:before { width: 50px; height: 50px; left: 0; top: 0; background: rgba(0,0,0,0.5) url(../images/icon_settings.svg) no-repeat center; background-size: auto 30px; position: absolute; content: ''; }
#dform_cookie_options .dform_cookie_options_text { padding: 0 10px 0 60px; color: white; line-height: 50px; display: none; }
#dform_cookie_options:hover .dform_cookie_options_text { display: block; }

body.cookie_panel #dform_cookie_options { visibility: hidden; opacity: 0; }


/*
----------------------
	COOKIE MANAGER
----------------------
*/
#cookie_manager { width: 100%; height: 100%; left: 0; top: 0; padding: 20px; font-family: Pt Sans, Arial, sans-serif; background: rgba(0,0,0,0.8); position: fixed; z-index: 10000; visibility: hidden; opacity: 0; }
#cookie_manager .cm_wrapper { max-width: 750px; margin: 50px auto; background: white; position: relative; }
#cookie_manager .cm_header { padding: 30px; position: relative; }
#cookie_manager .cm_header p { font-size: 15px; color: #555; line-height: 1.4; }
#cookie_manager .cm_header a { font-weight: 700; text-decoration: underline; color: #000; }
#cookie_manager .cm_header a:hover { text-decoration: none; }
#cookie_manager .cm_header h3 { margin-bottom: 10px; font-size: 22px; font-weight: 700; text-transform: uppercase; color: #000; line-height: 1; letter-spacing: 3px; }

#cookie_manager .cm_entry { max-height: calc(100vh - 260px); padding: 0 30px 20px; color: #000; background: white; overflow-y: auto; }
#cookie_manager .cm_entry table thead th { padding: 10px; font-size: 14px; text-transform: uppercase; text-align: left; background: #f5f5f5; border-bottom: 1px solid #ddd; }
#cookie_manager .cm_entry table thead th.cookie_name { width: 130px; }
#cookie_manager .cm_entry table thead th.cookie_status { width: 90px; text-align: center; }

#cookie_manager .cm_entry table tbody tr { background: none !important; }
#cookie_manager .cm_entry table tbody tr td { padding: 10px; text-align: left !important; background: none !important; border: none !important; border-bottom: 1px solid #ddd !important; }
#cookie_manager .cm_entry table tbody tr td.cookie_name { font-weight: 700; }
#cookie_manager .cm_entry table tbody tr td.cookie_description { font-size: 14px; color: #555; line-height: 1.2; }
#cookie_manager .cm_entry table tbody tr td.cookie_status { padding: 0; text-align: center !important; }

#cookie_manager .cm_footer { height: 60px; padding: 0 30px; text-align: right; position: relative; }
#cookie_manager .cm_footer .close { height: 40px; padding: 0 15px; font-weight: bold; color: white !important; line-height: 40px !important; display: inline-block; cursor: pointer; opacity: 0.8; cursor: pointer; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; }
#cookie_manager .cm_footer .close:hover { opacity: 1; }

body.open_cm #cookie_manager { visibility: visible; opacity: 1; }


/*
-----------------
	NICELABEL
-----------------
*/
.circle-nicelabel { display: none !important; visibility: hidden !important; opacity: 0 !important; }
.rect-nicelabel { display: none !important; visibility: hidden !important; opacity: 0 !important; }
.text-nicelabel { display: none !important; visibility: hidden !important; opacity: 0 !important; }

.circle-nicelabel + label { width: 60px !important; height: 30px !important; background-color: #30b664; cursor: pointer; display: inline-block; position: relative; border-radius: 30px; -webkit-border-radius: 30px; overflow: hidden; transition: background-color 0.2s; -moz-user-select: none; -webkit-user-select: none; }
.circle-btn { width: 22px; height: 22px; top: 4px; left: 33px; background-color: #fff; position: absolute; border-radius: 10px; -webkit-border-radius: 10px; transition: left 0.2s; -webkit-transition: left 0.2s; }
.circle-nicelabel:not(:checked) + label .circle-btn { left: 4px; }			
.circle-nicelabel:not(:checked) + label { background-color: #ddd; }		
.circle-nicelabel[disabled] + label { opacity: 0.5; }	


/*
------------------
	RWD DESIGN
------------------
*/
@media only screen and (max-width: 640px) { 

	/* COOKIE */
	#dform_cookie { width: auto; right: 0; padding: 20px; }
	#dform_cookie .actions { text-align: center; }
	#dform_cookie .actions a.accept { width: 50%; margin-right: 0; display: inline-block; }
	#dform_cookie .actions a.open_cookie_manager { width: 50%; height: auto; }
	
	/* COOKIE: Style 2019 */
	#dform_cookie.style2019 { padding: 20px; }
	#dform_cookie.style2019:after { right: -10px; top: -30px; }
		
	/* COOKIE MANAGER */
	#cookie_manager .cm_wrapper { height: 100%; max-height: calc(100vh - 80px); margin: 20px auto; display: flex; flex: auto; flex-direction: column; } 
	#cookie_manager .cm_header { padding: 20px; }

	#cookie_manager .cm_entry .cookie_type .header { height: auto; padding: 10px 20px; line-height: normal; }
	
	#cookie_manager .cm_entry { padding: 0 20px 20px; }
	#cookie_manager .cm_entry table { display: block; }
	
	#cookie_manager .cm_entry table thead { display: none !important; }
	
	#cookie_manager .cm_entry table { border-top: 3px solid #ddd; }
	#cookie_manager .cm_entry table tbody { display: block; }
	#cookie_manager .cm_entry table tbody tr { display: block; }
	#cookie_manager .cm_entry table tbody td { padding: 10px 0; border-bottom: none; display: block; }
	#cookie_manager .cm_entry table tbody td::before { content: attr(data-title) ": "; }
	#cookie_manager .cm_entry table tbody td.cookie_name { padding-bottom: 0; }
	#cookie_manager .cm_entry table tbody td.cookie_status { padding-bottom: 10px; text-align: left; border-bottom: 1px solid #ddd; }
	#cookie_manager .cm_entry table tbody td.cookie_status::before { display: none; }
	
	#cookie_manager .cm_footer { height: 80px; padding: 20px; }
}

@media only screen and (max-width: 480px) { 

	/* COOKIE: Style 2019 */
	#dform_cookie.style2019:after { display: none !important; }

	/* COOKIE MANAGER */
	#cookie_manager .cm_footer { text-align: left; }
	#cookie_manager .cm_footer .close { width: 100%; padding: 0; text-align: center; display: block; }
}
