.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 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 55px;
}

.pht-total-price .pht-value {
    font-size: 20px;
    font-weight: 500;
    color: #252525;
    line-height: 21px;
}

.pht-total-price .pht-label {
    font-size: 14px;
    font-weight: 500;
    color: #252525;
    line-height: 21px;
}

.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%;
    border-collapse: collapse;
    font-size: 15px;
}

.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-main-price-with-label .pht-price-main {
    font-size: 20px;
    font-weight: 500;
    color: #252525;
    line-height: 21px;
}

.pht-main-price-with-label .pht-label {
    font-size: 14px;
    font-weight: 500;
    color: #252525;
    line-height: 21px;
}

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

/* Post-specific custom fields styling */
.pht-custom-field .pht-value {
    color: #333;
}
.table-item .pht-custom-field {
margin-left: auto;
margin-right: auto;
}
.single-flat .flat-detail+.flat-detail {
        padding-top: 42px;
    margin-top: -3px;
}
/* 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;
    }
}


.pht-custom-field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
  gap: 30px;
  line-height: 20px;
  margin-bottom: 14px;
}

.pht-custom-field .pht-value {
	color: #252525;

    min-width: 140px;
	font-weight: 500;
}
.single-flat .flat-detail+.flat-detail {
    padding-top: 30px !important;
    margin-top: -5px !important;
}
.pht-custom-field .pht-label {
	color: #5C5C5C;
	font-weight: 400;
	text-align: left;
	flex: 1;
}