@charset "UTF-8";

  @font-face {
    font-family: "OrkneyRegular";
    src:
    url("https://www.westporthotelgroup.ie/includes_westport_global/orkney.regular.otf");
  } 

  @font-face {
    font-family: "OrkneyRegular";
    src:url(https://www.castlecourthotel.ie/includes_westport_global/orkney.regular.otf) format("otf")
  }

  :root {
    --brand-white: #FFFFFF;
    --brand-grey: #7C7C7C;
    --brand-grey-2: #535353;
    --brand-grey-3: #CACACA;
    --brand-black: #000000;
    --brand-shadow: 0px 0px 20px 0px #0000006B;

    --brand-color: #A29E47; /* Brand color */
    --brand-color-rgb: 162, 158, 71;
    --brand-pressed: #68652E; /* Darker shade */
    --brand-hovered: var(--brand-grey-2);
    --branding-hovered: var(--brand-grey-2);
    
    --brand-background: #A29E4714;

    --font-stack-sans-serif: "OrkneyRegular", "Trebuchet MS", trebuchet, system-ui, sans-serif;
    
    --custom-transition: all 0.5s ease;


    --img-ratio-rate-primary: 4 / 3;
    --img-ratio-rate-primary-mobile: 4 / 3;
    --img-ratio-rate-secondary: 4 / 3;
    --img-ratio-rate-secondary-mobile: 4 / 3;
    --img-ratio-mda-secondary-rate: 4 / 3;
    --img-ratio-mda-secondary-rate-mobile: 4 / 3;
  }


  /*------------------------------------------------------------------------------------------------------*/
  @media screen {

    /* --- various customer requests --- */
    #ipulse .card-grid--unavailable > .card-grid__image .avvio-image__image {
      filter: unset;
    }
    
    .header a i,
    .backtotop a i,
    .footer a i {
      margin-right: 0px;
    }
    
    .main-be-area {
      background-color: transparent;
    }

    .button__text {
      text-transform: uppercase;
      font-family: var(--font-stack-sans-serif);
    }

    .avvio-calendar__date,
    .button, 
    .button--secondary,
    .button--branded {
      transition: var(--custom-transition);
      
    }
    
    body {
      background-color: var(--brand-background);
    }
    
    .header {
      display: flex;
      justify-content: center;
      align-items: center;
      
      background-color: var(--brand-grey);
      box-shadow: var( --brand-shadow);
      
      padding-block: 8px;
      padding-inline: 16px;
      border-bottom: 1px solid var(--border-default);
      z-index: 4;
    }
    
    .header .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      
      width: 100%;
      max-width: 990px;
    }
    
    .header .invisible-flex-item {
      display: none;
    }
    
    .header .logo {
      background-image: none; /* Over riding external css files to import fonts */
      
      padding-block: 10px;
    }
    
    .header .logo img {
      display: block;
      
      height: 60px;
      width: auto;
      
      transition: var(--custom-transition);
    }
    
    .header .logo:hover img {
      filter: invert(25%);
    }
    
    .header .backtosite a {
      display: flex;
      justify-content: center;
      align-items: center;
      
      background-color: var(--brand-color);
      box-shadow: inset 0 1px 0 0 var(--brand-pressed);
      color: var(--brand-white);
      
      font-size: 14px;
      font-weight: 400;
      letter-spacing: 2px;
      line-height: 28px;
      text-align: center;
      text-transform: uppercase;
      
      padding-inline: 30px;
      padding-top: 7px;
      padding-bottom: 4px;
      border: 1px solid var(--brand-color);
      
      transition: var(--custom-transition);
    }
    
    .header .backtosite:hover a {
      border-color: var(--brand-grey-2);
      background-color: var(--brand-grey-2);
    }
    
    /* --- Buttons in "personalised message" on confirmation page (This user linking to Trybe page) --- */
    .custom-message-container .paragraph a {
      display: flex;
      
      color: var(--brand-white);
      background-color: var(--brand-color);
      border: 1px solid var(--brand-color);
      outline: 1px solid var(--brand-color);
      
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.5px;
      line-height: 32px;
      text-align: center;
      text-transform: uppercase;
      
      width: fit-content;
      padding-block: 10px;
      padding-inline: 20px;
      margin-top: 10px;
      
      transition: var(--custom-transition);
    }
    
    .custom-message-container .paragraph a:hover {
      background-color: var(--brand-pressed);
      border: 1px solid var(--brand-pressed);
      outline: 1px solid var(--brand-pressed);
    }
    
    .backtotop {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      
      /* background-color: var(--brand-background); */
      
      width: 100%;
    }
    
    .backtotop a {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      
      background-color: var(--brand-color);
      
      width: 69px;
      height: 36px;
      border-top-left-radius: 50%;
      border-top-right-radius: 50%;
      top: 10px;
      
      transition: var(--custom-transition);
    }
    
    .backtotop a:hover {
      background-color: var(--brand-pressed);
      
      top: 0px;
    }
    
    .backtotop svg {
      fill: var(--brand-white);
      
      width: 30px;
    }
    
    .footer {
      display: flex;
      flex-direction: column;
      align-items: center;
      
      background-color: var(--brand-grey);
      color: var(--brand-white);
      
      font-size: 17px;
      line-height: 25.5px;
      text-align: center;
      
      padding-top: 30px;
      gap: 10px;
      z-index: 1;
    }
    
    .footer .container {
      display: flex;
      flex-direction: column;
      
      gap: 14px;
      width: 100%;
    }
    
    .footer .socials {
      display: flex;
      justify-content: center;
      align-items: center;
      
      gap: 12px;
    }
    
    .footer .socials a[href = "NONE"] { /* If a site doesn't have a socials link, then hide it's box */
      display: none;
    }
    
    .footer .socials a {
      display: flex;
      justify-content: center;
      align-items: center;
      
      color: var(--brand-grey);
      background-color: var(--brand-white);
      
      font-size: 25px;
      
      aspect-ratio: 1 / 1;
      width: 42px;
      height: 42px;
      padding: 8px;
      border-radius: 50%;
      
      transition: var(--custom-transition);
    }
    
    .footer .socials a:hover {
      background-color: var(--brand-color);
    }
    
    .footer .socials a svg {
      fill: var(--brand-grey);
      
      max-width: 30px;
    }
    
    .footer .address {

    }
    
    .footer .address br {
      display: none;
    }
    
    .footer .contact {
      color: var(--brand-grey-3);
    }
    
    .footer .contact a {
      color: var(--brand-white);
      
      transition: var(--custom-transition);
    }
    
    .footer .contact a:hover {
      color: var(--brand-color);
    }
    
    .footer .contact br {
      display: none;
    }
    
    .footer .seals {}
    
    .footer small {
      font-size: 17px;
      line-height: 25.5px;
      text-transform: lowercase;
      
      width: 100%;
      padding-top: 20px;
      padding-bottom: 20px;
      border-top: 1px solid var(--brand-color);
    }
    
    .footer small a {
      color: var(--brand-grey-3);
      
      transition: var(--custom-transition);
    }
    
    .footer small a:hover {
      color: var(--brand-white);
    }
    
  }


  @keyframes fadein {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes slideshow {
    0% {
      background-image: url("http://avviohosting.com/abandonment/westport-group/castlecourt/abmesslider-1.jpg");
      transform: rotate(3deg);
    }
    24.9% {
      background-image: url("http://avviohosting.com/abandonment/westport-group/castlecourt/abmesslider-1.jpg");
      transform: rotate(3deg);
    }
    25% {
      background-image: url("http://avviohosting.com/abandonment/westport-group/castlecourt/abmesslider-2.jpg");
      transform: rotate(-3deg);
    }
    49.9% {
      background-image: url("http://avviohosting.com/abandonment/westport-group/castlecourt/abmesslider-2.jpg");
      transform: rotate(-3deg);
    }
    50% {
      background-image: url("http://avviohosting.com/abandonment/westport-group/castlecourt/abmesslider-3.jpg");
      transform: rotate(3deg);
    }
    74.9% {
      background-image: url("http://avviohosting.com/abandonment/westport-group/castlecourt/abmesslider-3.jpg");
      transform: rotate(3deg);
    }
    75% {
      background-image: url("http://avviohosting.com/abandonment/westport-group/castlecourt/abmesslider-4.jpg");
      transform: rotate(-3deg);
    }
    100% {
      background-image: url("http://avviohosting.com/abandonment/westport-group/castlecourt/abmesslider-4.jpg");
      transform: rotate(-3deg);
    }  
  }



  /* --- Abandonment message --- */
  #exitIntentWrapper { /* Affects the entire abandonment message, incld the shadowy backgroup that overlays the entire viewport */
    font-family: var(--font-stack-sans-serif);
    transition: var(--custom-transition);
    animation: fadein 5s;
  }

  .exitIntentContainer.color .exitIntentContent,
  #exitIntentPopupContainer { /* Stuff that only affects the rectangle that the message is displayed on */
    background-color: #EFEFEF;
    box-shadow: none;
    border-radius: 3px;

    width: 830px;
    height: 280px;
    /*    margin-top: 100px;*/
    padding-inline: 10px;
    /*padding-bottom: 0px;*/
  }

  #exitIntentHeading { /* Hide the abandonment title */
    display: none;
  }

  #allContent { /* Flex as row so images for slideshow (::after) are in row */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  #allContent #exitIntentText { /* text content, want it in column */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    gap: 10px;
  }

  #allContent .exitIntentDesc img { /* Abndmnt message header logo */
    width: 100px; 
  }

  p.term-text {
    padding: 6px 12px;
    color: #494a3a;
    font-size: 12px !important;
    margin-top: -10px;
    margin-bottom: 20px;
  }

  .mediumFont .exitIntentSpacing { /* 30px margin being applied to all text content, not sure of source so trying to remove. */
    margin: 0px !important;
  }

  #allContent::after { /* Flexbox test element. Will endeavour to fill this with the image roll, I think. Animate the background image and the transform */
    content: "";
    border-style: solid;
    border-width: 10px;
    border-color: #FFFFFF;
    box-shadow: 10px 10px 10px -10px var(--brand-black);
    width: 350px; /* Setting this at 510px computes at 350px. No idea where the discrepoency is coming from. */
    height: 290px; 

    background-image: url(http://avviohosting.com/abandonment/westport-group/castlecourt/abmesslider-1.jpg); /* Animate this */
    background-size: cover;
    transform: rotate(3deg); /* Animate this */

    animation: 14s slideshow infinite;
  }

  #exitIntentText p { /* All p elements, the phrase "Your dream escape is waiting" in this context */ 
    font-size: 20px;
    font-weight: 300;
  }

  #allContent h2 {
    text-transform: uppercase;
    font-size: 32px;
    font-weight: 400;
    margin: 0px;
  }

  p#exitIntentAction {
    display: flex;
    justify-content: center;
    align-items: center;
    /*padding: 10px 60px;
    background-color: var(--brand-color);
    color: var(--brand-white);
    border: 1px solid var(--brand-color);
    transition: var(--custom-transition);*/
  }

  p#exitIntentAction a {
    font-family: var(--font-stack-sans-serif);
    padding: 10px 20px;
    background-color: var(--brand-color);
    color: var(--brand-white);
    text-transform: uppercase;
    border: 1px solid var(--brand-color);
    transition: var(--custom-transition);
  }

  p#exitIntentAction a:hover {
    background-color: var(--brand-grey-2);
    color:  var(--brand-white);
    border: 1px solid var(--brand-grey-2);
  }

  /*p#exitIntentAction:hover {
    background-color: var(--brand-grey-2);
    color:  var(--brand-white);
    border: 1px solid var(--brand-grey-2);
  }*/

  /*p#exitIntentAction:hover a {
    color:  #494A3A;
  }*/

  #exitIntentCtaButton {
    color: #ECEDE7;
    font-size: 20px;
    font-weight: 300;
    text-align: center;
    text-transform: capitalize; 

    width: 258px;
    /*    height: 20px;*/
    padding: 11px;

    transition: var(--custom-transition);
  }

  #exitIntentCtaButton:hover {
    color: #494A3A;
    background-color: #ECEDE7;
  }

  .button-icon .button-icon__icon {
    color: var(--brand-white);
  }



  /* ----- Tablet specific ----- */
  @media screen and (max-width: 999px) {

    .header .backtosite a {
      padding-inline: 20px;
    }

    #exitIntentPopupContainer {
      width: 75%;
      height: 60%;
      padding-inline: 10px;
      padding-bottom: 0px;
      /*    margin-top: 100px;*/
    }

    #allContent #exitIntentText {
      width: 75%;
    }

    #allContent {
      flex-direction: column;

      margin-top: 100px;
    }

    #allContent::after {
      margin-block: 30px;
    }
    
  }

  @media screen and (max-width: 750px) {

    .exitIntentContent {
      align-items: flex-start;
    }

    #allContent {
      margin-top: 0;
    }

    #allContent h2 {
      font-size: 26px;
    }

  }



  /* ----- Mobile specific ----- */
  @media screen and (max-width: 499px) {

    .header {
      padding-block: 16px;
      padding-inline: 0px;
    }
    
    .header .container {
      justify-content: center;
    }
    
    .header .logo {
      padding-block: 10px;
    }
    
    .header .backtosite {
      display: none;
    }
    
    .footer .address br {
      display: block;
    }
    .footer .contact br {
      display: block;
    }

    #allContent::after {
      width: 100%;
    }

    #exitIntentCtaButton {
      font-size: 0.75em;

      /*    height: 20px;*/
      width: 100%;
      max-width: 258px;
    }

    p#exitIntentAction {
      padding: 10px 30px;
    }
    
  }