/*
  FINAL WEBSITE BUTTON FIX
  This is the only change: force Website buttons into the approved style-guide shape.
  No JavaScript. No DOM mutation. No event/click changes.
*/

/* Remove prior broken inline/pseudo icon treatments on website buttons */
.website-button .action-icon,
.website-button .button-icon,
.website-button .icon,
.action-website .action-icon,
.action-website .button-icon,
.action-website .icon,
.website-link-button .action-icon,
.website-link-button .button-icon,
.website-link-button .icon,
.lb-approved-website-button .action-icon,
.lb-approved-website-button .button-icon,
.lb-approved-website-button .icon {
  display: none !important;
}

/* Approved style-guide Website button */
.website-button,
.action-website,
.website-link-button,
.lb-approved-website-button {
  box-sizing: border-box !important;
  width: fit-content !important;
  min-width: 300px !important;
  max-width: min(100%, 430px) !important;
  min-height: 74px !important;
  height: 74px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  padding: 10px 22px 10px 12px !important;
  margin: 10px 0 !important;
  border-radius: 999px !important;
  border: 2px solid rgba(120, 160, 230, .55) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 28px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: -0.035em !important;
  text-shadow: 0 2px 2px rgba(0,0,0,.42) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.28), rgba(255,255,255,0) 30%),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 38%),
    linear-gradient(135deg, #1e3f9a 0%, #123589 48%, #08245f 100%) !important;
  box-shadow:
    0 12px 28px rgba(8, 31, 88, .30),
    inset 0 2px 0 rgba(255,255,255,.33),
    inset 0 -3px 0 rgba(0,0,0,.26) !important;
  overflow: hidden !important;
  isolation: isolate !important;
  -webkit-tap-highlight-color: transparent !important;
  transform: none !important;
}

/* Create exactly one approved globe medallion */
.website-button::before,
.action-website::before,
.website-link-button::before,
.lb-approved-website-button::before {
  content: "🌐" !important;
  box-sizing: border-box !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  border-radius: 999px !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 27px !important;
  line-height: 1 !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.42), rgba(255,255,255,0) 45%),
    linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.06)) !important;
  border: 2px solid rgba(255,255,255,.30) !important;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.28),
    inset 0 -3px 0 rgba(0,0,0,.16),
    0 7px 16px rgba(0,0,0,.16) !important;
  text-shadow: none !important;
  flex: 0 0 54px !important;
}

/* Create one right chevron */
.website-button::after,
.action-website::after,
.website-link-button::after,
.lb-approved-website-button::after {
  content: "›" !important;
  display: inline-block !important;
  margin-left: auto !important;
  color: #fff !important;
  font-size: 46px !important;
  line-height: .7 !important;
  font-weight: 250 !important;
  text-shadow: 0 2px 3px rgba(0,0,0,.48) !important;
}

/* Hide old arrow child if present so there is not a double chevron */
.website-button .action-arrow,
.website-button .button-arrow,
.website-button .chevron,
.action-website .action-arrow,
.action-website .button-arrow,
.action-website .chevron,
.website-link-button .action-arrow,
.website-link-button .button-arrow,
.website-link-button .chevron,
.lb-approved-website-button .action-arrow,
.lb-approved-website-button .button-arrow,
.lb-approved-website-button .chevron {
  display: none !important;
}

/* Make sure text stays centered beside one icon */
.website-button .action-label,
.website-button .button-label,
.action-website .action-label,
.action-website .button-label,
.website-link-button .action-label,
.website-link-button .button-label,
.lb-approved-website-button .action-label,
.lb-approved-website-button .button-label {
  color: #fff !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 2px rgba(0,0,0,.42) !important;
}

/* If the broken website button is only classed as a generic website-ish old button, catch it by class.
   This avoids touching TripAdvisor, Maps, Tickets, Memory Moment, and TfL. */
a[class*="website" i],
button[class*="website" i] {
  box-sizing: border-box !important;
  width: fit-content !important;
  min-width: 300px !important;
  max-width: min(100%, 430px) !important;
  min-height: 74px !important;
  height: 74px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  padding: 10px 22px 10px 12px !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.28), rgba(255,255,255,0) 30%),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 38%),
    linear-gradient(135deg, #1e3f9a 0%, #123589 48%, #08245f 100%) !important;
  border: 2px solid rgba(120, 160, 230, .55) !important;
  color: #fff !important;
  box-shadow:
    0 12px 28px rgba(8, 31, 88, .30),
    inset 0 2px 0 rgba(255,255,255,.33),
    inset 0 -3px 0 rgba(0,0,0,.26) !important;
}

@media (max-width: 430px) {
  .website-button,
  .action-website,
  .website-link-button,
  .lb-approved-website-button,
  a[class*="website" i],
  button[class*="website" i] {
    min-width: 300px !important;
    max-width: min(100%, 430px) !important;
    min-height: 74px !important;
    height: 74px !important;
    font-size: 28px !important;
  }
}