/**
 * Wirecutter Price Buttons - Exact CSS Replication
 *
 * 원본: https://www.nytimes.com/wirecutter/reviews/
 *
 * 주요 클래스:
 * - .b279b202: price box container
 * - .b50e01ee: price button link
 * - .product-pricebox-0: additional styling
 */

/* ========================================
   Enhanced CTA Button Design
   ======================================== */
.price-button-container {
  position: relative;
  display: block;
  margin-top: 12px;     /* "추천" 배지 공간 확보 */
  margin-bottom: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0;
  background-color: #ffffff;
  transition: all 0.3s ease;
  overflow: visible;    /* 배지가 잘리지 않도록 visible로 변경 */
}

.price-button-container:hover {
  border-color: #00A5CF;
  box-shadow: 0 4px 12px rgba(0, 165, 207, 0.15);
  transform: translateY(-2px);
}

.price-button-container:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 165, 207, 0.1);
}

/* ========================================
   CTA Button Link
   ======================================== */
.price-button-link {
  display: block;
  padding: 20px 24px;
  text-decoration: none;
  color: #000000;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.price-button-link:hover {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.price-button-link:focus {
  outline: 2px solid #00A5CF;
  outline-offset: 2px;
}

.price-button-link:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================
   Button Header (Store Icon + Name)
   ======================================== */
.button-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.store-icon {
  font-size: 20px;
  line-height: 1;
}

.store-name {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  letter-spacing: -0.01em;
}

/* ========================================
   Price Display
   ======================================== */
.price-display {
  margin-bottom: 12px;
}

.price-amount {
  font-size: 28px;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.02em;
}

/* ========================================
   CTA Row ("지금 구매하기 →")
   ======================================== */
.cta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-text {
  font-size: 15px;
  font-weight: 600;
  color: #007799; /* Darker for WCAG AA contrast (4.5:1) */
}

.cta-arrow {
  font-size: 16px;
  color: #007799; /* Darker for WCAG AA contrast (4.5:1) */
  transition: transform 0.2s ease;
}

.price-button-link:hover .cta-arrow {
  transform: translateX(4px);
}

/* ========================================
   Priority Badge (추천)
   ======================================== */
.priority-badge {
  display: inline-block;
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background-color: #ff6b00;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  .b50e01ee {
    font-size: 18px;
  }

  .b50e01ee .price,
  .b50e01ee .separator,
  .b50e01ee .store-name {
    font-size: 18px;
  }

  .b279b202 {
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .b50e01ee {
    font-size: 16px;
  }

  .b50e01ee .price,
  .b50e01ee .separator,
  .b50e01ee .store-name {
    font-size: 16px;
  }

  .b279b202 {
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .priority-badge {
    font-size: 10px;
    padding: 3px 10px;
    top: -8px;
    right: 12px;
  }
}

/* ========================================
   Deal Price (할인가 표시)
   ======================================== */
.b50e01ee del {
  color: #999999;
  margin-right: 8px;
  font-weight: 400;
}

/* ========================================
   Focus Accessibility
   ======================================== */
.b50e01ee:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.b50e01ee:focus:not(:focus-visible) {
  outline: none;
}
