.title-block {
  flex-wrap: wrap;
  align-items: baseline;
  @media (min-width: 650px) {
    flex-direction: row;
  }
  h1 {
    margin: 0rem;
    margin-right: 15px;
    line-height: 1;
  }
}

.td-width {
	width: 150px;

	@media (max-width: 768px) {
	  width: 175px;
	}
}

.badge {
	position: relative;
	top: -1px;
}

.miner-name {
  margin-right: 4px;
  vertical-align: top;
}

.badge.badge-accelerated {
  background-color: var(--tertiary);
  color: white;
}

.btn-small-height {
	line-height: 1;
}

.row{
	flex-direction: column;
	@media (min-width: 850px) {
		flex-direction: row;
	}
}

.box.hidden {
  visibility: hidden;
  height: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
}

@media (max-width: 767.98px) {
	.mobile-bottomcol {
		margin-top: 15px;
	}

	.details-table td:first-child {
		white-space: pre-wrap;
	}
}

.fiat {
	display: block;
	@media (min-width: 768px){
		display: inline-block;
		margin-left: 15px;
		text-align: left;
	}
}

.table {
  tr td {
		padding: 0.75rem 0.5rem;
		@media (min-width: 576px) {
			padding: 0.75rem 0.75rem;
		}
		&:last-child {
			text-align: right;
			@media (min-width: 850px) {
        text-align: left;
			}
		}
		.btn {
			display: block;
		}

    &.wrap-cell {
      white-space: normal;
    }
	}
}

.effective-fee-container {
	display: block;
	@media (min-width: 768px){
		display: inline-block;
	}
  @media (max-width: 425px){
		display: flex;
    flex-direction: column;
	}
}

@media (max-width: 767px){
  .hide-on-mobile {
    display: none;
  }
}

.effective-fee-rating {
  @media (max-width: 767px){
    margin-right: 0px !important;
  }
}

.btn-outline-info {
	margin-top: 5px;
	@media (min-width: 768px){
		margin-top: 0px;
	}
}

.eta {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  @media (min-width: 850px) {
    justify-content: left !important;    
  }
}

.accelerate {
  @media (min-width: 850px) {
    margin-left: auto;
  }  
}

.etaDeepMempool {
  flex-wrap: wrap;
  @media (max-width: 849px) {
    justify-content: right !important;
  }
}

.accelerateDeepMempool {
  margin-left: 5px;
}

.goggles-icon {
  display: block;
  width: 2.7em;
}

.oobFees {
  color: #905cf4;
}

.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.effective-fee-row {
  &.has-cluster-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;

    @media (max-width: 849.98px) {
      justify-content: flex-end;
    }

    .effective-fee-container {
      flex: 0 0 auto;

      @media (max-width: 425px) {
        align-items: flex-end;
      }
    }
  }
}

.cluster-preview-inline {
  position: relative;
  flex: 1 1 120px;
  min-width: 120px;
  max-width: 300px;
  display: flex;
  align-items: center;
  overflow: visible;
  margin: -0.75rem -0.75rem -0.75rem auto;
  cursor: pointer;

  .cluster-preview-diagram {
    display: block;
    width: 100%;
    --cluster-preview-cursor: pointer;
  }

  .cluster-preview-expand {
    position: absolute;
    top: 4px;
    right: 4px;
    color: var(--info);
    font-size: 0.85em;
    opacity: 0;
    transition: opacity 150ms ease;
    pointer-events: none;
    z-index: 1;
  }

  &:focus-visible { outline: none; }

  &:hover .cluster-preview-expand,
  &:focus-visible .cluster-preview-expand {
    opacity: 1;
  }

  &:hover .cluster-preview-diagram,
  &:focus-visible .cluster-preview-diagram {
    --cluster-preview-shadow: 0 0 0 1px var(--info), 0 0 8px color-mix(in srgb, var(--info) 35%, transparent);
  }
}

.cluster-preview-table-row {
  display: none;
}

@media (max-width: 849.98px) and (min-width: 500px) {
  .cluster-preview-inline {
    order: -1;
    margin-right: 0;
  }
}

@media (max-width: 499.98px) {
  .effective-fee-row.has-cluster-preview .cluster-preview-inline {
    display: none;
  }

  .cluster-preview-table-row {
    display: table-row;

    td {
      padding-top: 0;
    }

    .cluster-preview-inline {
      width: 100%;
      flex-basis: 100%;
      max-width: 100%;
      margin: -0.25rem 0 -0.75rem;
    }
  }
}

::ng-deep .cluster-preview-ngb-tooltip .tooltip-inner {
  text-align: left;
  max-width: 320px;
  padding: 10px 12px;

  p {
    margin: 0 0 6px;
    line-height: 1.35;

    &:last-child { margin-bottom: 0; }

    &.hint {
      margin-top: 8px;
      opacity: 0.8;
      font-style: italic;
    }
  }
}
