/* Responsive operational-status presentation for the Gibraltar Customs Clearance guide. */

.customs-status-table-wrap {
  margin: 14px 0 12px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blurb-about .customs-status-table {
  border-collapse: collapse;
  color: #454545;
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px;
  line-height: 20px;
  table-layout: fixed;
  width: 100%;
}

.customs-status-table caption {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.customs-status-table col:nth-child(1) {
  width: 23%;
}

.customs-status-table col:nth-child(2) {
  width: 13%;
}

.customs-status-table col:nth-child(3) {
  width: 64%;
}

.customs-status-table th,
.customs-status-table td {
  border: 1px solid #d8d2d4;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  padding: 10px 11px;
  text-align: left;
  vertical-align: middle;
}

.customs-status-table th {
  background: #2c3579;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.customs-status-table td:first-child {
  font-weight: 700;
}

.customs-status-table tbody tr:nth-child(even) td:not(.customs-status) {
  background: #fbf9fa;
}

.customs-status-table .customs-status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.customs-status-table .customs-status--green {
  background: #a9d18e;
  color: #1f3b1d;
}

.customs-status-table .customs-status--amber {
  background: #f4b183;
  color: #4a2a12;
}

.customs-status-table .customs-status--red {
  background: #a93255;
  color: #ffffff;
}

.blurb-about .customs-status-key {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  display: block;
  font-size: 13px;
  line-height: 20px;
  margin: 0 0 24px;
  padding: 0;
}

.customs-status-key__label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.customs-status-key__item {
  align-items: center;
  display: flex;
  gap: 5px;
  margin-top: 3px;
}

.customs-status-key__dot {
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 9px;
  height: 9px;
  width: 9px;
}

.customs-status-key__dot--green {
  background: #79aa5b;
}

.customs-status-key__dot--amber {
  background: #df8b4f;
}

.customs-status-key__dot--red {
  background: #a93255;
}

.published-by-wrapper.doing_business_bd .published-text-1,
.published-by-wrapper.doing_business_es_bd .published-text-1 {
  color: #2c3579;
  font-style: italic;
  font-weight: 700;
}

.published-by-wrapper.doing_business_bd .published-text-2,
.published-by-wrapper.doing_business_es_bd .published-text-2 {
  font-style: italic;
}

@media (max-width: 899px) {
  .post-splash-overlay .recommend-text-top {
    align-items: flex-start;
    display: flex;
    height: auto;
    min-height: 0;
    padding-left: 0;
  }

  .post-splash-overlay .recommend-text-top span {
    display: block;
    min-width: 0;
  }

  .post-splash-overlay .splash-comments img {
    display: block;
    flex: 0 0 auto;
    margin: 2px 10px 0 0;
    vertical-align: initial;
  }
}

@media (max-width: 650px) {
  .customs-status-table-wrap {
    overflow: visible;
  }

  .blurb-about .customs-status-table,
  .customs-status-table tbody,
  .customs-status-table tr,
  .customs-status-table td {
    display: block;
    width: 100%;
  }

  .customs-status-table colgroup,
  .customs-status-table thead {
    display: none;
  }

  .customs-status-table tr {
    border: 1px solid #d8d2d4;
    border-radius: 7px;
    margin-bottom: 12px;
    overflow: hidden;
  }

  .customs-status-table td {
    border: 0;
    border-bottom: 1px solid #e7e2e4;
    padding: 10px 12px;
  }

  .customs-status-table td:last-child {
    border-bottom: 0;
  }

  .customs-status-table td::before {
    color: #766d70;
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
    text-transform: uppercase;
  }

  .customs-status-table td:first-child {
    background: #f1f3fb !important;
    border-left: 4px solid #2c3579;
    color: #2c3579;
    font-size: 14px;
  }

  .customs-status-table .customs-status {
    text-align: left;
  }

  .customs-status-table .customs-status::before {
    color: inherit;
    display: inline;
    margin-right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customs-status-table-wrap {
    scroll-behavior: auto;
  }
}
