:root {
  --table-border-color: #B5B5B5;
  --table-background-color: white;
  --table-dark-background-color: #F9FAFB;
  --tableselect-border-radius: 8px;
}

.component.uiinputversicherungsschutz,
.component.uiinputtarif {
  padding-bottom: 4px;
}

.component.uiinputversicherungsschutz:focus,
.component.uiinputtarif:focus {
  box-shadow: none;
}

table.tableselect,
table.mobtableselect {
  border-spacing: 0;
  border-collapse: separate;
}

table.mobtableselect {
  border: none;
  width: 100%;
}

table.mobtableselect tbody td {
  padding: 15px;
}

table.mobtableselect tbody tr:first-child td:first-child {
  border-top-left-radius: var(--tableselect-border-radius);
}
table.mobtableselect tbody tr:first-child td:last-child {
  border-top-right-radius: var(--tableselect-border-radius);
}
table.mobtableselect tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--tableselect-border-radius);
}
table.mobtableselect tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--tableselect-border-radius);
}

table.mobtableselect tbody td {
  background-color: white;
  font-size: 14px;
  font-weight: 600;
}
table.mobtableselect tbody:first-child tr:first-child td {
  padding-top: 25px;
}
table.collapsed.mobtableselect tbody:first-child tr:last-child td,
table.mobtableselect tbody:last-child tr:last-child td {
  padding-bottom: 20px;
}

table.tableselect td {
  background-color: var(--table-background-color);
  cursor: pointer;
}

table.tableselect td.noclick {
  cursor: default;
}

table.tableselect td.disabled {
  cursor: default;
  opacity: 0.7;
}

table.tableselect td:focus {
  box-shadow: none;
  outline: #666666;
}

table.tableselect td:first-child {
  background-color: #f4f4f4;
  cursor: default;
}

.details-mobil {
  display: none;
}

@media (max-width: 760px) {
  .details-mobil {
    display: grid;
    row-gap: 12px;
    column-gap: 4px;
    grid-template-columns: 20px auto;
    font-size: 80%;
    font-weight: 600;
    background-color: white;
    padding: 20px 16px;
    border-radius: var(--tableselect-border-radius);
  }
}

.tableselect tr, td {
  border: none;
}

.tableselect td {
  text-align: center;
  padding: 8px 15px;
  font-size: 80%;
  font-weight: bold;
}

.tableselect tr.radio td {
  text-align: start;
  height: 32px;
}

.tableselect tr.radio td,
.tableselect tr.title td {
  vertical-align: top;
}

tr.radio input[type='radio']::after {
  position: relative;
  left: 0;
  top: 8px;
}

.tableselect td.active {
  background-color: white;
}

.tableselect td.disabled {
  background-color: var(--disabled-background-color);
}

.tableselect td.control {
  text-align: left;
  padding-left: 5px;
}

.tableselect td.tdcaption,
.tableselect td:first-child.tdcaption {
  font-size: 120%;
  font-weight: bold;
}

.tableselect td.tdcaption p {
  margin: 0;
}

.tableselect td.tdcaption p.untertitel {
  font-size: 80%;
}

.tableselect td.beitrag {
  font-size: 24px;
  font-weight: bold;
}

.tableselect td.zp {
  font-size: 16px;
  color: #768399;
  font-weight: normal;
}

.tableselect td.title {
  font-size: 100%;
  font-weight: bold;
  padding-top: 10px;
}

.tableselect td.tight {
  padding-top: 0;
  padding-bottom: 0;
}

.tableselect td.tight.beitrag {
  padding-top: 10px;
  font-size: 24px;
  font-weight: bold;
  word-break: break-word;
}

td.greencheck:before,
div.greencheck {
  text-align: center;
  content: url("data:image/svg+xml;utf8,<svg width='20px' height='20px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg'><title>Dieses Merkmal ist im angezeigten Tarif enthalten.</title><path d='M 1,15 L 12,28 L 30,2' stroke='%2362BB46' stroke-width='4' fill='none'/></svg>");
}

td.cross:before,
div.cross {
  text-align: center;
  content: url("data:image/svg+xml;utf8,<svg width='20px' height='20px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg'><title>Dieses Merkmal ist im angezeigten Tarif nicht enthalten.</title><path d='M 2,2 L 30,30 M 2,30 L 30,2' stroke='%23FF0000' stroke-width='4' fill='none'/></svg>");
}

.tableselect td:first-child {
  text-align: left;
  font-weight: normal;
  background-color: white;
}

.tableselect td.labelcell {
  height: 34px;
}

.tableselect td:first-child.separator {
  height: 4px;
}

