/**
 * Protect+ Styles
 *
 * All styles related to the Protect+ damage waiver protection feature.
 * This file can be removed to disable all Protect+ styling.
 */

/* ========================================
   Protect+ Host Landing Page Styles
   ======================================== */

.protect-plus-host-notification {
  gap: 120px;
}

.protect-plus-host-notification-left {
  width: 357px;
}

.protect-plus-host-logo-text {
  font-size: 36px;
  line-height: 1.35;
}

/* Responsive - tablet */
@media (max-width: 991px) {
  .protect-plus-host-notification {
    gap: 40px;
  }

  .protect-plus-host-notification-left {
    width: 280px;
  }

  .protect-plus-host-logo-text {
    font-size: 28px;
  }
}

/* Responsive - mobile */
@media (max-width: 767px) {
  .protect-plus-host-notification {
    flex-direction: column;
    gap: 24px;
  }

  .protect-plus-host-notification-left {
    width: 100%;
  }

  .protect-plus-host-logo-text {
    font-size: 24px;
  }
}

/* ========================================
   Protect+ Listing Card Badge
   ======================================== */

.protect-plus-listing-badge {
  border-radius: 8px;
  padding: 6px 8px;
  gap: 4px;
  max-width: 140px;
}

.protect-plus-listing-badge-icon {
  width: 16px;
  height: 16px;
}

.protect-plus-listing-badge-text {
  font-size: 12px;
}

@media (min-width: 768px) {
  .protect-plus-listing-badge {
    padding: 8px 12px;
    gap: 8px;
    max-width: none;
  }

  .protect-plus-listing-badge-icon {
    width: 24px;
    height: 24px;
  }

  .protect-plus-listing-badge-text {
    font-size: 15px;
  }
}

/* ========================================
   Protect+ Search Results Card Badge (smaller)
   ======================================== */

.protect-plus-card-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  border-radius: 8px;
  padding: 5px 7px;
  gap: 4px;
}

.infoBox .protect-plus-card-badge {
  bottom: -7px;
}

.protect-plus-card-badge-icon {
  width: 16px;
  height: 16px;
}

.protect-plus-card-badge-text {
  font-size: 10px;
}

/* ========================================
   Protect+ Listing Edit Section Styles
   ======================================== */

.protect-plus-section {
  padding-bottom: 1.5rem;
}

/* Intro Card - matches Figma design */
.protect-plus-intro-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(43, 50, 82, 0.05);
  border-radius: 20px;
  padding: 1.5rem 2rem;
}

.protect-plus-intro-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 0.75rem;
}

.protect-plus-badge-img {
  display: block;
}

.protect-plus-logo-text {
  font-size: 1.25rem;
  color: var(--blue);
  margin: 0;
  text-align: center;
  line-height: 1.35;
}

.protect-logo-towlos {
  font-weight: 500;
}

.protect-logo-plus {
  font-weight: 900;
}

.protect-plus-intro-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.protect-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--blue);
  font-weight: 500;
  line-height: 1.35;
}

.protect-feature-item svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.protect-feature-item a {
  color: var(--blue);
  text-decoration: underline;
}

/* Responsive - stack on mobile */
@media (max-width: 767px) {
  .protect-plus-intro-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .protect-feature-item {
    text-align: left;
  }
}

.protect-plus-loading {
  background: #f8f9fa;
  border-radius: 8px;
}

.protect-plan-card {
  background: #ffffff;
  transition: all 0.2s ease;
  border-color: var(--blue) !important;
}

.protect-plan-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.protect-plan-price {
  font-size: 1.125rem;
  color: var(--blue);
}

/* ========================================
   Protect+ Checkout Styles
   ======================================== */

/* Intro Card */
.protect-plus-checkout-intro {
  background: rgba(43, 50, 82, 0.05);
}

.protect-plus-checkout-logo-text {
  font-size: 1.25rem;
  color: var(--blue);
  text-align: center;
  line-height: 1.35;
}

.protect-plus-checkout-feature {
  font-size: 0.9375rem;
  color: var(--blue);
  font-weight: 500;
  line-height: 1.35;
}

.protect-plus-checkout-feature svg {
  margin-top: 2px;
}

.protect-plus-checkout-feature a {
  color: var(--blue);
}

/* Description */
.protect-plus-checkout-description {
  font-size: 0.9375rem;
  color: var(--blue);
  font-weight: 500;
  line-height: 1.35;
}

/* Plan Card */
.protect-plus-plan-card {
  flex: 1;
  background: #ffffff;
  border: 3px solid var(--grey);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  position: relative;
}

.protect-plus-plan-card:hover {
  border-color: var(--blue);
}

/* Use inset box-shadow to make unselected border appear thinner while maintaining size */
.protect-plus-plan-card:not(.selected) {
  box-shadow: inset 0 0 0 2px white;
}

.protect-plus-plan-card.selected {
  border-color: var(--red);
  box-shadow: none;
}

/* Hide radio buttons in plan cards */
.protect-plus-plan-card .protect-plus-plan-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Plan Content */
.protect-plus-plan-content {
  flex: 1;
}

/* Plan Badge */
.protect-plus-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--blue-50);
  border-radius: 1000px;
  padding: 0.5rem 0.75rem;
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  line-height: 1;
  height: 24px;
}

/* Check Icon */
.protect-plus-plan-check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

/* Unselected state: show empty circle */
.protect-plus-plan-check .protect-plus-icon-unselected {
  display: block;
  color: var(--grey);
}

.protect-plus-plan-check .protect-plus-icon-selected {
  display: none;
  color: var(--red);
}

/* Selected state: show filled checkmark */
.protect-plus-plan-card.selected .protect-plus-plan-check .protect-plus-icon-unselected {
  display: none;
}

.protect-plus-plan-card.selected .protect-plus-plan-check .protect-plus-icon-selected {
  display: block;
}

/* Title & Price */
.protect-plus-plan-name,
.protect-plus-plan-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.35;
}

.protect-plus-plan-price-suffix {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Plan Description */
.protect-plus-plan-description {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--blue);
  line-height: 1.35;
}

/* Responsive - Tablet and smaller */
@media (max-width: 991px) {
  .protect-plus-checkout-intro {
    flex-direction: column;
  }

  .protect-plus-checkout-badge {
    flex-direction: row !important;
    width: 100%;
    justify-content: flex-start;
  }

  .protect-plus-checkout-badge img {
    width: 48px;
    height: 48px;
  }

  .protect-plus-checkout-logo-text {
    font-size: 1.125rem;
  }

  .protect-plus-checkout-plans {
    flex-direction: column;
  }
}

/* ========================================
   Protect+ Page Styles
   ======================================== */

.protect-plus-page-badge {
  width: 48px;
  height: 48px;
}

.protect-plus-page-title {
  font-size: 24px;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .protect-plus-page-badge {
    width: 120px;
    height: 120px;
  }

  .protect-plus-page-title {
    font-size: 56px;
  }
}

/* Avatar group */
.protect-plus-avatars {
  position: relative;
}

.protect-plus-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.protect-plus-avatar:not(:first-child) {
  margin-left: -24px;
}

.protect-plus-avatar-center {
  width: 72px;
  height: 72px;
  position: relative;
  z-index: 1;
}
