/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.csp-summary-container{
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 20px;
    display: inline-block;
    max-width: 341px;
}

.csp-details-holder {
    display: flex;
}
.csp-summary-header {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    padding-bottom: 16px;
}
.csp-summary-body {
    /* min-height: 261px; */
    border: 1px solid #e8e8e8; 
    padding: 4px 15px 0px 15px;
}
.csp-coin-table-row {
    border-bottom: 1px solid #e8e8e8;
    min-height: 56px;
    display: flex;
    align-items: center;

    flex-direction: column;
}
.csp-ct-name {
    color: #737373;
    font-size: 12px;
    font-weight: 500;
    margin-right: 5px;
    display: none;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}
.csp-details-holder .csp-coin-graph {
    display: none;
}
.csp-coin-table-row:last-child {
    border-bottom: none;
}
.csp-coin-table-row .csp-coin-rank {
    width: 50px;
    padding-left: 10px;
}
.csp-coin-name {
    display: flex;
    min-width: 120px;
}

.csp-ct-symbol {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #211b2e !important;
}
.csp-coin-icon img {
    width: 15px;
    height: auto;
    margin-right: 5px;
    margin-bottom: 3px;
}

.csp-grey-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #444;
    margin-right: 5px;
}
.csp-coin-change {
    align-items: center;
    display: flex;
    font-size: 12px;
    gap: 2px;
    line-height: 130%;
    min-width: 60px;
    padding: 4px 4px 4px 16px;
    text-align: right;
    background-color: red;
    position: relative;
}
.csp-coin-change.positive {
    background: #D2F9D3;
    color: #139A18;
}
.csp-coin-change.negative {
    background: #f7c9cf;
    color: #DD1C36;
}
.csp-coin-change.positive .csp-arrow-holder::before {
    border-bottom: 4px solid #139a18;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    content: "";
    height: 0;
    position: absolute;
    top: calc(50% - 3px);
    width: 0;
    left: 4px;
}
.csp-coin-change.negative .csp-arrow-holder::before {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 4px solid #dd1c36;
    bottom: calc(50% - 2px);
    content: "";
    height: 0;
    position: absolute;
    width: 0;
    left: 4px;
}
@keyframes shine-lines {
    0% {
      background-position: -100px;
    }
    40%, 100% {
      background-position: 140px;
    }
}

@keyframes shine-avatar {
    0% {
      background-position: -100px + 52 + 16;
    }
    40%, 100% {
      background-position: 140px + 52 + 16;
    }
}

.csp-summary-body {
    display: flex;
    flex-direction: column;
    align-items: start;
}
.csp-coin-table-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    width: 268px;
}

.csp-coin-table-row.active .csp-ct-name {
    display: inline-block;
    opacity: 1;
}

.csp-coin-details .csp-coin-price {
    text-align: left;
    display: none;
}

.csp-coin-table-row.active .csp-coin-name {
    margin-top: 16px;
}
.csp-details-holder {
    display: flex;
    align-items: center;
    flex: 1;
    width: 100%;
    position: relative;
}
.csp-coin-name {
    display: flex;
    align-items: center;
    min-width: 120px;
}
.csp-coin-change {
    display: flex;
    align-items: center;
    position: absolute;
    top: 14px;
    right: 0;
}
.csp-coin-graph {
    width: 100%;
    height: 90px;
    cursor: auto;
}
.csp-coin-details {
    display: none;
    flex-direction: column;
    width: 100%;
}

.csp-coin-graph svg {
    transform: scale(1.5) translate(32px, 14px);
    overflow: visible;
}
.csp-coin-graph  svg polyline {
    stroke-width: 2;
}

.csp-name-link {
    position: absolute;
    top: 40px;
    left: 0;
    visibility: hidden;
    opacity: 0;
}

.csp-name-link:hover {
    text-decoration: none !important;
}

.csp-coin-table-row.active .csp-name-link {
    visibility: visible;
    opacity: 1;
}

.csp-coin-price {
    font-size: 14px;
    text-align: right;
    transition: all 0.05s ease-in-out; 
    z-index: 0;
    display: inline-block;
    width: 80px;
    font-weight: 700;
}


.csp-coin-table-row.active .csp-details-holder {
    margin-bottom: 26px;
} 

.csp-details-holder .csp-coin-price {
    position: absolute;
    top: 16px;
    right: 71px;
}

.csp-ct-chevron svg {
    margin-left: 5px;
    transition: all 0.5s ease-in-out;
}

.csp-coin-table-row.active .csp-ct-chevron svg {
    transform: rotate(180deg);
}




