/**
 * MG Wholesale Price Control - Frontend Styles
 */

/* Unlock link styling */
.mgwpc-unlock-link,
.mgwpc-unlock-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: "Cormorant Garamond", Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: normal !important;
    color: inherit;
    transition: opacity 0.2s ease;
}

/* Link with underline */
.mgwpc-unlock-link {
    text-decoration: underline !important;
}

/* Text without link - no underline */
.mgwpc-unlock-text {
    text-decoration: none !important;
}

.mgwpc-unlock-link:hover {
    opacity: 0.7;
}

/* Lock icon SVG */
.mgwpc-lock-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Product card specific styles */
.woocommerce .products .product .price .mgwpc-unlock-link {
    font-weight: normal !important;
    color: inherit;
    text-decoration: underline !important;
}

.woocommerce .products .product .price .mgwpc-unlock-text {
    font-weight: normal !important;
    color: inherit;
    text-decoration: none !important;
}

/* Elementor product widget compatibility */
.elementor-widget-woocommerce-products .mgwpc-unlock-link {
    font-size: inherit;
    font-weight: normal !important;
    color: inherit;
    text-decoration: underline !important;
}

.elementor-widget-woocommerce-products .mgwpc-unlock-text {
    font-size: inherit;
    font-weight: normal !important;
    color: inherit;
    text-decoration: none !important;
}

/* Single product page */
.single-product .summary .price .mgwpc-unlock-link {
    font-size: inherit;
    font-weight: normal !important;
    color: inherit;
    text-decoration: underline !important;
}

.single-product .summary .price .mgwpc-unlock-text {
    font-size: inherit;
    font-weight: normal !important;
    color: inherit;
    text-decoration: none !important;
}

/* Archive/Shop page */
.woocommerce-loop-product__price .mgwpc-unlock-link {
    display: inline-flex;
    align-items: center;
    text-decoration: underline !important;
}

.woocommerce-loop-product__price .mgwpc-unlock-text {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

/* Variation price */
.single_variation_wrap .woocommerce-variation-price .mgwpc-unlock-link {
    font-size: inherit;
    font-weight: normal !important;
    color: inherit;
    text-decoration: underline !important;
}

.single_variation_wrap .woocommerce-variation-price .mgwpc-unlock-text {
    font-size: inherit;
    font-weight: normal !important;
    color: inherit;
    text-decoration: none !important;
}
