/**
 * Contest Thank You Block Styles
 */

/* ========== MAIN WRAPPER ========== */
.contest-ty {
  width: 100%;
}

/* ========== HERO SECTION (gold gradient background) ========== */
.contest-ty__hero {
  padding: 40px 32px 48px;
  text-align: center;
}

/* ========== LOGO (centered, overlapping the card top) ========== */
.contest-ty__logo-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 3;
  margin-bottom: -28px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contest-ty__logo {
  max-width: 220px;
  height: auto;
  display: block;
}

/* ========== WHITE HERO CARD with gold border (gift wrap frame) ========== */
.contest-ty__hero-card {
  text-align: left;
}

/* ========== RIBBON / BOW DECORATION ========== */
.contest-ty__hero-ribbon {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  max-width: 30% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  pointer-events: none !important;
  z-index: 1 !important;
  width: 30%;
  height: 100%;
  object-position: right;
  top: 25px;
}

/* ========== HERO CONTENT (left side of card) ========== */
.contest-ty__hero-content {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.contest-ty__heading {
  font-family: 'Arboria', system-ui, sans-serif;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.2;
}

.contest-ty__body {
  line-height: 1.6;
  text-align: left;
}

.contest-ty__body p {
  margin: 0 0 12px;
}

.contest-ty__body p:last-child {
  margin-bottom: 0;
}

.contest-ty__cta {
  margin-top: 16px;
  align-self: stretch;
}

.contest-ty__button {
  display: inline-block;
  text-decoration: none;
  transition: all 200ms ease;
  cursor: pointer;
}

/* ========== DEAL CARDS SECTION ========== */
.contest-ty__deals {
  padding: 48px 24px;
}

.contest-ty__deals-container {
  margin: 0 auto;
}

.contest-ty__deals-grid {
  display: grid;
}

/* ========== INDIVIDUAL DEAL CARD ========== */
.contest-ty__deal-card {
  display: flex;
  flex-direction: column;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 200ms ease;
}

.contest-ty__deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #DA6630;
}

.contest-ty__deal-image {
  background-color: #f9fafb;
  overflow: hidden;
  position: relative;
}

.contest-ty__deal-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.contest-ty__deal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 300ms ease;
}

.contest-ty__deal-card:hover .contest-ty__deal-image img {
  transform: scale(1.05);
}

.contest-ty__deal-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  position: relative;
}

.contest-ty__deal-merchant {
  display: inline-block;
  width: fit-content;
  position: absolute;
  top: -12px;
  left: 24px;
  z-index: 2;
}


.contest-ty__deal-title {
  font-family: 'Arboria', system-ui, sans-serif;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.contest-ty__deal-button {
  display: inline-block !important;
  width: fit-content !important;
  cursor: pointer;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .contest-ty__hero {
    padding: 32px 16px 40px;
  }

  .contest-ty__logo-wrapper {
    margin-bottom: -20px;
  }

  .contest-ty__logo {
    max-width: 160px;
  }

  .contest-ty__hero-card {
    min-height: auto;
  }

  .contest-ty__hero-content {
    max-width: 100%;
  }

  .contest-ty__hero-ribbon {
    opacity: 0.2;
  }

  .contest-ty__deals-grid {
    grid-template-columns: 1fr !important;
  }

  .contest-ty__deals {
    padding: 32px 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .contest-ty__hero-content {
    max-width: 55%;
  }
}