/*
 * WP Eventbrite Embedded Checkout: the frame Eventbrite draws the checkout
 * into, the popup button on phones, the "Simple" button and the credit line.
 */

.wpeec-checkout--embed {
	box-sizing: border-box;
	width: 100%;
}

.wpeec-checkout__frame {
	width: 100%;
	min-width: 280px;
}

.wpeec-checkout__frame iframe {
	display: block;
	width: 100%;
	border: 0;
}

/*
 * "Popup on phones": the button shows instead of the embedded checkout on
 * small screens. The media query only covers the first paint; once
 * assets/js/frontend.js has started one of the two it adds --as-popup or
 * --as-embed, which win, so turning the phone doesn't swap them.
 */
.wpeec-checkout__phone {
	display: none;
}

@media (max-width: 600px) {

	.wpeec-checkout--phone-popup .wpeec-checkout__frame {
		display: none;
	}

	.wpeec-checkout--phone-popup .wpeec-checkout__phone {
		display: block;
	}
}

.wpeec-checkout.wpeec-checkout--as-popup .wpeec-checkout__frame,
.wpeec-checkout.wpeec-checkout--as-embed .wpeec-checkout__phone {
	display: none;
}

.wpeec-checkout.wpeec-checkout--as-popup .wpeec-checkout__phone,
.wpeec-checkout.wpeec-checkout--as-embed .wpeec-checkout__frame {
	display: block;
}

/*
 * The "Simple" button: a fixed look that should not change with the theme.
 * Some themes style every link or button with very specific selectors, so
 * these rules repeat a class to rank higher without resorting to !important.
 */
.wpeec-checkout .wpeec-button.wpeec-button--basic.wpeec-button--basic {
	display: inline-block;
	margin: 0;
	padding: 0.65em 1.4em;
	border: 0;
	border-radius: 6px;
	background: #1a1a1a;
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.wpeec-checkout .wpeec-button.wpeec-button--basic.wpeec-button--basic:hover,
.wpeec-checkout .wpeec-button.wpeec-button--basic.wpeec-button--basic:focus,
.wpeec-checkout .wpeec-button.wpeec-button--basic.wpeec-button--basic:active {
	background: #1a1a1a;
	color: #fff;
	opacity: 0.85;
}

.wpeec-checkout .wpeec-button.wpeec-button--basic.wpeec-button--basic:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

/* "Widget by wpevent.pro", only when turned on under Settings. */
.wpeec-powered-by {
	display: flex;
	justify-content: flex-end;
}

.wpeec-powered-by a {
	display: inline-block;
	margin-top: 10px;
	padding: 3px 10px;
	border: 1px solid #e5e7eb;
	border-radius: 5px;
	background-color: #fff;
	color: #4b5563;
	font-size: 12px;
	line-height: 16px;
	text-decoration: none;
}

.wpeec-error {
	padding: 12px 16px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	color: #50575e;
	font-size: 14px;
}
