/*
Theme Name: App
Theme URI: https://woorise.com
Description: Woorise app theme.
Author: Woorise
Author URI: https://woorise.com
Version: 1.5.9
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/

.admin-bar {
	margin-top: 54px !important;
}

::-webkit-input-placeholder,
::-moz-placeholder,
select,
textarea {
	font-family: var(--wp--preset--font-family--primary);
}

input {
	font-family: inherit;
}

a,
button,
input:focus,
input[type="button"],
input[type="reset"],
input[type="submit"],
textarea:focus,
.button {
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition:    all 0.2s ease-in-out;
	-ms-transition:     all 0.2s ease-in-out;
	-o-transition:      all 0.2s ease-in-out;
	transition:         all 0.2s ease-in-out;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button {
	cursor: pointer;
}

a {
	text-decoration: none;
}

h1.has-background,
h2.has-background,
h3.has-background,
h4.has-background,
h5.has-background,
h6.has-background {
	padding: 4% !important;
}

mark {
	background-color: inherit;
}

.smalltext {
  color: #999;
  font-size: 12px;
}

.hide {
	left: -9999px;
	position: absolute;
	visibility: hidden;
	font-size: 0;
	height: 0px;
	max-height: 0px;
	overflow: hidden;
}

/* Box Sizing
--------------------------------------------- */

