.rafflewise_ticket_sales {
	text-align: right;
}

.rafflewise_ticket_sales span, .rafflewise_countdown_wrapper span {
	/* The text spans for the product listing progress bars */
	padding: 0 0.5em;
	mix-blend-mode: difference;
}

.rafflewise_countdown.product_page {
position: static;
width: auto;
min-width: 350px;
max-width: 100%;
padding: 0;
background: transparent !important;
}

.rafflewise_countdown.product_page > span.fig {
width: 80px;
float:left;
margin-right:0.3em;
font-weight:normal;
padding: 0.2em 0.2em;
}

.rafflewise_countdown.product_page > span.fig > span.num {
width: 100%;
height:1em;
display:block;
font-weight: bold;
font-size: large;
}

.rafflewise_countdown.error {
width: auto;
background: #ca4747;
color: white;
font-weight: bold;
text-align: center;
display: inline-block;
padding: 0.1em 0.8em;
margin-bottom: 0;
position: relative;
bottom: -25px;
width: 100%;
z-index: 5;
}

#raffle_wise_ticket_bar {
position: relative;
margin-top: 1em;
margin-bottom: 2em;
background-color: black;
border-radius: 6px;
padding: 3px;
width:100%;
display: inline-block;
}

#raffle_wise_ticket_bar>div {
background-color: orange;
height: 20px;
border-radius: 6px;
text-align: right;
line-height: 1.2em;
}

#raffle_wise_ticket_bar>div.progress {
position: relative;
}

#raffle_wise_ticket_bar>div.progress>div.purchased {
position: absolute;
bottom: -33px;
right: -25px;
overflow: visible;
white-space: nowrap;
padding: 2px 7px;
border-radius: 7px;
font-size: small;
}

#raffle_wise_ticket_bar .arrow_up {
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid #000000ed;
position: absolute;
right: -10px;
bottom: -14px;
}


#raffle_wise_ticket_bar .zero, #raffle_wise_ticket_bar .full {
position: absolute;
background: none !important;
top: -1.2em;
}

#raffle_wise_ticket_bar .full {
right: 0;
}

/* New countdown styles */
.rafflewise_progress_wrapper {
	height: 1.5em;
	position: relative;
	text-align: right;
	margin-bottom: 0.3em;
	width: 100%;
	border-radius: 0.3em;
	/* Default colours */
	background: #303030;
	color: #ffffff;
}
.rafflewise_progress_wrapper i.fas {
	float:left;
	position: absolute;
	top:0;
	left:0.7em;
	font-size:0.9em;
	line-height:1.8em;
}
.rafflewise_progress_wrapper a.entries_link {
	position:absolute;
	bottom:-2.5em;
	font-size: 0.9em;
	right: 0;
	padding:0.3em 0.8em;
	text-decoration:none
}

/** LIGHTBOX MARKUP **/

.raffle_wise_lightbox {
	/** Default lightbox to hidden */
	display: none;

	/** Position and style */
	position: fixed;
	z-index: 999;
	width: 100%;
	height: 100%;
	text-align: center;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
    text-align: center;
    overflow: auto;
}

.raffle_wise_lightbox div.content {
	/** Pad the lightbox image */
	max-width: 90%;
	max-height: 80%;
	min-height:150px;
	margin: 4% auto;
	background:white;
	position: relative;
	overflow: auto;
	padding-top: 20px;
}

.raffle_wise_see_all_tickets_button {
	border: none !important;
	display: inline-block;
    padding: 0.2em 1em;
    cursor: pointer;
	margin-bottom: 1em;
}

.raffle_wise_lightbox div.content .table {
	width: 75%;
	margin: auto auto;
}

.raffle_wise_lightbox div.content #raffle_wise_entry_list_search {
	width: 50%;
	margin: auto auto;
}

.raffle_wise_lightbox span.close:after {
	/* Close button */
    display: inline-block;
    content: "\00d7";
    position: absolute;
    top: -5px;
    right: 10px;
    font-size: 2em;
    color: red;
    cursor: pointer;
}

.raffle_wise_lightbox:target {
	/** Remove default browser outline */
	outline: none;

	/** Unhide lightbox **/
	display: block;
}

.raffle-wise-lds-ring {
  display: none;
  position: relative;
  width: 12px;
  height: 16px;
}

.raffle-wise-lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 17px;
  height: 17px;
  margin: 3px;
  border: 3px solid #fff;
  border-radius: 50%;
  animation: raffle-wise-lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}

.raffle-wise-lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.raffle-wise-lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.raffle-wise-lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes raffle-wise-lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rafflewise_product_image_wrapper {
	/* Ensure the product image wrapper can be used to place badges absolutely */
	position: relative;
}

.rafflewise_product_image_wrapper .rafflewie_cash_pot_wrapper {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2.3em;
	line-height: 1em;
	font-size: 1.2em;
	text-align: center;
	padding-top: 0.2em;
}

.rafflewise_product_image_wrapper.rafflewise_single .rafflewie_cash_pot_wrapper {
	height: 3.5em;
	line-height: 1.5em;
	font-size: 1.2em;
	padding-top: 0.2em;
}

.rafflewise_product_image_wrapper.rafflewise_single .rafflewie_cash_pot_wrapper span {
	/* Make the text a little bigger on the single product image */
	font-size:1.5em;
}

.rafflewise_product_image_wrapper .rafflewie_cash_pot_wrapper .rafflewise_progress_fill {
	height:2px;
}
.rafflewise_product_image_wrapper .rafflewie_cash_pot_wrapper span {
	width: 100%;
}
.rafflewise_product_image_wrapper .rafflewie_cash_pot_wrapper div.raffle_wise_label {
	font-size: 0.8em;
}
.rafflewise_product_image_wrapper.rafflewise_single .rafflewie_cash_pot_wrapper div.raffle_wise_label {
	font-size: 1em;
}

.rafflewise_progress_wrapper .rafflewise_progress_fill {
	float: right;
	text-align: right;
	display: inline-block;
	position: absolute;
	height: 70%;
	top: 15%;
	left: 2.2em;
	border-radius: 0.2em;
	max-width: 86%;
}

.rafflewise_progress_wrapper span {
	/* The text spans for the product listing progress bars */
	padding: 0 0.5em;
	mix-blend-mode: difference;
	line-height:1.5em;
    position: absolute;
    top: 0;
    right: 0;
}

.rafflewise_progress_wrapper.product_page {
	position: static;
	width: auto;
	min-width: 350px;
	max-width: 100%;
	padding: 0;
	background: transparent !important;
}

.rafflewise_single_product_countdown_wrapper {
	width: 100%;
	display: flex;
}

.rafflewise_single_product_countdown_wrapper > div.fig {
	width: 20%;
	float:left;
	margin-right:0.3em;
	font-weight:normal;
	padding: 0.3em 0.15em;
	text-align:center;
}

.rafflewise_single_product_countdown_wrapper > div.fig > span.num {
	width: 100%;
	height:1em;
	display:block;
	font-weight: bold;
	font-size: large;
}