/* Plugin Activation */
.woocommerce-subscriptions-activated p a.button-primary {
	display: inline-block;
}
.woocommerce-subscriptions-activated a.button-primary:hover {
	background: #bb77ae;
	border-color: #aa559a;
	-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);
}
.woocommerce-subscriptions-activated a.button-primary:active,
.woocommerce-subscriptions-activated a.button-primary:active {
	background: #aa559a;
	border-color: #aa559a;
}

/* Subscriptions Admin Page */
.post-type-shop_subscription .widefat .column-status,
.post-type-shop_subscription .widefat .column-order_id,
.post-type-shop_subscription .widefat .column-order_title {
	width: 142px;
	text-align: left;
}
.widefat .type-shop_subscription td.column-status {
	padding: 6px 7px;
}
.widefat .type-shop_subscription .column-status mark {
	display:block;
	text-align: center;
	white-space: nowrap;
	padding: 0 2px;
	background: #999;
	border: 1px solid #999;
	-webkit-box-shadow:inset 0 0 2px 1px rgba(255,255,255,0.5);
	-webkit-border-radius:4px;
	-moz-border-radius:4px;
	-o-border-radius:4px;
	border-radius:4px;
	margin: 0;
	font-size:9px;
	text-transform: uppercase;
	color:#fff;
	font-weight: bold;
	text-shadow:0 1px 0 rgba(0,0,0,0.3);
}
.widefat .type-shop_subscription .column-status mark.active {
	background-color: #339933;
	border-color: #339933;
}
.widefat .type-shop_subscription .column-status mark.expired {
	background-color: #A0658B;
	border-color: #A0658B;
}
.widefat .type-shop_subscription .column-status mark.on-hold {
	background-color: #E66F00;
	border-color: #E66F00;
}
.widefat .type-shop_subscription .column-status mark.failed {
	background-color: red;
	border-color: red;
}
.widefat .type-shop_subscription .column-status mark.cancelled {
	background-color: #ccc;
	border-color: #ccc;
}
.widefat .type-shop_subscription .column-status mark.processing {
	background-color: #2184c2;
	border-color: #2184c2;
}

/* Product List table */
table.wp-list-table span.product-type.variable-subscription {
	background-position: -48px 0;
}

/* Orders List Table */
a.close-subscriptions-search {
	font-size: 1em;
	padding: 0em 0.45em;
	border-radius: 1.4em;
	background: #dd0000;
	color: #ffffff;
	margin: -0.3em 0.6em 0 0;
}
.dismiss-subscriptions-search {
	position: relative;
}
.dismiss-subscriptions-search a {
	padding-bottom: 9px;
}

/* Edit Product/Subscriptions Page */
.woocommerce_options_panel ._subscription_price_fields .wrap,
.woocommerce_options_panel ._subscription_trial_length_field .wrap,
.woocommerce_options_panel ._subscription_payment_sync_date_day_field .wrap {
	display: block;
	width: 50%;
}
@media only screen and (max-width:1280px){
	.woocommerce_options_panel ._subscription_price_fields .wrap,
	.woocommerce_options_panel ._subscription_trial_length_field .wrap,
	.woocommerce_options_panel ._subscription_payment_sync_date_day_field .wrap {
		width:80%;
	}
}
.woocommerce_options_panel ._subscription_price_fields .wrap input,
.woocommerce_options_panel ._subscription_price_fields .wrap select {
	width:30.75%;
	margin-right:3.8%;
}
.woocommerce_options_panel ._subscription_trial_length_field .wrap input,
.woocommerce_options_panel ._subscription_trial_length_field .wrap select,
.woocommerce_options_panel ._subscription_payment_sync_date_day_field .wrap input,
.woocommerce_options_panel ._subscription_payment_sync_date_day_field .wrap select {
	width:48%;
	margin-right:3.8%;
}
.woocommerce_options_panel ._subscription_price_fields .wrap .last,
.woocommerce_options_panel ._subscription_trial_length_field .wrap .last,
.woocommerce_options_panel ._subscription_payment_sync_date_day_field .wrap .last {
	margin-right:0 !important;
}