.tableselect td.small {
  font-size: 80%;
}

.tableselect td.separator > div {
  border-bottom: 1px solid var(--table-border-color);
}

.tableselect {
  width: 100%;
}

@media (max-width: 760px) {
  .uiinputversicherungsschutz, .uiinputtarif {
    padding-left: 8px;
    padding-right: 8px;
  }

  .tableselect td:first-child,
  .tableselect tbody.desk {
    display: none;
  }

  .tableselect td.tdcaption {
    font-size: 100%;
  }

  .tableselect td.beitrag {
    font-size: 120%;
  }

  .tableselect td.zp {
    font-size: 100%;
  }

  td.greencheck:before,
  div.greencheck {
    content: url("data:image/svg+xml;utf8,<svg width='14px' height='14px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg'><path d='M 1,15 L 12,28 L 30,2' stroke='%2362BB46' stroke-width='4' fill='none'/></svg>");
  }

  td.cross:before,
  div.cross {
    content: url("data:image/svg+xml;utf8,<svg width='14px' height='14px' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg'><path d='M 2,2 L 30,30 M 2,30 L 30,2' stroke='%23FF0000' stroke-width='4' fill='none'/></svg>");
  }
}

@media (min-width: 760px) {
  .uiinputversicherungsschutz > div.label, .uiinputtarif > div.label, .uioutputmindestdeckung > div.label {
    display: none;
  }

  table.mobtableselect tbody {
    display: none;
  }
}

.tableselect td {
  width: 24%;
}

.tableselect td:first-child {
  width: 28%;
}

/* Selektion */

.tableselect tr td {
  border-left: 1px solid var(--table-border-color);
  border-right: 1px solid var(--table-border-color);
}

.tableselect tr td.active {
  border-left: 2px solid var(--border-color-selected);
  border-right: 2px solid var(--border-color-selected);
}

.tableselect tbody:first-child tr:first-child td {
  border-top: 1px solid var(--table-border-color);
  border-top-left-radius: var(--tableselect-border-radius);
  border-top-right-radius: var(--tableselect-border-radius);
}

.tableselect tbody:first-child tr:first-child td.active {
  border-top: 2px solid var(--border-color-selected);
}

/* Mobile */
@media (max-width: 760px) {
  .tableselect tbody:first-child tr:last-child td {
    border-bottom: 1px solid var(--table-border-color);
    border-bottom-left-radius: var(--tableselect-border-radius);
    border-bottom-right-radius: var(--tableselect-border-radius);
    padding-bottom: 30px;
  }

  .tableselect tbody:first-child tr:last-child td.active {
    border-bottom: 2px solid var(--border-color-selected);
  }
}

/* Desktop */
@media (min-width: 760px) {
  .tableselect.collapsed tbody.desk tr:last-child td,
  .tableselect:not(.collapsed) tbody.desk.exp tr:last-child td {
    border-bottom: 1px solid var(--table-border-color);
    border-bottom-left-radius: var(--tableselect-border-radius);
    border-bottom-right-radius: var(--tableselect-border-radius);
    padding-bottom: 20px;
  }

  .tableselect.collapsed tbody.desk tr:last-child td.active,
  .tableselect:not(.collapsed) tbody.desk.exp tr:last-child td.active {
    border-bottom: 2px solid var(--border-color-selected);
  }
}

/* radios */

.tableselect tr.radio {
  display: table-row;
}

/* Fuer Mindestdeckung roter Rand und rotes Radio */

.tableselect tr.radio td.danger input[type='radio']:checked:after {
  content: url("data:image/svg+xml;utf8,<svg width='22px' height='22px' viewBox='0 0 42 42' version='1.1' xmlns='http://www.w3.org/2000/svg'><g stroke='%23E60000' stroke-width='2' fill='none'><circle cx='21' cy='21' r='19'/><circle cx='21' cy='21' r='12' fill='%23E60000'/></g></svg>");
}

.tableselect td.tdcaption.danger {
  color: var(--error-color);
}

.tableselect tr td.active.danger {
  border-left: 2px solid var(--error-color);
  border-right: 2px solid var(--error-color);
}

.tableselect tbody:first-child tr:first-child td.active.danger {
  border-top: 2px solid var(--error-color);
}

@media (max-width: 760px) {
  .tableselect tbody:first-child tr:last-child td.active.danger {
    border-bottom: 2px solid var(--error-color);
  }
}

@media (min-width: 760px) {
  .tableselect.collapsed tbody.desk tr:last-child td.active.danger,
  .tableselect:not(.collapsed) tbody.desk.exp tr:last-child td.active.danger {
    border-bottom: 2px solid var(--error-color);
  }
}
