/*
 * Look of the Global Coverage blocks, ported from the portal page
 * (original/paymentMethods.php). Every selector is under .global-coverage so
 * nothing leaks into the surrounding theme.
 */
.global-coverage .div-animation,
.global-coverage.div-animation {
  position: relative;
  animation: gc-div-move 0.75s;
}
@keyframes gc-div-move {
  0% { opacity: 0; left: -10%; }
  50% { opacity: 0.25; }
  75% { opacity: 0.5; }
  100% { opacity: 1; left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .global-coverage .div-animation,
  .global-coverage.div-animation { animation: none; }
}

/* Tabs, region navigation and the filter bar. */
.global-coverage .cp-tabs { margin: 0 0 .75em; }
.global-coverage .nav-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; list-style: none; margin: 0 0 1em; padding: 0; }
.global-coverage .nav-tabs > li { margin: 0; padding: 0 .5em; list-style: none; }
.global-coverage .nav-tabs > li.tablinks,
.global-coverage .nav-tabs > li.regionlinks { padding: 0; }
.global-coverage .nav-tabs > li.tablinks > a,
.global-coverage .nav-tabs > li.regionlinks > a { display: block; padding: 6px 12px 3px; text-decoration: none; border-bottom: 3px solid transparent; }
.global-coverage .nav-tabs > li.active > a { border-bottom-color: #26d9dc; font-weight: bold; }
.global-coverage .nav-tabs > li.search-container::after,
.global-coverage .nav-tabs > li.dropdown-item::after,
.global-coverage .nav-tabs > li.more-filters-item::after { display: none; content: none; }

/* Search box. */
.global-coverage .search-container { position: relative; display: flex; align-items: center; height: 32px; width: 234px; max-width: 100%; padding: 0; }
.global-coverage .search-input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  padding: 5px 30px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
}
.global-coverage .search-icon { position: absolute; left: 10px; top: 8px; width: 16px; height: 16px; margin: 0; pointer-events: none; }
.global-coverage .remove-search-icon { position: relative; right: 12px; height: 32px; margin-right: -16px; cursor: pointer; }

/* Filter dropdowns: a <details> whose panel floats above the results. */
/* No z-index here: the panel itself must compete with the other dropdowns' summaries. */
.global-coverage .dropdown { position: relative; padding: 0; cursor: default; }
/* "More filters": a toggle holding the rest of the dropdowns on the Provider tab. */
.global-coverage .more-filters > summary { display: flex; align-items: center; height: 32px; padding: 0 10px; cursor: pointer; font-weight: bold; }
.global-coverage .more-filters-list { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; list-style: none; margin: .5em 0 0; padding: 0; }
.global-coverage .more-filters-list > li { margin: 0; padding: 0; list-style: none; }
.global-coverage .dropdown-button { box-sizing: border-box; display: flex; align-items: center; justify-content: center; height: 32px; margin: 0; padding: 0 10px; line-height: 1; border: none; cursor: pointer; }
.global-coverage .arrow-down { margin-left: 10px; }
.global-coverage .product-label { margin: 0 10px; padding: 0; line-height: 1; }
.global-coverage .dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  min-width: 210px;
  max-width: 100%;
  max-height: 400px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
  white-space: nowrap;
  color: #222;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .2);
}
.global-coverage .dropdown-content div { display: flex; align-items: center; height: 20px; padding: 2px 5px; }
.global-coverage .dropdown-content hr { margin: 10px 0; }
.global-coverage .dropdown-content input[type="checkbox"] { margin: 0 5px 0 0; cursor: pointer; }
.global-coverage .dropdown-content label { cursor: pointer; }
.global-coverage .dropdown-content .filter-child { margin-left: 1.25em; }
.global-coverage .dropdown-content .filter-group { font-weight: bold; }
.global-coverage .product-list { display: flex; flex-wrap: wrap; max-height: 15px; margin-left: 10px; overflow: hidden; text-overflow: ellipsis; }

/* Results. */
.global-coverage .card-table { position: relative; z-index: 0; }
.global-coverage .card-table table { width: 100%; table-layout: fixed; }
.global-coverage ul { padding-left: 0; list-style-type: none; }
.global-coverage .card-table ul { margin: 0; padding: 0; list-style: none; }
.global-coverage .description { font-size: .9em; color: gray; }
.global-coverage .brand-cell,
.global-coverage .provider-cell,
.global-coverage .mandate-cell { max-width: 25%; width: 25%; }
.global-coverage .brand-cell { max-width: 30%; width: 30%; }
.global-coverage .country-cell,
.global-coverage .file-cell { max-width: 12%; width: 12%; }
.global-coverage .feature-cell { max-width: 20%; width: 20%; }
.global-coverage .currency-cell { max-width: 22%; width: 8%; }
.global-coverage .mandate-details-cell { max-width: 30%; width: 30%; }
.global-coverage .brand-img { width: 33px; max-width: 100%; height: auto; }
.global-coverage .brand-card-img-container { position: relative; }
.global-coverage .brand-card-img img { width: 35%; }
.global-coverage .details { display: block; }
.global-coverage .box { display: inline-block; margin-right: 5px; padding: 5px; border-radius: 5px; background-color: lightgrey; }
.global-coverage .toggle { margin-left: 5px; border: none; background: none; color: blue; cursor: pointer; }
.global-coverage .brands-cell .display-name { max-width: none; overflow: visible; text-overflow: unset; white-space: normal; }