.wc-metaboxes-wrapper .wc-metabox table td p._subscription_price_field label,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_period_field label,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_period_interval_field label,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_length_field label,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_period_field label,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_payment_sync_field label {
	display: none;
}

.wc-metaboxes-wrapper .wc-metabox table td p._subscription_price_field input,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_length_field input,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_payment_sync_field input {
	width: 5em;
}
.woocommerce_options_panel #sale-price-period {
	margin-right: 1em;
}

.wc-metaboxes-wrapper .wc-metabox table td ._subscription_trial_period {
	width: 7.1em;
}

#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_price_field {
	width: 70px !important;
}
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_length_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_sign_up_fee_field {
	width: 100% !important;
}
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_price_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_length_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_sign_up_fee_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_length_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_payment_sync_field {
	padding: 0 0 0 0 !important;
	margin: 0;
}
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_period_field select,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_length_field select {
	width: auto !important;
}
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_period_field select {
	width: 88px !important;
}
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_period_field img.help_tip {
	margin-top: 4px;
}
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_period_field span,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_length_field span,
.wc-metaboxes-wrapper .wc-metabox table td p._subscription_sign_up_fee_field span {
	padding: 5px 0 0 2px;
}
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_period_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_length_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_period_interval_field,
#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_period_field {
	padding: 0 0 0 5px !important;
	margin: 0;
}

#woocommerce-product-data .wc-metaboxes-wrapper .wc-metabox table td p._subscription_trial_period_field select {
	margin-left: 5px;
}

.subscription_sync_week_month select.wc_input_subscription_payment_sync {
	min-width: 180px;
}

.wc-metaboxes-wrapper .wc-metabox table tr.variable_subscription_sync td select.wc_input_subscription_payment_sync {
	width: auto !important;
}

.variable_subscription_sync p._subscription_payment_sync_field {
	padding-left: 0 !important;
}

.wcs_hidden_label {
	display: none !important;
}

