/*
 * CMPD-1791
 * Country switch
 */
.region > .country-switcher-notice-block, .region > .country-switcher-menu-block {
  display: none;
}

.country-switcher-menu-block.hide {
  display: none;
}
.country-switcher-menu-block .country-switch .selected-country .arrow-icon {
  display: inline-block;
  border: 5px solid transparent;
  border-top-color: white;
  position: absolute;
  top: 50%;
  margin-top: -3px;
}
.country-switcher-menu-block .country-switch.show-country .selected-country .arrow-icon {
  border-top-color: transparent;
  border-bottom-color: white;
  margin-top: -9px;
}

.country-switch .item-list ul {
  padding: 0.5em;
  margin: 0 !important;
  list-style-image: none;
  list-style-type: none;
  display: none;
}
.country-switch .item-list ul li {
  padding: 0;
  margin: 12px 0;
}
.country-switch .item-list ul li:last-child {
  margin-bottom: 0;
}
.country-switch .item-list ul a {
  display: block;
  padding: 5px 10px 5px 40px;
  line-height: 1.5;
  position: relative;
  color: #013F71 !important;
}
.country-switch .item-list ul a:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 22px;
  background: url('../images/flags-s7ca4d626f9.png');
  background-size: 100% auto;
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.country-switch .item-list ul a:hover {
  text-decoration: underline;
}
.country-switch.show-country .item-list ul {
  display: block;
}
.country-switch .selected-country .country-flag {
  position: relative;
  padding: 5px 10px 5px 40px;
  line-height: 1.5;
  display: inline-block;
  color: white;
  font-size: 12px;
}
.country-switch .selected-country .country-flag:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 22px;
  background: url('../images/flags-s7ca4d626f9.png');
  background-size: 100% auto;
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.country-switch .selected-country .country-flag.UK:before,
.country-switch .item-list ul a.UK:before {
  background-position: 0 83.33333%;
}
.country-switch .selected-country .country-flag.US:before,
.country-switch .item-list ul a.US:before {
  background-position: 0 100%;
}
.country-switch .selected-country .country-flag.AU:before,
.country-switch .item-list ul a.AU:before {
  background-position: 0 0;
}
.country-switch .selected-country .country-flag.NZ:before,
.country-switch .item-list ul a.NZ:before {
  background-position: 0 66.66667%;
}
.country-switch .selected-country .country-flag.ES:before,
.country-switch .item-list ul a.ES:before {
  background-position: 0 16.66667%;
}
.country-switch .selected-country .country-flag.ID:before,
.country-switch .item-list ul a.ID:before {
  background-position: 0 33.33333%;
}
.country-switch .selected-country .country-flag.IN:before,
.country-switch .item-list ul a.IN:before {
  background-position: 0 50%;
}

