/* Best per category card component v1
   Home-only featured component. Independent from normal dealcards and deliberately has no half-circle. */

.mp-best-category-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:0 0 16px;
}

.mp-best-category-card{
  position:relative;
  min-width:0;
  min-height:246px;
  padding:20px 20px 18px;
  border:1px solid rgba(192,173,142,.72);
  border-radius:22px;
  background:linear-gradient(145deg,#fffdf8 0%,#fbf4e8 100%);
  box-shadow:0 18px 38px rgba(6,72,61,.075);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
}

.mp-best-category-card::before,
.mp-best-category-card::after{
  content:none !important;
  display:none !important;
}

.mp-best-category-provider{
  margin:0 0 6px 0;
  color:var(--green,#06483d);
  font-size:25px;
  line-height:1.04;
  font-weight:950;
  letter-spacing:-.35px;
}

.mp-best-category-title{
  margin:0 0 16px;
  color:#111;
  font-size:16px;
  line-height:1.22;
  font-weight:850;
}

.mp-best-category-benefits{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  background:#eaf4ec;
  color:var(--green,#06483d);
}

.mp-best-category-benefits span{
  display:block;
  max-width:100%;
  color:inherit;
  font-size:12px;
  line-height:1.2;
  font-weight:850;
}

.mp-best-category-footer{
  display:flex;
  justify-content:flex-end;
  margin-top:18px;
}

.mp-best-category-cta{
  min-width:122px;
  height:44px;
  padding:0 16px;
  border-radius:14px;
  background:var(--green,#06483d);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size:14px;
  font-weight:950;
  white-space:nowrap;
  box-shadow:0 10px 22px rgba(6,72,61,.18);
}


.mp-best-category-card--placeholder .mp-best-category-benefits{
  width:auto;
  min-width:0;
}

.mp-best-category-card--placeholder .mp-best-category-benefits span{
  font-size:12.5px;
  line-height:1.1;
  font-weight:900;
}

@media (min-width:901px){
  .mp-best-category-card:hover,
  .mp-best-category-card:focus-within{
    transform:translateY(-5px);
    border-color:rgba(201,149,45,.72);
    box-shadow:0 22px 48px rgba(6,72,61,.12),0 0 0 1px rgba(201,149,45,.22);
  }
}

@media (min-width:621px) and (max-width:1180px){
  .mp-best-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:620px){
  .mp-best-category-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
    margin:0 0 16px;
  }
  .mp-best-category-card{
    min-height:0;
    padding:18px 18px 16px;
    border-radius:22px;
  }
  .mp-best-category-provider{font-size:24px;}
  .mp-best-category-title{margin-bottom:14px;}
  .mp-best-category-footer{justify-content:flex-end;margin-top:16px;}
}