/* Variation Pricing Fields in WooCommerce 2.3 */
.variable_subscription_pricing_2_3 .wc_input_subscription_price {
	max-width: 24%;
	clear: left;
	float: left;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_period_interval {
	max-width: 41%;
	float: left;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_period {
	max-width: 32%;
	float: right;
}
.variable_subscription_pricing_2_3.variable_subscription_trial p.form-row {
	margin-bottom: 0;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_trial_period {
	max-width: 47%;
	float: right;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_trial_length {
	max-width: 48%;
}
.variable_subscription_pricing_2_3 .variable_subscription_length,
.variable_subscription_pricing_2_3 .variable_subscription_trial_sign_up {
	clear: both;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_payment_sync_day {
	max-width: 13%;
}
.variable_subscription_pricing_2_3 .wc_input_subscription_payment_sync_month {
	max-width: 86%;
	float: right;
}
@media screen and (max-width: 1190px) {
	.variable_subscription_pricing_2_3 p._subscription_price_field,
	.variable_subscription_pricing_2_3 p._subscription_length_field {
		width: 100%;
	}
	.variable_subscription_pricing_2_3 p._subscription_price_field {
		width: 100%;
		margin-bottom: 0;
	}
	.variable_subscription_pricing_2_3 .wc_input_subscription_payment_sync_day {
		max-width: 20%;
	}
	.variable_subscription_pricing_2_3 .wc_input_subscription_payment_sync_month {
		max-width: 78%;
		float: right;
	}
}
._subscription_limit_field .description {
	display: block;
	clear: both;
	margin-left: 0px;
}

/* Users Administration Screen */
.woocommerce_active_subscriber .active-subscriber:before {
	content: "\f147";
	display: inline-block;
	-webkit-font-smoothing: antialiased;
	font: normal 24px/1 'dashicons';
	vertical-align: top;
}

/* Add/Edit Subscription Screen */
#woocommerce-subscription-data .handlediv,
#woocommerce-subscription-data h3.hndle {
	display: none;
}
#woocommerce-subscription-data .inside {
	padding: 0;
	margin: 0;
}
#woocommerce-subscription-schedule strong {
	display: inline-block;
}
#woocommerce-subscription-schedule .date-fields {
	margin: 1em 0;
}
#woocommerce-subscription-schedule p._billing_period_field,
#woocommerce-subscription-schedule p._billing_interval_field {
	display: inline-block;
	padding: 0 0 0 1px;
	margin: 0.5em 0 0;
}
#woocommerce-subscription-schedule p._billing_interval_field {
	padding-left: 0;
}
#woocommerce-subscription-schedule p._billing_interval_field {
	width: 66%;
}
#woocommerce-subscription-schedule p._billing_period_field {
	width: 30%;
}
#woocommerce-subscription-schedule p._billing_interval_field label {
	display: inline-block;
	font-weight: bold;
}
#woocommerce-subscription-schedule p._billing_period_field label {
	display: none;
}
#woocommerce-subscription-schedule p._billing_interval_field select,
#woocommerce-subscription-schedule p._billing_period_field select {
	display: inline-block;
}
#woocommerce-subscription-schedule p._billing_interval_field select {
	width: 58%;
	margin-left: 5px;
}
#woocommerce-subscription-schedule p._billing_period_field select {
	width: 100%;
}
#woocommerce-subscription-schedule .date-fields label,
#woocommerce-subscription-schedule .wcs-edit-date-action {
	display: inline-block;
	font-weight: bold;
}
#woocommerce-subscription-schedule .wcs-date-input input[type="text"]:first-of-type {
	width: 8em;
}
#woocommerce-subscription-schedule img.ui-datepicker-trigger {
	float: left;
	margin: 0.5em 0.1em;
}
#woocommerce-subscription-schedule .wcs-date-input,
#woocommerce-subscription-schedule .billing-schedule-edit {
	width: 100%;
}
#woocommerce-subscription-schedule .wcs-edit-date-action {
	width: 1.5em;
	float: right;
}
#woocommerce-subscription-schedule .wcs-edit-date,
#woocommerce-subscription-schedule .wcs-delete-date {
	text-indent: -9999px;
	position: relative;
	height: 1em;
	width: 1em;
	display: inline-block;
	margin: 0 .5em 0 0;
}
#woocommerce-subscription-schedule .wcs-edit-date:before,
#woocommerce-subscription-schedule .wcs-delete-date:before {
	font-family: WooCommerce;
	speak: none;
	font-weight: 400;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	margin: 0;
	text-indent: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	color: #999;
}
#woocommerce-subscription-schedule .wcs-edit-date:before {
	content: "\e603";
}
#woocommerce-subscription-schedule .wcs-edit-date:hover:before {
	color: #555555;
}
#woocommerce-subscription-schedule .wcs-delete-date:before {
	content: "\e013";
}
#woocommerce-subscription-schedule .wcs-delete-date:hover:before {
	color: #AA0000;
}

/* Related Orders and Failed Payment Retries Metabox on Edit Subscription/Order Admin Screen */
#renewal_payment_retries .inside,
#subscription_renewal_orders .inside {
	margin: 0;
	padding: 0;
}

.woocommerce_subscriptions_related_orders {
	margin: 0;
	overflow: auto;
}

.woocommerce_subscriptions_related_orders table {
	width: 100%;
	background: #fff;
	border-collapse: collapse;
}

.woocommerce_subscriptions_related_orders table thead th {
	background: #f8f8f8;
	padding: 8px;
	font-size: 11px;
	text-align: left;
	color: #555;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.woocommerce_subscriptions_related_orders table thead th:last-child {
	padding-right: 12px;
}

