/**
 * Resource module stylesheet.
 *
 * Scoped styles for WooCommerce product cards that belong to the Mai Marketing
 * resource library. This keeps course/product logic untouched.
 */

.product-small.product_cat-tai-lieu .price,
.product-small.product_cat-ebook .price,
.product-small.product_cat-ebook-mien-phi .price,
.product-small.product_cat-ebook-tra-phi .price,
.product-small.product_cat-prompt-ai .price,
.product-small.product_cat-checklist .price,
.product-small.product_cat-template .price,
.product-small.product_cat-file-excel .price,
.product-small.product_cat-bonus .price {
	margin-bottom: 12px;
}

.mai-resource-free-price {
	color: #0B4F8A;
	font-weight: 800;
}

.mai-resource-loop-button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	margin: 10px 0 0;
	padding: 10px 16px;
	border-radius: 999px;
	background: #0B4F8A;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: none;
	box-shadow: 0 10px 22px rgba(11, 79, 138, 0.16);
}

.mai-resource-loop-button.button:hover,
.mai-resource-loop-button.button:focus {
	background: #073B66;
	color: #fff;
	transform: translateY(-1px);
}

.mai-resource-loop-button.added {
	background: #073B66;
}

.mai-resource-loop-button.loading {
	opacity: 0.78;
}

.mai-resource-buy-card {
	position: sticky;
	top: 112px;
	overflow: hidden;
	margin: 24px 0;
	border: 1px solid rgba(11, 79, 138, 0.12);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 22px 52px rgba(17, 24, 39, 0.12);
}

.mai-resource-buy-card__header {
	padding: 16px 22px;
	background: #0B4F8A;
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
}

.mai-resource-buy-card__body {
	padding: 22px;
}

.mai-resource-buy-card__badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	margin-bottom: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #F5F9FF;
	color: #0B4F8A;
	font-size: 13px;
	font-weight: 800;
}

.mai-resource-buy-card__price {
	margin-bottom: 18px;
	color: #111827;
	font-size: 30px;
	font-weight: 900;
	line-height: 1.1;
}

.mai-resource-buy-card__price del {
	margin-left: 8px;
	color: #667085;
	font-size: 16px;
	font-weight: 700;
	opacity: 0.78;
}

.mai-resource-buy-card__price ins {
	text-decoration: none;
}

.mai-resource-buy-card__price .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.mai-resource-buy-card__button.button,
.mai-resource-buy-card__preview.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	margin: 0 0 12px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: none;
}

.mai-resource-buy-card__button.button {
	background: #0B4F8A;
	color: #fff;
	box-shadow: 0 14px 28px rgba(11, 79, 138, 0.18);
}

.mai-resource-buy-card__button.button:hover,
.mai-resource-buy-card__button.button:focus {
	background: #073B66;
	color: #fff;
}

.mai-resource-buy-card__preview.button {
	border-color: rgba(11, 79, 138, 0.24);
	color: #0B4F8A;
}

.mai-resource-buy-card__benefits {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.mai-resource-buy-card__benefits li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 26px;
	color: #111827;
	font-size: 14px;
	line-height: 1.45;
}

.mai-resource-buy-card__benefits li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #F5F9FF;
	color: #0B4F8A;
	font-size: 12px;
	font-weight: 900;
}

body.single-product .product.product_cat-tai-lieu .product-info .share-icons,
body.single-product .product.product_cat-ebook .product-info .share-icons,
body.single-product .product.product_cat-ebook-mien-phi .product-info .share-icons,
body.single-product .product.product_cat-ebook-tra-phi .product-info .share-icons,
body.single-product .product.product_cat-prompt-ai .product-info .share-icons,
body.single-product .product.product_cat-checklist .product-info .share-icons,
body.single-product .product.product_cat-template .product-info .share-icons,
body.single-product .product.product_cat-file-excel .product-info .share-icons,
body.single-product .product.product_cat-bonus .product-info .share-icons {
	display: none;
}

body.single-product .product.product_cat-tai-lieu h1.product-title,
body.single-product .product.product_cat-ebook h1.product-title,
body.single-product .product.product_cat-ebook-mien-phi h1.product-title,
body.single-product .product.product_cat-ebook-tra-phi h1.product-title,
body.single-product .product.product_cat-prompt-ai h1.product-title,
body.single-product .product.product_cat-checklist h1.product-title,
body.single-product .product.product_cat-template h1.product-title,
body.single-product .product.product_cat-file-excel h1.product-title,
body.single-product .product.product_cat-bonus h1.product-title {
	font-weight: 900;
}

@media (max-width: 549px) {
	.mai-resource-loop-button.button {
		min-height: 42px;
		font-size: 15px;
	}

	.mai-resource-buy-card {
		position: static;
		margin: 18px 0 24px;
		border-radius: 16px;
	}

	.mai-resource-buy-card__body {
		padding: 18px;
	}

	.mai-resource-buy-card__price {
		font-size: 26px;
	}
}

/* Resource customer library */
.mai-resource-library {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
}

.mai-resource-library__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.mai-resource-library__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #0b4f8a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mai-resource-library__head h2,
.mai-resource-empty-card h2,
.mai-resource-empty-card h3 {
  margin: 0 0 8px;
  color: #111827;
}

.mai-resource-library__head p,
.mai-resource-empty-card p,
.mai-resource-library-card__body p {
  color: #667085;
}

.mai-resource-library__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.mai-resource-library-card,
.mai-resource-empty-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 39, 72, .08);
}

.mai-resource-empty-card {
  padding: 28px;
}

.mai-resource-library-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  background: #f5f9ff;
}

.mai-resource-library-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mai-resource-library-card__body {
  padding: 18px;
}

.mai-resource-library-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.mai-resource-library-card__meta span {
  border-radius: 999px;
  background: #f5f9ff;
  color: #0b4f8a;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

.mai-resource-library-card__body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.mai-resource-library-card__body h3 a {
  color: #111827;
}

.mai-resource-library-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 849px) {
  .mai-resource-library__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mai-resource-library__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 549px) {
  .mai-resource-library {
    padding: 34px 18px;
  }

  .mai-resource-library__grid {
    grid-template-columns: 1fr;
  }

  .mai-resource-library-card__actions .button {
    width: 100%;
    margin: 0;
  }
}