html,
input[type="search"]{
	-webkit-box-sizing: border-box;
	-moz-box-sizing:    border-box;
	box-sizing:         border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

/* Form unavailable
--------------------------------------------- */

.form-unavailable {
	text-align: center;
	margin: 40px auto;
	padding: 5%;
	background: #fff;
	border-radius: 5px;
	color: #000;
}

.form-unavailable i {
	font-size: 100px;
	opacity: .1;
	margin-bottom: 30px;
}

.form-unavailable h2 {
	margin-bottom: 0;
}

/* Password protected
--------------------------------------------- */

.campaign-password-form {
	padding: 10% 5%;
}

.post-password-form label input {
	width: 100%;
	border-radius: 5px;
	border: 1px solid #d9d9d9;
	padding: 12px;
	box-sizing: border-box;
}

.post-password-form input[type="submit"] {
	width: 100%;
	margin-top: 20px;
	border: 2px solid rgb(44, 62, 80);
	border-radius: 5px;
	color: #fff;
	background-color: rgb(44, 62, 80);
	font-size: 16px;
	padding: 0.8em 1em;
	cursor: pointer;
}

.campaign-password-form .password-error {
	border: 1px solid red;
	padding: 12px 20px;
	border-radius: 5px;
	background: #ffe6e6;
	color: red;
}

/* Top bar
--------------------------------------------- */

.top-bar {
	background: #6D47D9;
	background: -webkit-linear-gradient(left, #F93D66, #6D47D9);
	background: linear-gradient(to right, #F93D66 , #6D47D9);
	text-align: center;
	color: #fff;
	padding: 10px;
	position: fixed;
	width: 100%;
	z-index: 100;
}

.top-bar p {
	margin: 0;
	font-size: 18px;
}

.top-bar span,
.top-bar a {
	background-color: #fff;
	color: #6D47D9;
	padding: 5px 20px;
	border-radius: 50px;
	margin: 0 10px;
	font-weight: 700;
	display: inline-block;
	font-size: 14px;
	vertical-align: top;
	text-transform: uppercase;
}

.top-bar i {
	top: 50%;
	position: absolute;
	right: 20px;
	transform: translateY(-50%);
	cursor: pointer;
	font-size: 20px;
	opacity: .6;
}

.top-bar i:hover {
	opacity: 1;
}

/* Bonus entries
--------------------------------------------- */

.bonus-entries {
	padding: 5%;
	background: #fff;
	text-align: center;
	box-shadow: 0 5px 20px rgba(46, 61, 77, 0.1);
	border-radius: 5px;
	margin: 20px auto;
	color: #333;
}

.bonus-entries p {
	font-size: 32px;
	margin: 0;
}

.bonus-entries small {
	color: #aaa;
}

/* Viral Share
--------------------------------------------- */

.viral-share {
	padding: 5%;
	background: #fff;
	text-align: center;
	box-shadow: 0 5px 20px rgba(46, 61, 77, 0.1);
	border-radius: 5px;
	margin-bottom: 20px;
}

.gform_confirmation_wrapper {
	margin-bottom: 40px;
}

.form .viral-share h3 {
	color: #333;
	margin-top: 0;
}

/*
.ref-link::before {
	content: "\f0c1";
	font-family: "Font Awesome 5 Free";
	font-weight: 700;
	margin-right: 20px;
}
*/

.ref-link {
	color: #999;
	border: 1px solid #e5e5e5;
	display: flex;
	padding: 8px 12px 8px 12px;
	border-radius: 10px;
	margin: 20px auto 0;
	font-size: 18px;
	justify-content: space-between;
}

.ref-link input {
	border: 0;
	padding: 0;
	font-size: 14px;
	color: #b1b7bc;
	width: 100%;
}

.copy-link {
	margin-left: 20px;
	padding: 0;
	width: 80px;
	height: 40px;
	border-radius: 5px;
	background-color: #e5e5e5;
	border: 0;
	color: #000;
	font-size: 18px;
}

.copy-link:hover {
	background-color: #cdcdcd;
}

.social-share {
	margin-top: 20px;
}

.social-share ul {
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1rem;
	list-style-type: none;
	flex-wrap: wrap;
}

.social-share li {
	flex: 1 1 60px;
	max-width: 100px;
}

.social-share a {
	background: #fff;
	border-radius: 5px;
	height: 40px;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 60px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.social-share svg {
	fill: #000;
	height: 20px;
	width: 20px;
}

.social-share a:hover svg {
	scale: 1.1;
}

.confirmation-icons {
	margin: 40px auto;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
	width: 100%;
}

/* Loader
--------------------------------------------- */

.loader {
	position: relative;
	visibility: hidden;
}

.loader::before {
	animation: .3s linear infinite spinner;
	animation-play-state: inherit;
	border: solid 3px rgba(255,255,255,0.5);
	border-bottom-color: rgba(0,0,0,0.2);
	border-radius: 50%;
	content: "";
	height: 30px;
	width: 30px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate3d(-50%, -50%, 0);
	will-change: transform;
	visibility: visible;
}

@keyframes spinner {
	0% {
		transform: translate3d(-50%, -50%, 0) rotate(0deg);
	}
	100% {
		transform: translate3d(-50%, -50%, 0) rotate(360deg);
	}
}

/* Popup
--------------------------------------------- */

.popup {
	display: flex;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.8);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	visibility: hidden;
}

.popup-active {
	visibility: visible;
}

.popup-active .popup-content {
	animation-name: fadeInBottom;
	-webkit-animation-name: fadeInBottom;
	-webkit-animation-duration: 0.5s;
	animation-duration: 0.5s;
}

.popup .close {
	line-height: normal;
	position: sticky;
	top: 10px;
	right: 12px;
	font-size: 24px;
	cursor: pointer;
	background: rgba(255,255,255,.2);
	border: none;
	z-index: 10;
	padding: 10px;
	margin-left: auto;
	display: flex;
	justify-content: flex-end;
	border-radius: 6px;
}

.popup .close-icon {
	fill: #000;
}

.popup-content {
	position: relative;
	background-color: #fff;
	box-shadow: 0 5px 30px 0 rgba(0,0,0,0.2);
	max-width: 820px;
	max-height: 90%;
	border-radius: 5px;
	width: 90%;
	overflow-y: auto;
	word-wrap: break-word;
	-webkit-overflow-scrolling: touch;
}

.popup-body {
	padding: 0 5% 5%;
	margin: 0;
	white-space: normal;
}

/* Email login
--------------------------------------------- */

.form-button {
	text-align: center;
}

.form-button a {
	color: inherit;
	opacity: .6;
	background: transparent;
	border: none;
}

.form-button a:hover {
	opacity: 1;
}

#logout-btn::before {
	content: "\f104";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	padding-right: 10px;
}

#email-login .button {
	width: 100%;
}

.donotcomplete {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	height: 0;
	width: 0;
	z-index: -1;
}

/* Floating Notice
--------------------------------------------- */

.float-notice {
	padding: 20px;
	border-radius: 5px;
	max-width: 600px;
	background: #3B3FEF;
	color: #fff;
	font-size: 18px;
	position: fixed;
	top: 80px;
	left: 50%;
	transform: translate(-50%, 0);
	box-shadow: 0 5px 30px 0px rgba(44, 62, 80, 0.1);
	z-index: 100;
	-moz-animation: cssAnimation 0s ease-in 5s forwards;
	-webkit-animation: cssAnimation 0s ease-in 5s forwards;
	-o-animation: cssAnimation 0s ease-in 5s forwards;
	animation: cssAnimation 0s ease-in 5s forwards;
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
}

.float-notice p {
	margin-top: 0;
	margin-bottom: 10px;
}

.float-notice p:last-child {
	margin-bottom: 0;
}

@keyframes cssAnimation {
  to {
		padding: 0;
    width:0;
    height:0;
    overflow:hidden;
		visibility:hidden;
  }
}

.notice-warning {
	background: rgb(249, 199, 0);
}

.notice-success {
	background: rgba(0, 196, 49);
}

.is-fixed {
	-moz-animation: none;
	-webkit-animation: none;
	-o-animation: none;
	animation: none;
	position: fixed;
}

/* Activation page
--------------------------------------------- */

.wp-activate-container {
	padding: 40px;
	margin: 5% auto !important;
	border-radius: 10px;
	max-width: 820px;
	box-shadow: none;
	border: 1px solid #000;
	border-bottom-width: 5px;
}

/* Cover block
--------------------------------------------- */

:where(.wp-block-cover-image:not(.has-text-color)), :where(.wp-block-cover:not(.has-text-color)) {
	.gform_wrapper .collapsible-sections-field, 
	.gform_wrapper .collapsible-sections-collapsible-body {
	  color: #000;
	}
}

.wp-block-cover:not(.has-text-color) .wp-block-group.has-white-background-color:not(.has-text-color),
.wp-block-cover-image:not(.has-text-color) .wp-block-group.has-white-background-color:not(.has-text-color) {
	color: #000;
}

/* Animation
--------------------------------------------- */

.fadeInBottom {
	animation-duration: 0.5s;
	animation-name: fadeInBottom;
}

@keyframes fadeInBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to { opacity: 1 }
}

