.pht-price-display {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.pht-price-display>div {
    margin-bottom: 10px;
}

.pht-price-display .pht-label {
    font-weight: 600;
    margin-right: 10px;
}

.pht-price-display .pht-value {
    font-size: 1.1em;
}

.pht-total-price .pht-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
}

.pht-price-per-m2 .pht-has-history {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px dashed #999;
}

.pht-price-per-m2 .pht-has-history:hover {
    color: #000;
    border-bottom-color: #000;
}

.pht-history-icon {
    font-size: 0.9em;
    opacity: 0.7;
}

/* Popup styles */
.pht-history-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pht-popup-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.pht-popup-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pht-popup-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.pht-popup-close {
    cursor: pointer;
    font-size: 24px;
    color: #999;
    transition: color 0.2s;
}

.pht-popup-close:hover {
    color: #333;
}

.pht-popup-body {
    padding: 20px;
    overflow-y: auto;
}

.pht-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* History table */
.pht-history-table {
    width: 100%;
	font-size: 15px;
    border-collapse: collapse;
}

.pht-history-table th,
.pht-history-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.pht-history-table th {
    background: #f9f9f9;
    font-weight: 600;
}

.pht-history-table tr:hover {
    background: #f5f5f5;
}

.pht-price-up {
    color: #d32f2f;
    font-weight: 600;
}

.pht-price-down {
    color: #388e3c;
    font-weight: 600;
}

/* Inline price display */
.pht-inline-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pht-price-per-m2-inline {
    font-size: 0.75em;
    color: #666;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-bottom: 1px dashed #999;
    justify-content: center;
    margin: 0 auto;
    padding: 0 5px;
    letter-spacing: -0.2px;
}

.pht-price-per-m2-inline:hover {
    color: #000;
    border-bottom-color: #000;
}

.pht-history-icon-inline {
    font-size: 0.9em;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    .pht-popup-content {
        max-width: 100%;
        margin: 10px;
    }

    .pht-history-table {
        font-size: 0.9em;
    }

    .pht-history-table th,
    .pht-history-table td {
        padding: 8px 5px;
    }
}