.country-switcher-notice-block {
  background-color: #013f71;
  color: white;
  position: fixed;
  width: 100%;
  z-index: 2;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -moz-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
  -moz-transition: all 0.5s linear;
  -o-transition: all 0.5s linear;
  -webkit-transition: all 0.5s linear;
  transition: all 0.5s linear;
}
.country-switcher-notice-block.show-switch-block {
  position: relative;
  filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
  opacity: 1;
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.country-switcher-notice-block .switch-country-main-content {
  max-width: 1170px;
  margin: 0 auto;
  padding: 15px;
  position: relative;
}
.country-switcher-notice-block .country-switch {
  float: left;
  width: 67%;
  margin-right: 5%;
  position: relative;
}
.country-switcher-notice-block .country-switch .selected-country {
  text-align: left;
  padding: 0 10px;
  border: 1px solid #20aeec;
  background-color: #035c9e;
  position: relative;
}
.country-switcher-notice-block .country-switch .selected-country .country-flag {
  font-size: 15px;
}
.country-switcher-notice-block .country-switch .selected-country .country-flag:before {
  border: 1px solid white;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.country-switcher-notice-block .country-switch .selected-country .arrow-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 14px;
  height: 14px;
  border: 0;
  margin-top: -7px;
  background: url(../images/icons/country-nav-down.png) no-repeat center;
  background-size: 100%;
}
.country-switcher-notice-block .country-switch ul {
  width: 100%;
  padding: 0;
  left: 0;
  margin-top: -1px !important;
  border: 1px solid #20aeec;
  background-color: #035c9e;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}
.country-switcher-notice-block .country-switch ul li {
  margin: 0;
  border-bottom: 1px solid #20aeec;
}
.country-switcher-notice-block .country-switch ul li:last-child {
  border-bottom: 0;
}
.country-switcher-notice-block .country-switch ul li a {
  padding: 8px 10px 8px 50px;
  color: white !important;
  font-size: 15px;
}
.country-switcher-notice-block .country-switch ul li a:before {
  left: 10px;
  border: 1px solid white;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.country-switcher-notice-block .country-switch.show-country .selected-country .arrow-icon {
  background-image: url(../images/icons/country-nav-up.png);
}
.country-switcher-notice-block .text {
  font-size: 20px;
}
.country-switcher-notice-block .button {
  float: left;
  width: 28%;
  height: 34px;
  line-height: 34px;
  background-color: #ccc;
  border: 0;
  text-align: center;
}
.country-switcher-notice-block .button a {
  display: block;
  color: #232323;
  text-decoration: none;
}
.country-switcher-notice-block .switch-close {
  cursor: pointer;
  position: absolute;
  width: 35px;
  height: 35px;
  right: 15px;
  background: url(../images/icons/close.png) no-repeat center;
  background-size: 80% auto;
}

@media screen and (min-width: 768px) {
  .has-country-switch {
    position: relative;
  }
  .has-country-switch > .navbar-nav {
    margin-right: 22% !important;
  }

  .country-switcher-menu-block {
    position: absolute;
    top: 0;
    right: 0;
    width: 20%;
    z-index: 5;
    margin-top: 3px;
  }
  .country-switcher-menu-block .country-switch ul {
    padding-left: 20px;
  }
  .country-switcher-menu-block .country-switch ul li:nth-child(2) {
    margin-top: 0;
  }
  .country-switcher-menu-block .country-switch .selected-country .country-flag {
    padding: 10px 10px 10px 40px;
  }
  .country-switcher-menu-block .country-switch ul a,
  .country-switcher-menu-block .country-switch .selected-country .country-flag {
    padding-left: 30px;
  }
  .country-switcher-menu-block .country-switch .close-arrow {
    display: none;
  }

  .country-switch ul {
    background-color: white;
    position: absolute;
    right: 0;
    top: 100%;
    padding: 0.5em 1em;
    -moz-border-radius: 1px;
    -webkit-border-radius: 1px;
    border-radius: 1px;
    -moz-box-shadow: 1px 1px 3px #bdbdbd;
    -webkit-box-shadow: 1px 1px 3px #bdbdbd;
    box-shadow: 1px 1px 3px #bdbdbd;
  }
  .country-switch ul a {
    white-space: nowrap;
  }
  .country-switch .selected-country {
    text-align: right;
    padding-right: 10px;
    position: relative;
    cursor: pointer;
  }
  .no-touch .country-switcher-menu-block .country-switch:hover ul {
    display: block;
  }
  .no-touch .country-switcher-menu-block .country-switch:hover .selected-country .arrow-icon {
    border-top-color: transparent;
    border-bottom-color: white;
    margin-top: -8px;
  }

  .country-switcher-notice-block .switch-country-main-content {
    padding-right: 55px;
  }
  .country-switcher-notice-block .text {
    width: 55%;
    float: left;
  }
  .country-switcher-notice-block .text p {
    margin-bottom: 0;
  }
  .country-switcher-notice-block .switch-country-list {
    width: 40%;
    float: right;
  }
}
@media screen and (min-width: 992px) {
  .has-country-switch > .navbar-nav {
    margin-right: 13% !important;
  }

  .country-switcher-menu-block {
    width: 12%;
  }
}
@media screen and (max-width: 767px) {
  .country-switcher-menu-block {
    position: relative;
    margin-top: -20px;
  }
  .country-switcher-menu-block .country-switch {
    padding: 0 0 1em;
  }
  .country-switcher-menu-block .country-switch ul {
    padding: 0.5em 15px;
  }
  .country-switcher-menu-block .country-switch ul:after {
    content: "";
    display: table;
    clear: both;
  }
  .country-switcher-menu-block .country-switch ul li {
    float: left;
    width: 50%;
    margin: 0 0 0.75em 0;
    padding-bottom: 0.75em;
    border-bottom: 1px solid #ccc;
  }
  .country-switcher-menu-block .country-switch ul li a {
    color: #337ab7 !important;
  }
  .country-switcher-menu-block .country-switch ul li a:before {
    width: 30px;
    height: 30px;
  }
  .country-switcher-menu-block .country-switch .selected-country {
    position: relative;
    padding: 12px 15px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
  }
  .country-switcher-menu-block .country-switch .selected-country .country-flag {
    padding-top: 6px;
    padding-bottom: 6px;
    color: #337ab7;
    font-size: 17px;
    line-height: 1;
  }
  .country-switcher-menu-block .country-switch .selected-country .country-flag:before {
    width: 30px;
    height: 30px;
  }
  .country-switcher-menu-block .country-switch .selected-country .arrow-icon {
    border: 0;
    width: 18px;
    height: 2px;
    background: #337ab7;
    right: 4px;
    border: 0;
    margin-top: -1px;
  }
  .country-switcher-menu-block .country-switch .selected-country .arrow-icon:before {
    content: "";
    width: 18px;
    height: 2px;
    background: #337ab7;
    position: absolute;
    top: 0;
    left: 0;
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
  }
  .country-switcher-menu-block .country-switch.show-country .selected-country {
    margin-bottom: 0.25em;
  }
  .country-switcher-menu-block .country-switch.show-country .selected-country .arrow-icon {
    margin-top: -1px;
  }
  .country-switcher-menu-block .country-switch.show-country .selected-country .arrow-icon:before {
    display: none;
  }

  .country-switcher-notice-block .text {
    width: 85%;
    font-size: 15px;
    margin-bottom: 1.75em;
  }
  .country-switcher-notice-block .country-switch ul {
    display: none;
    position: absolute;
    top: 100%;
  }
  .country-switcher-notice-block .button {
    font-size: 14px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
  }
  .country-switcher-notice-block .switch-close {
    width: 30px;
    height: 30px;
    right: 15px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .country-switcher-menu-block {
    margin-top: 5px;
  }
}
