/*
 * TABLE BROKERAGE FIRMS - MAIN STYLES
 */

/* Base Table Styles */
.table-brokerage-firms .table {
  width: 100%;
  margin-bottom: 20px;
  border: 2px solid transparent;
  transition: transform 0.4s;
}

.table-brokerage-firms .table b,
.table-brokerage-firms .table strong {
  color: black;
}

.table-brokerage-firms div.table:hover {
  border: 2px solid #002b5a;
}

.table-brokerage-firms div.table.no-hover:hover,
.table-brokerage-firms div.table.no-hover {
  border: none;
  transition: none;
}

/* Table Row Styles */
.table-brokerage-firms .table_row {
  display: flex;
  background: #f4f4f4;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  box-shadow: 5px 5px 10px 1px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Table Cell Base Styles */
.table-brokerage-firms .table_cell {
  display: flex;
  flex-flow: column;
  align-items: center;
}

/*
 * TABLE CELL SPECIFIC STYLES
 */

/* Logo Cell */
.table-brokerage-firms .table_cell.logo {
  width: 20%;
  text-align: center;
  margin-left: 15%;
  min-height: 45px;
  justify-content: center;
}

.table-brokerage-firms .table_cell.logo.no_trophy {
  margin-left: 10%;
}

/* Score Cell */
.table-brokerage-firms .table_cell.ocena {
  width: 60%;
  text-align: center;
  padding: 0px 30px;
}

.table-brokerage-firms .score-info,
.table-brokerage-firms .score-info-ranking {
  text-align: center;
  margin: auto;
  font-size: 15px;
}

.table-brokerage-firms .score-info {
  text-align: right;
}

.table-brokerage-firms .score-info a {
  font-size: 13px;
  color: #212121;
  text-decoration: underline;
}

/* Top Cell */
.table-brokerage-firms .table_cell.top {
  width: 25%;
  padding: 10px;
  margin-top: 12px;
  border-right: 1px solid lightgray;
}

.table-brokerage-firms .table_cell.top:nth-child(7) {
  border-right: 0px none;
}

.table-brokerage-firms .table_cell.top .data {
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
  color: black;
  text-transform: uppercase;
}

.table-brokerage-firms .table_cell .upper {
  font-size: 15px;
  line-height: 22px;
  font-family: "Montserrat", sans-serif;
  color: rgb(57, 57, 57);
  text-align: center;
  margin-bottom: 5px;
}

/* Links Cell */
.table-brokerage-firms .table_cell.links {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
}

/* Pros and Cons Cells */
.table-brokerage-firms .table_cell.minusy {
  width: 100%;
  display: block;
  margin-top: 15px;
  padding-left: 20px;
  padding-right: 20px;
}

.table-brokerage-firms .table_cell.plusy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.table-brokerage-firms .table_cell.plusy .plusy-column {
  width: 45%;
  display: inline-block;
  vertical-align: top;
  margin-left: 5%;
  margin-top: 1%;
  margin-bottom: 1%;
}

.table-brokerage-firms .dodatkowe_info .table_cell.plusy,
.table-brokerage-firms .dodatkowe_info .table_cell.minusy {
  margin-top: 0px;
}

.table-brokerage-firms .table_cell.plusy p,
.table-brokerage-firms .table_cell.minusy p {
  margin-bottom: 5px;
  font-size: 13px;
}

/* Icons for Pros and Cons */
.table-brokerage-firms .table_cell.plusy p:before,
.table-brokerage-firms .informacje_dodatkowe .info_row .info_right.yes::before {
  content: "\f0fe";
  font-family: FontAwesome;
  margin-left: -18px;
  font-size: 1rem;
  color: green;
  margin-right: 5px;
}

.table-brokerage-firms .table_cell.minusy p:before,
.table-brokerage-firms .informacje_dodatkowe .info_row .info_right.no::before {
  content: "\f146";
  font-family: FontAwesome;
  margin-left: -20px;
  font-size: 1rem;
  color: #ea4a4a;
  margin-right: 5px;
}

/* Promotions */
.table-brokerage-firms .table_cell.promocje {
  width: 100%;
  display: block;
  margin-top: 20px;
}

.table-brokerage-firms .table_cell.disclaimer {
  width: 100%;
  text-align: center;
}

.table-brokerage-firms .table_cell.disclaimer p {
  font-size: 12px;
  margin-bottom: 0;
}

.table-brokerage-firms .table_cell.promocje p {
  font-size: 14px;
}

/*
 * ADDITIONAL INFO SECTIONS
 */
.table-brokerage-firms .dodatkowe_info {
  display: none;
  flex-flow: row wrap;
  width: 100%;
}

.table-brokerage-firms .dodatkowe_info.show {
  display: flex;
}

.table-brokerage-firms .informacje_dodatkowe {
  width: 50%;
  padding-left: 1em;
  padding-right: 1em;
}

.table-brokerage-firms .informacje_dodatkowe_full {
  width: 100%;
  padding-left: 1em;
  padding-right: 1em;
  padding-bottom: 10px;
}

/* Header Styles */
.table-brokerage-firms .header,
.table-brokerage-firms .opis .header,
.table-brokerage-firms .informacje_dodatkowe .header,
.table-brokerage-firms .informacje_dodatkowe_full .header {
  width: 100%;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 15px;
}

.table-brokerage-firms .header.plusyminusy {
  margin-top: 15px;
}

.table-brokerage-firms .informacje_dodatkowe .info,
.table-brokerage-firms .informacje_dodatkowe_full .info,
.table-brokerage-firms .informacje_dodatkowe .info_stars {
  font-size: 14px;
  padding-bottom: 7px;
}

/* Info Rows Layout */
.table-brokerage-firms .informacje_dodatkowe .info_row .info_left {
  min-width: 45%;
  padding-right: 20px;
}

.table-brokerage-firms .informacje_dodatkowe_full .info_row .info_left {
  flex-basis: 30%;
  min-width: 30%;
}

.table-brokerage-firms .informacje_dodatkowe .info_row .info_right,
.table-brokerage-firms .informacje_dodatkowe_full .info_row .info_right {
  text-align: right;
  margin-left: 15px;
}

.table-brokerage-firms .informacje_dodatkowe .info_row .info_right.margin-left-auto {
  margin-left: auto;
  white-space: nowrap;
}

.table-brokerage-firms .informacje_dodatkowe .info_row .info_right.margin-left-fixed {
  margin-left: 25px;
}

.table-brokerage-firms .informacje_dodatkowe .info_row.no-border,
.table-brokerage-firms .informacje_dodatkowe_full .info_row.no-border {
  border-bottom: none;
}

.table-brokerage-firms .opis p,
.table-brokerage-firms .ocena p {
  font-size: 14px;
}

/* Common Info Row Styles */
.table-brokerage-firms .informacje_dodatkowe .info_row,
.table-brokerage-firms .informacje_dodatkowe_full .info_row {
  width: 100%;
  display: flex;
  border-bottom: 1px solid #e5e5e5;
  justify-content: space-between;
  padding: 2px 0;
  font-size: 14px;
}

/* Table responsive styles */
.table-brokerage-firms .table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-brokerage-firms .table-responsive p {
  margin: 5px 0px 5px;
  font-size: inherit;
}

.table-brokerage-firms .table-responsive .plusy,
.table-brokerage-firms .table-responsive .minusy {
  padding: 15px 10px 15px 15px;
}

.table-brokerage-firms .table-responsive .plusy p::before {
  content: "\f0fe";
  font-family: FontAwesome;
  margin-left: -18px;
  font-size: 1rem;
  color: green;
  margin-right: 5px;
}

.table-brokerage-firms .table-responsive .minusy p::before {
  content: "\f146";
  font-family: FontAwesome;
  margin-left: -20px;
  font-size: 1rem;
  color: #ea4a4a;
  margin-right: 5px;
}

.table-brokerage-firms .table-responsive .wartosc-wyrozniona {
  color: green;
  font-weight: bold;
}

.table-brokerage-firms .table-responsive a {
  text-decoration: underline;
}

/*
 * TABLE STYLES FOR BROKER COMPARISONS
 */
.table-brokerage-firms table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.entry-content .table-brokerage-firms tr {
  border-bottom: 1px solid #ddd;
}

.entry-content .table-brokerage-firms tr:last-child {
  border-bottom: none;
}

.entry-content .table-brokerage-firms th,
.entry-content .table-brokerage-firms td {
  text-align: center;
  padding: 8px;
}

.table-brokerage-firms th {
  background-color: #f4f4f4;
  border-top: 1px solid #ddd;
}

.table-brokerage-firms .table-responsive td.yes::after {
  content: "\f0fe";
  font-family: FontAwesome;
  margin-left: -18px;
  font-size: 1rem;
  color: green;
  padding-left: 25px;
}

.table-brokerage-firms .table-responsive td.no::after {
  content: "\f146";
  font-family: FontAwesome;
  margin-left: -20px;
  font-size: 1rem;
  color: #ea4a4a;
  padding-left: 25px;
}

.table-brokerage-firms .table-responsive .skills {
  width: 100%;
  max-width: none;
  padding: 0px 5px 0px 5px;
}

.table-brokerage-firms .table-responsive tr:hover {
  color: inherit;
}

/* Width settings for compare table */
.table-brokerage-firms .table-responsive.compare tr td:nth-child(1) {
  width: 30%;
  vertical-align: middle;
}

.table-brokerage-firms .table-responsive.compare tr td:nth-child(2),
.table-brokerage-firms .table-responsive.compare tr td:nth-child(3) {
  width: 35%;
  vertical-align: middle;
}

.table-brokerage-firms .table-responsive.compare tr td.category-header {
  font-weight: bold;
  padding: 25px 0 15px 30%;
}

/*
 * BROKERAGE SIDEBAR WIDGET STYLES
 */

.widget-brokerage-sidebar {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.widget-brokerage-sidebar-header {
  background-color: #002b5a;
  color: white;
  padding: 10px 15px;
  text-align: center;
}

.widget-brokerage-sidebar-disclaimer {
  text-align: center;
  font-size: 10px;
  padding: 5px;
  line-height: 15px;
  margin-bottom: -12px;
}

.widget-brokerage-sidebar-header .title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.widget-brokerage-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
  background-color: #ffffff;
  transition: background-color 0.2s ease;
}

.widget-brokerage-sidebar-item:hover {
  background-color: #f5f9ff;
}

.widget-brokerage-sidebar-item:last-child {
  border-bottom: none;
}

.widget-brokerage-sidebar-logo {
  width: 60%;
  padding-right: 10px;
  text-align: center;
}

.widget-brokerage-sidebar-logo img {
  max-width: 100%;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.widget-brokerage-sidebar-button {
  width: 40%;
  text-align: right;
}

.widget-brokerage-sidebar-button a {
  border: none;
  border-radius: 0;
  color: #fff;
  background-color: #002b5a;
  padding: 0px 15px;
  line-height: 30px;
  height: 30px;
  display: inline-block;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 0px;
  outline: 0;
  transition: 0.3s ease;
  margin: 1px;
  width: 100%;
  text-align: center;
  vertical-align: middle !important;
}

.widget-brokerage-sidebar-button a:hover {
  background-color: #75ba47;
}

.widget-brokerage-sidebar-footer {
  background-color: var(--bg-elevated);
  padding: 10px 15px;
  text-align: center;
  font-size: 13px;
}

.widget-brokerage-sidebar-footer a {
  color: #002b5a;
  text-decoration: none;
  font-weight: 500;
}

.widget-brokerage-sidebar-footer a:hover {
  text-decoration: underline;
}

.widget-brokerage-sidebar-item.special-offer {
  position: relative;
}

.widget-brokerage-sidebar-item.special-offer::after {
  content: "Nowość";
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #ff4d4d;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

/*
 * RESPONSIVE MEDIA QUERIES
 */

@media (min-width: 768px) {
  .table-brokerage-firms .table_cell.plusy {
    flex-direction: row;
    display: flex;
  }
}

@media (max-width: 767px) {
  .table-brokerage-firms .table_cell.minusy {
    width: 100%;
  }

  .table-brokerage-firms .table_cell.plusy {
    flex-direction: column;
  }

  .table-brokerage-firms .table_cell.plusy .plusy-column {
    width: 100%;
  }

  .table-brokerage-firms .table_cell.minusy {
    padding-left: 23px;
  }

  .table-brokerage-firms .table {
    margin-bottom: 30px;
  }

  .table-brokerage-firms .informacje_dodatkowe,
  .table-brokerage-firms .informacje_dodatkowe_full {
    width: 100%;
    padding-left: 0em;
    padding-right: 0em;
  }
}

@media (max-width: 666px) {
  .table-brokerage-firms .table_cell.top {
    width: 50%;
  }

  .table-brokerage-firms .table_cell.logo {
    margin-left: 10%;
    width: 35%;
  }

  .table-brokerage-firms .table_cell.ocena {
    width: 55%;
  }

  .table-brokerage-firms .table_cell.top:nth-child(5) {
    border-right: 0px none;
  }
}

@media (max-width: 602px) {
  .eachLink.tce1 {
    order: 3;
  }
  .eachLink.tce2 {
    order: 1;
  }
  .eachLink.tce3 {
    order: 2;
  }
}

@media (max-width: 600px) {
  .table-brokerage-firms .table_cell.logo {
    margin-left: 0%;
    width: 100%;
    margin-bottom: 15px;
  }

  .table-brokerage-firms .table_cell.ocena {
    width: 100%;
  }

  .table-brokerage-firms .table_cell.ocena .skills {
    width: 100%;
    padding: 0;
  }

  .table-brokerage-firms table,
  .table-brokerage-firms thead,
  .table-brokerage-firms tbody,
  .table-brokerage-firms th,
  .table-brokerage-firms td,
  .table-brokerage-firms tr {
    display: block;
  }

  .table-brokerage-firms .table-responsive.compare tr td:nth-child(1),
  .table-brokerage-firms .table-responsive.compare tr td:nth-child(2),
  .table-brokerage-firms .table-responsive.compare tr td:nth-child(3) {
    width: auto;
    padding-left: 35%;
    align-items: center;
    justify-content: center;
  }

  .table-brokerage-firms .table-responsive tr td:nth-child(1) {
    font-weight: bold;
  }

  .table-brokerage-firms thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .table-brokerage-firms tr {
    margin-bottom: 1.625em;
  }

  .table-brokerage-firms tr.hide-on-mobile {
    display: none;
  }

  .table-brokerage-firms td {
    border-bottom: 1px solid #ddd;
    position: relative;
    padding-left: 50%;
  }

  .entry-content .table-brokerage-firms tr {
    border-bottom: none;
  }

  .table-brokerage-firms td:before {
    position: absolute;
    width: 30%;
    padding-right: 10px;
    white-space: nowrap;
    content: attr(data-label);
    font-weight: bold;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    text-align: center;
  }

  .table-brokerage-firms .table-responsive.compare tr td.category-header {
    border-bottom: none;
    padding-left: 0;
    margin-bottom: -10px;
  }

  .table-brokerage-firms .table-responsive.compare td.category-header:before {
    position: absolute;
    content: none;
  }
}
