﻿.diamCardDiv {
    margin-bottom: 15px;
}
/* CARD */
.diamCard {
    background: white;
    border-radius: 1rem;
    /*overflow: hidden;*/
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform .3s;
}

.diamCard:hover {
    transform: scale(1.03);
}

/* HEADER LABEL */
.diamCard-header {
    color: var(--bg-main);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem;
}

/* IMAGE WRAPPER */
.diamCard-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.diamCard-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(0, 0, 0, .125);
    aspect-ratio: 1;
    object-fit: cover;
}

/*.diamCard-image-wrap video,
.diamCard-image-wrap iframe,
.diamCard-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}*/


.diamCard-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: inherit;
    cursor: pointer !important;
}

.diamCard-image-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover; 
    cursor: pointer;
    pointer-events: none;

}

.diamCardbadge {
    position: absolute;
    top: 6px;
    right: 0px;
    background: #1950414f;
    color: #5a5a5a;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 8px 0px 0px 8px;
    font-size: 12px;
}


/* BODY */
.diamCard-body {
    padding: 7px 1px 7px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.diamCard-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    line-height: 1.3;
    cursor: text;
}

.diamCard-subinfo {
    font-size: 14px;
    color: #5a5a5a;
    padding-bottom: 5px;
    line-height: 1.4;
}

.diamCard-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    cursor: text;
}

.stock-badge {
    display: inline-block;
    background-color: #EFF2E9;
    color: var(--bg-main);
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
    width: fit-content;
}

.diamCard-style-gold {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.diamCard-details-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    cursor: text;
}

.diamCard_totalamount {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.diamCard-details-left {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #5a5a5a;
}

.diamCard-details-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.diamCard-checkbox {
    position: absolute;
    top: 6px;
    left: 10px;
    width: unset;
}

.cps-values {
    font-size: 14px;
    color: #5a5a5a;
    text-align: right;
}


/*.diamCard-actions {
    position: absolute;
    bottom: -100px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    flex-direction: row;
    gap: 10px;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 2;
}*/

.diamCard-actions {
    position: absolute;
    bottom: -100px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    flex-direction: row;
    gap: 10px;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    opacity: 0.8 !important;
    z-index: 2;
    background: white;
    max-width: 100%;
    padding: 7px;
    width: 100%;
    justify-content: center;
}

/*.diamCard:hover .diamCard-actions {
    bottom: 10px;
    opacity: 1;
}*/

.diamCard:hover .diamCard-actions {
    bottom: 0;
    opacity: 1;
}

.diamCard-icon-btn {
    background-color: transparent;
    border: 1px solid var(--bg-main);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
    color: var(--bg-main);
}

.diamCard-icon-btn i {
    font-size: 0.875rem;
    transition: color 0.2s;
}

.diamCard-icon-btn:hover {
    transform: scale(1.1);
    background-color: var(--bg-main);
    color: white;
}

.active-btn {
    background-color: var(--bg-main);
    color: white;
}

.activ-btn-a {
    color: var(--bg-main);
}

.activ-btn-a i {
    color: var(--bg-main);
    animation: fa-beat 1s infinite;
}


/*.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 6px;
    background-color: black;
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 0px 5px;
    font-size: 11px;
    font-weight: 300;
    border-radius: 0.5rem;
    white-space: nowrap;
    border: 1px solid rgba(250, 204, 21, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 50;
}

.diamCard-icon-btn:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}*/

.labreport-number {
    font-size: 14px;
    color: #5a5a5a;
    text-align: right;
}


.shimmer {
    background: linear-gradient(90deg, #e0e0e0 25%, #f6f6f6 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: inherit;
}

.tooltip-wrapper .tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 6px;
    background-color: black;
    backdrop-filter: blur(6px);
    color: #fff !important;
    padding: 0px 5px;
    font-size: 11px;
    font-weight: 300 !important;
    border-radius: 0.5rem;
    white-space: nowrap;
    border: 1px solid rgba(250, 204, 21, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 50;
    pointer-events: none;

}

.tooltip-wrapper:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

.tooltip-wrapper .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}

.bottom-tooltip {
    position: relative;
    display: inline-block;
    cursor: inherit;
}

.bottom-tooltip .tooltip-text {
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px; 
    background-color: black;
    backdrop-filter: blur(6px);
    color: #fff !important;
    padding: 0px 5px;
    font-size: 11px;
    font-weight: 300 !important;
    border-radius: 0.5rem;
    white-space: nowrap;
    border: 1px solid rgba(250, 204, 21, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 50;
    pointer-events: none;
}

.bottom-tooltip:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

.bottom-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: -13px;
    left: 55%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #000 transparent;
}

.shimmerOrderCard{
    height: 180px;
}

/*.diamCard-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;*/ /* Square aspect ratio, change to 75% for 4:3 etc */
    /*overflow: hidden;
    border-radius: 12px;
}

.diamCard-video-wrap iframe,
.diamCard-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}*/