/* Page not available
--------------------------------------------- */

.page-not-available {
	text-align: center;
	padding-top: 10%;
}

.page-not-available .button {
	background: #ff4a00;
	color: #fff;
	padding: 15px 30px;
	border-radius: 50px;
	display: inline-block;
	border-color: #ff4a00;
}

/* Woorise badge 
--------------------------------------------- */

.woorise-badge {
	bottom: 20px;
	position: fixed;
	z-index: 30;
	right: 20px;
}

.woorise-badge a {
	align-items: center;
	background: rgba(0,0,0,0.9);
	display: flex;
	padding: 6px 10px;
	border-radius: 30px;
	color: #fff;
	font-size: 12px;
	gap: 4px;
	flex-wrap: wrap;
	line-height: 0;
}

.woorise-badge svg {
	height: auto;
	width: 50px;
	fill: #fff;
	overflow: visible;
	display: block;
	position: relative;
}

.woorise-badge.gform-theme__no-reset--children a {
	border-radius: 4px;
	min-height: 30px;
}

.bar-embed .woorise-badge {
	display: none;
}

body .woorise-compact-badge {
	display: none;
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1000;
	line-height: 0;
}

.woorise-compact-badge a {
	background: #fff;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	line-height: 0;
	outline: 0;
	border-radius: 6px;
	opacity: .1;
}

.woorise-compact-badge svg {
	width: 20px;
}

.woorise-compact-badge a:hover {
	opacity: 1;
}

@media only screen and (max-width: 600px) {
	.woorise-badge {
		bottom: 10px;
		right: 10px;
	}
}

@media only screen and (min-width: 600px) {
	.bar-embed .woorise-compact-badge {
		display: block;
	}
}

/* Custom classes
--------------------------------------------- */

@media only screen and (max-width: 600px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) .wp-block-cover.popup-image {
		min-height: 50vh !important;
	}
}

/* Embeds
--------------------------------------------- */

.single-embeds .entry-content {
	max-width: 800px;
	margin: 40px auto;
}

.entry-content .dummy_text,
.entry-content .dummy_image {
	margin: 20px auto;
}

.dummy_text div {
    border-radius: 20px;
    background-color: #f9f7f7;
    height: 30px;
    margin: 10px 0;
}

.dummy_image {
	min-height: 400px;
	background-color: #f9f7f7;
}

.w-open {
	margin: 20px 0 40px !important;
	display: block;
	padding: 15px 20px;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 16px;
}

/* Embedded
--------------------------------------------- */

/* HubSpot iframe resize fix */
.embedded #hs-web-interactives-top-anchor div {
	height: auto !important;
}

.embedded.standard-embed [style*="min-height:100vh"] {
	min-height: auto !important;
}

/*
.embedded .wp-block-columns .wp-block-cover[style*="min-height:100vh"] {
	padding-top: 50%;
	padding-bottom: 50%;
}

.embedded .wp-block-cover.alignfull[style*="min-height:100vh"] {
	padding-top: 10%;
	padding-bottom: 10%;
}
*/