.woocommerce_subscriptions_related_orders table thead th:first-child {
	padding-left: 12px;
}

.woocommerce_subscriptions_related_orders table thead th:last-of-type,
.woocommerce_subscriptions_related_orders table td:last-of-type {
	text-align: right;
}

.woocommerce_subscriptions_related_orders table tbody th,
.woocommerce_subscriptions_related_orders table td {
	padding: 8px;
	text-align: left;
	line-height: 26px;
	vertical-align: top;
	border-bottom: 1px dotted #ececec;
}

.woocommerce_subscriptions_related_orders table tbody th:last-child,
.woocommerce_subscriptions_related_orders table td:last-child {
	padding-right: 12px;
}

.woocommerce_subscriptions_related_orders table tbody th:first-child,
.woocommerce_subscriptions_related_orders table td:first-child {
	padding-left: 12px;
}

.woocommerce_subscriptions_related_orders table tbody tr:last-child td {
	border-bottom: none;
}

/* WooCommerce Orders admin table */
table.wp-list-table .column-subscription_relationship {
	width: 48px;
	text-align: center;
}

table.wp-list-table span.normal_order {
	color: #999;
}

table.wp-list-table .subscription_head,
table.wp-list-table .subscription_parent_order,
table.wp-list-table .subscription_resubscribe_order,
table.wp-list-table .subscription_renewal_order {
	display: block;
	text-indent: -9999px;
	position: relative;
	height: 1em;
	width: 1em;
	margin: 0 auto;
}

table.wp-list-table .subscription_head:after,
table.wp-list-table .subscription_parent_order:after {
	font-family: WooCommerce;
	content: "\e014";
}

table.wp-list-table .subscription_resubscribe_order:after {
	font-family: WooCommerce;
	content: "\e014";
	color: #999;
}
table.wp-list-table .subscription_renewal_order:after {
	font-family: WooCommerce;
	content: "\e031";
}
table.wp-list-table .payment_retry:after {
	font-family: WooCommerce;
	content: "\e012";
}

table.wp-list-table .subscription_head:after,
table.wp-list-table .subscription_parent_order:after,
table.wp-list-table .subscription_resubscribe_order:after,
table.wp-list-table .subscription_renewal_order:after {
	font-weight: 400;
	margin: 0;
	text-indent: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	text-align: center;
	line-height: 16px;
	top: 0;
	speak: none;
	font-variant: normal;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	left: 0;
}

@media only screen and (max-width: 782px) {
	table.wp-list-table .subscription_parent_order,
	table.wp-list-table .subscription_resubscribe_order,
	table.wp-list-table .subscription_renewal_order{
		margin: 0;
	}
}

@media only screen and (max-width: 782px) {
	table.wp-list-table .column-subscription_relationship {
		text-align: inherit;
	}
}

/* Hide irrelevant sections on Edit Subscription screen */
body.post-type-shop_subscription .order_actions #actions optgroup[label='Resend order emails'],
body.post-type-shop_subscription .add-items .description.tips,
body.post-type-shop_subscription .add-items .button.refund-items {
	display: none;
}
@media only screen and (max-width: 782px) {
	#woocommerce-subscription-schedule .wcs-date-input input[type="text"]:first-of-type {
		width: 45%;
	}
	#woocommerce-subscription-schedule .wcs-date-input input[type="text"]:not(:first-of-type) {
		width: 19%;
	}

	.post-type-shop_subscription .wp-list-table .column-status {
		display: none;
		text-align: left;
		padding-bottom: 0;
	}

	.post-type-shop_subscription .wp-list-table .column-status mark {
		margin: 0;
	}

	.post-type-shop_subscription .wp-list-table .column-status:before {
		display: none !important;
	}

	.post-type-shop_subscription .wp-list-table .column-orders {
		text-align: left !important;
	}

}
span.product-type.variable-subscription:before {
	content: "\e003" !important;
}
