.price-graph-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.price-graph-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.price-graph-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-price-graph-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    z-index: 10;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-price-graph-modal:hover {
    color: #fff;
}

.close-price-graph-modal:focus {
    outline: 2px solid #4bc0c0;
    outline-offset: 2px;
}

/* Dark mode for modal */
.price-graph-modal.dark-mode .price-graph-modal-content {
    background: #2a2a2a;
    color: #dcdcdc;
}

.price-graph-modal.dark-mode .close-price-graph-modal {
    color: #dcdcdc;
}

.price-graph-modal.dark-mode .close-price-graph-modal:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .price-graph-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }
    
    .close-price-graph-modal {
        font-size: 1.5em;
    }
	.wplp-price-graph-link {
    margin-left: 0 !important;
	}
}

/* Icon link styling */
.wplp-open-graph-modal {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wplp-open-graph-modal:hover {
    opacity: 0.7;
}

.wplp-open-graph-modal:focus {
    outline: 2px solid #4bc0c0;
    outline-offset: 2px;
}

.wplp-open-graph-modal img {
    display: inline-block;
}

/* Ensure the link in meta section has proper spacing */
.wplp-price-graph-link {
    margin-left: 10px;
    display: inline-block;
	vertical-align: middle;
}

.wplp-price-graph-link::before {
    margin-right: 10px;
    color: #ccc;
}