/**
 * Product Card block styles
 */

.wp-block-easy-affiliate-product-card {
  --accent-color: #3578e5;
  --text-color: #333333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text-color);
  box-sizing: border-box;
}

.wp-block-easy-affiliate-product-card * {
  box-sizing: border-box;
}

.wp-block-easy-affiliate-product-card .container {
  width: 100%;
  padding: 20px;
}

.wp-block-easy-affiliate-product-card .title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.wp-block-easy-affiliate-product-card .title a {
  color: var(--accent-color);
  text-decoration: none;
}

.wp-block-easy-affiliate-product-card .title a:hover {
  text-decoration: underline;
}

.wp-block-easy-affiliate-product-card .container-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.wp-block-easy-affiliate-product-card .content-left {
  flex: 0 0 300px;
  border: 1px solid rgba(54, 65, 81, 0.11);
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-block-easy-affiliate-product-card .content-left img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wp-block-easy-affiliate-product-card .content-right {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wp-block-easy-affiliate-product-card .container-description {
  line-height: 1.6;
}

.wp-block-easy-affiliate-product-card .separator {
  height: 1px;
  background-color: rgba(54, 65, 81, 0.11);
  margin: 10px 0;
}

/* Benefits Section */
.wp-block-easy-affiliate-product-card .widget-benefits .container-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.wp-block-easy-affiliate-product-card .widget-benefits .card {
  flex: 1;
  min-width: 250px;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wp-block-easy-affiliate-product-card .widget-benefits .card.green {
  border-left: 4px solid #61ce70;
}

.wp-block-easy-affiliate-product-card .widget-benefits .card.red {
  border-left: 4px solid #fa3030;
}

.wp-block-easy-affiliate-product-card .widget-benefits .card .header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.wp-block-easy-affiliate-product-card .widget-benefits .card .header .icon {
  margin-right: 10px;
}

.wp-block-easy-affiliate-product-card .widget-benefits .card.green .icon {
  color: #61ce70;
}

.wp-block-easy-affiliate-product-card .widget-benefits .card.red .icon {
  color: #fa3030;
}

.wp-block-easy-affiliate-product-card .widget-benefits .card .header .text {
  font-weight: 600;
  font-size: 18px;
}

.wp-block-easy-affiliate-product-card .widget-benefits .card .container-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wp-block-easy-affiliate-product-card .widget-benefits .card .item {
  display: flex;
  align-items: center;
}

.wp-block-easy-affiliate-product-card .widget-benefits .card .item .icon {
  margin-right: 10px;
  width: 20px;
  display: flex;
  justify-content: center;
}

.wp-block-easy-affiliate-product-card .widget-benefits .card.green .item .icon {
  color: #61ce70;
}

.wp-block-easy-affiliate-product-card .widget-benefits .card.red .item .icon {
  color: #fa3030;
}

/* Pricing Section */
.wp-block-easy-affiliate-product-card .container-section .subtitle {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.wp-block-easy-affiliate-product-card .widget-prices .container {
  display: flex;
  flex-direction: column;
}

.wp-block-easy-affiliate-product-card .widget-prices .item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  gap: 15px;
}

.wp-block-easy-affiliate-product-card .widget-prices .item .left-container {
  flex: 0 0 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wp-block-easy-affiliate-product-card .widget-prices .item .brand-image {
  max-width: 100%;
  max-height: 40px;
}

.wp-block-easy-affiliate-product-card .widget-prices .item .center-container {
  flex: 1;
  min-width: 120px;
}

.wp-block-easy-affiliate-product-card .widget-prices .item .shop-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.wp-block-easy-affiliate-product-card .widget-prices .item .container-stars {
  display: flex;
  align-items: center;
}

.wp-block-easy-affiliate-product-card .widget-prices .item .star {
  color: #ffb800;
  margin-right: 2px;
}

.wp-block-easy-affiliate-product-card .widget-prices .item .price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 15px;
  min-width: 80px;
}

.wp-block-easy-affiliate-product-card .widget-prices .item .discount {
  color: #fa3030;
  font-weight: 600;
  font-size: 14px;
}

.wp-block-easy-affiliate-product-card .widget-prices .item .price {
  font-weight: 700;
  font-size: 18px;
}

.wp-block-easy-affiliate-product-card .widget-prices .item .button {
  background-color: var(--accent-color);
  color: #ffffff;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-block-easy-affiliate-product-card .widget-prices .item .button:hover {
  opacity: 0.9;
}

.wp-block-easy-affiliate-product-card
  .widget-prices
  .item
  .button
  .button-text {
  font-weight: 600;
  color: #ffffff;
}

.wp-block-easy-affiliate-product-card .widget-prices .item .button a,
.wp-block-easy-affiliate-product-card .widget-prices .item .button span {
  color: #ffffff;
  text-decoration: none;
  display: block;
}

/* Responsive */
@media (max-width: 767px) {
  .wp-block-easy-affiliate-product-card .container-content {
    flex-direction: column;
  }

  .wp-block-easy-affiliate-product-card .content-left {
    flex: 0 0 100%;
  }

  .wp-block-easy-affiliate-product-card .widget-benefits .container-benefits {
    flex-direction: column;
  }

  .wp-block-easy-affiliate-product-card .widget-prices .item {
    flex-wrap: wrap;
  }

  .wp-block-easy-affiliate-product-card .widget-prices .item .left-container {
    flex: 0 0 60px;
  }

  .wp-block-easy-affiliate-product-card .widget-prices .item .center-container {
    flex: 1;
  }

  .wp-block-easy-affiliate-product-card .widget-prices .item .price-container {
    flex: 0 0 100%;
    align-items: flex-start;
    margin-top: 10px;
    margin-right: 0;
  }

  .wp-block-easy-affiliate-product-card .widget-prices .item .button {
    flex: 0 0 100%;
    margin-top: 10px;
  }
}
