@import "base.less";
@import "sweetalert.less";

body {
	background: #ebebeb;
}

.header {
	background-image: url(img/coupon/header.png?v=3);
	background-origin: center center;
	background-size: cover;
	position: relative;
	
	.tip {
		position: absolute;
		width: 56%;
		text-align: center;
		right: 4%;
		bottom: 7%;
		height: 2em;
		background: rgba(255, 255, 255, 0.9);
		color: #475f95;
		font-size: 0.8em;
		line-height: 2em;
	}
}

.task-list {
	padding: 0 4% 4%;
}

.task-item {
	margin-bottom: 5%;
	padding: 3%;
	border-radius: 0.4em;
	background: #fff;
	border: #475f95 0.15em solid;
	box-sizing: border-box;
	width: 100%;

	.info {
		vertical-align: middle;

		div {
			margin: 0 0 0.5em;

			&:last-child {
				margin: 0;
			}
		}

		.title {
			font-size: 1em;
		}

		.description {
			color: #338ffc;
			line-height: 1.1em;
			font-size: 0.85em;
			padding-left: 1.3em;
			.retina('img/task_reward.png', 1em, 1em, 0, 0em);
		}

		.summary {
			color: #666;
			font-size: 0.8em;
		}
	}

	

	.action {
		width: 25%;
		padding-left: 5%;
		vertical-align: middle;

		a {
			display: block;
			border-radius: 0.3em;
			height: 2.5em;
			line-height: 2.5em;
			text-align: center;
			background: #ff5b82;
			padding: 0 0.5em;
		}
	}

	&.disabled .action a {
		background: #bcbcbc;
	}
}

@media screen and (min-width: 768px){
	.task-item {
		font-size: 2em;
	}

	.header .tip {
		height: 2.5em;
		font-size: 1.5em;
		line-height: 2.5em;
	}
}