.global-coverage .list-item-container { display: inline-flex; flex-flow: row nowrap; justify-content: flex-start; align-items: center; height: 25px; }
.global-coverage .list-item-container svg,
.global-coverage .list-item-container .gc-icon { flex-shrink: 0; width: 16px; height: 16px; }
.global-coverage .list-item-container .label-name { font-weight: bold; }
.global-coverage .list-item-container .display-name { position: relative; max-width: calc(100% - 16px); padding-left: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Names of cards (brand/provider) wrap instead of truncating. */
.global-coverage .provider-card-img .display-name { max-width: none; margin: 0; overflow: visible; text-overflow: unset; white-space: normal; }
.global-coverage .list-item-container .display-name:hover::after { content: attr(title); position: absolute; z-index: 10; left: 0; transform: translateY(calc(-100% - 4px)); padding: 3px 8px; line-height: 1.3; text-align: center; white-space: nowrap; color: #222; background: lightgrey; border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.global-coverage .provider-card-img { display: inline-flex; height: auto; min-height: 25px; }
.global-coverage .provider-card-img img { width: auto; height: 1.5em; vertical-align: middle; }
.global-coverage li.licence::before { content: "\2605\00a0"; }
.global-coverage .more-items summary { cursor: pointer; font-weight: bold; }
/* Once opened, the rest continues the list inline and the link is gone. */
.global-coverage li.more-items { margin: 0; padding: 0; }
.global-coverage .more-items details[open] > summary { display: none; }
.global-coverage .more-items details[open] > ul { display: contents; }
.global-coverage .global-coverage-expand-all { margin: 0 0 .5em; cursor: pointer; }
.global-coverage .gc-icon { display: inline-block; vertical-align: middle; margin-right: 4px; }

/* Unsupported brand functions are greyed out. */
.global-coverage .unsupported,
.global-coverage .unsupported a { color: lightgray; }
.global-coverage .unsupported .gc-icon { filter: grayscale(100%); opacity: .5; }

.global-coverage .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.global-coverage tr[hidden] { display: none; }

@media (max-width: 640px) {
  .global-coverage .cp-tabs,
  .global-coverage .cp-tabs .nav-tabs { display: block; }
}
@media (max-width: 882px) {
  .global-coverage .brand-cell,
  .global-coverage .provider-cell,
  .global-coverage .mandate-cell,
  .global-coverage .country-cell,
  .global-coverage .feature-cell,
  .global-coverage .file-cell,
  .global-coverage .mandate-details-cell,
  .global-coverage .currency-cell { max-width: 100%; width: 100%; }
  .global-coverage .description { width: 95%; }
  .global-coverage .cp-tabs,
  .global-coverage .cp-tabs > .nav-tabs { display: grid; margin-right: 0; margin-bottom: 12px; }
  .global-coverage ul { padding-left: 12px; }
}

/* Auto-apply (js/public-search.js): no Apply button with JS; results dimmed
   while a background refresh runs. */
.global-coverage .global-coverage-search-form [data-gc-apply][hidden] { display: none; }
.global-coverage[data-gc-region].is-busy { opacity: .5; transition: opacity .2s; }

/* Spacing between tabs, regions and filters: beat the portal theme's .nav rules. */
.global-coverage ul.nav.nav-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin: 0 0 .5em; padding: 0; }
.global-coverage ul.nav.nav-tabs > li { float: none; margin: 0; }
.global-coverage ul.nav.nav-tabs > li > a { line-height: 1.4; }

/* Match the portal's Payment Methods page: font, grey chips, white-on-grey active state. */
.global-coverage { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000; }
.global-coverage .nav-tabs > li.tablinks,
.global-coverage .nav-tabs > li.regionlinks,
.global-coverage .nav-tabs > li.dropdown-item,
.global-coverage .nav-tabs > li.more-filters-item { position: relative; background-color: #eee; border-radius: 3px; }
.global-coverage .nav-tabs > li.tablinks > a,
.global-coverage .nav-tabs > li.regionlinks > a { color: #000; border-bottom: 0; padding: 6px 8px; }
.global-coverage .nav-tabs > li.tablinks > a { padding: 8px 8px; }
.global-coverage .nav-tabs > li.active { background-color: #999; }
.global-coverage .nav-tabs > li.active > a { color: #fff; font-weight: normal; border-bottom: 0; }
.global-coverage .nav-tabs > li.tablinks.active::after,
.global-coverage .nav-tabs > li.regionlinks.active::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #999; }
.global-coverage .dropdown-button,
.global-coverage .more-filters > summary { color: #000; background-color: transparent; font-family: inherit; font-size: inherit; }
.global-coverage .card-table th { color: #fff; background-color: #2a24e0; font-weight: bold; }
.global-coverage .card-table a { color: #2a24e0; }

/* Admin provider details panel. */
.global-coverage tr.admin-details > td { padding: 0; background: #fff; }
.global-coverage .admin-details details { margin: 0; border-bottom: 1px solid #ddd; }
.global-coverage .admin-details summary { display: flex; align-items: center; gap: .5em; padding: 8px 12px; cursor: pointer; font-weight: bold; background: #eee; list-style: none; }
.global-coverage .admin-details summary::-webkit-details-marker { display: none; }
.global-coverage .admin-details summary::before { content: ""; border: 5px solid transparent; border-left: 7px solid #555; border-right: 0; transition: transform .15s; }
.global-coverage .admin-details details[open] > summary::before { transform: rotate(90deg); }
.global-coverage .admin-details details > * { margin-left: 16px; margin-right: 16px; }
.global-coverage .admin-details details > summary { margin: 0; }
.global-coverage .admin-details details > :nth-child(2) { margin-top: 12px; }
.global-coverage .admin-details details > :last-child { margin-bottom: 16px; }
.global-coverage .admin-details h5 { margin: 18px 16px 6px; padding-bottom: 4px; font-size: 1em; font-weight: bold; color: #2a24e0; border-bottom: 2px solid #26d9dc; }
.global-coverage .admin-facts,
.global-coverage .admin-kvps { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 0; margin-top: 0; margin-bottom: 0; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.global-coverage .admin-facts dt,
.global-coverage .admin-kvps dt { margin: 0; padding: 6px 12px; font-weight: bold; background: #f4f4f4; border-bottom: 1px solid #e4e4e4; }
.global-coverage .admin-facts dd,
.global-coverage .admin-kvps dd { margin: 0; padding: 6px 12px; border-bottom: 1px solid #e4e4e4; }
.global-coverage .admin-facts dt:nth-last-of-type(1),
.global-coverage .admin-facts dd:last-of-type,
.global-coverage .admin-kvps dt:nth-last-of-type(1),
.global-coverage .admin-kvps dd:last-of-type { border-bottom: 0; }
.global-coverage .admin-details ul.admin-focus,
.global-coverage .admin-details ul.admin-industries,
.global-coverage .admin-details ul.admin-urls,
.global-coverage .admin-details ul.admin-non-integrated { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 16px; }
.global-coverage .admin-details ul.admin-urls,
.global-coverage .admin-details ul.admin-non-integrated { display: block; }
.global-coverage .admin-details ul.admin-urls li,
.global-coverage .admin-details ul.admin-non-integrated li { padding: 4px 0; border-bottom: 1px solid #eee; }
.global-coverage .admin-focus li,
.global-coverage .admin-industries li { padding: 3px 10px; background: #eee; border-radius: 12px; }
.global-coverage .admin-text { margin: 0 16px; line-height: 1.5; }
.global-coverage .admin-platforms { width: calc(100% - 32px); margin: 0 16px; border-collapse: collapse; }
.global-coverage .admin-platforms th { padding: 6px 10px; text-align: left; color: #fff; background: #2a24e0; }
.global-coverage .admin-platforms td { padding: 6px 10px; border-bottom: 1px solid #e4e4e4; }
.global-coverage .admin-platforms tbody tr:nth-child(even) { background: #f7f7f7; }
.global-coverage .admin-contacts { margin: 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.global-coverage .admin-contact { padding: 10px 12px; background: #f7f7f7; border: 1px solid #e4e4e4; border-radius: 4px; }

/* Filter options: checkbox vertically centred with its text. */
.global-coverage .dropdown-content label { display: flex; align-items: center; gap: 6px; margin: 0; line-height: 1.2; }
.global-coverage .dropdown-content input[type="checkbox"] { flex: 0 0 auto; width: 14px; height: 14px; margin: 0; vertical-align: middle; }

/* "More filters": a compact toggle chip; the extra filters open on their own full-width row below. */
.global-coverage .global-coverage-search-form { display: flow-root; }
.global-coverage .nav-tabs > li.more-filters-item { flex: 1 0 100%; background: none; border-radius: 0; padding: 0; }
.global-coverage .more-filters > summary { display: inline-flex; box-sizing: border-box; background: #eee; border-radius: 3px; list-style: none; }
.global-coverage .more-filters > summary::-webkit-details-marker { display: none; }
.global-coverage .more-filters > summary::after { content: "\25BE"; margin-left: 8px; }
.global-coverage .more-filters[open] > summary::after { content: "\25B4"; }
.global-coverage .more-filters-list { margin: 8px 0 0; padding: 0; }
.global-coverage .more-filters-list > li.dropdown-item { background: #eee; border-radius: 3px; }

/* The extra filters wrap inside a <details>: give it a definite width so the form's height includes every row. */
.global-coverage .nav-tabs > li.more-filters-item { width: 100%; box-sizing: border-box; }
.global-coverage .more-filters { display: block; width: 100%; }
.global-coverage .more-filters-list { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.global-coverage .global-coverage-search-form { margin-bottom: 1em; }
.global-coverage ul.nav.nav-tabs > li.more-filters-item { height: auto; min-height: 0; max-height: none; align-self: flex-start; }
