/* Custom Price Container Styles */

.custom-price {
    margin: 10px auto;
    text-align: center;
}

.custom-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Style untuk display horizontal (default) */
.custom-price-wrapper.price-horizontal {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 10px;
}

/* Style untuk display vertical */
.custom-price-wrapper.price-vertical {
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px;
}

.custom-price .regular-price {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-decoration: line-through;
}

.custom-price .sale-price {
    font-size: 16px;
    font-weight: 600;
    color: #ff0000;
}

.custom-price .single-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* --- RESPONSIVE CUSTOM PRICE DISPLAY (NATIVE CSS) --- */

/* Desktop (default) */
.api-post-grid[data-price-display="vertical"] .custom-price-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px;
}
.api-post-grid[data-price-display="horizontal"] .custom-price-wrapper {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 10px;
}

/* Responsif untuk Tablet */
@media (max-width: 1024px) {
    .custom-price .regular-price {
        font-size: 14px;
    }
    .custom-price .sale-price,
    .custom-price .single-price {
        font-size: 16px;
    }
    .api-post-grid[data-price-display-tablet="vertical"] .custom-price-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        gap: 5px;
    }
    .api-post-grid[data-price-display-tablet="horizontal"] .custom-price-wrapper {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 10px;
    }
}

/* Responsif untuk mobile */
@media (max-width: 767px) {
    .custom-price .regular-price {
        font-size: 12px;
    }
    .custom-price .sale-price,
    .custom-price .single-price {
        font-size: 14px;
    }
    .api-post-grid[data-price-display-mobile="vertical"] .custom-price-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        gap: 5px;
    }
    .api-post-grid[data-price-display-mobile="horizontal"] .custom-price-wrapper {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 8px;
    }
}