/*
 * HomePro RealesWP Companion 1.4.42 — Teal text for receipt contacts.
 * Display only: billing phone/email on already rendered WooCommerce receipts.
 * No button backgrounds, borders, shadows, payment/form/account alterations.
 * Darker HomePro teal (#087f7c) is used for readable text on white.
 */
:root { --hprc-receipt-contact-ink: #087f7c; }

/* Classic WooCommerce order confirmations, donation receipts and View Order.
   WooCommerce Order Confirmation blocks have different wrappers. */
body .woocommerce .woocommerce-customer-details address p.woocommerce-customer-details--phone,
body .woocommerce .woocommerce-customer-details address p.woocommerce-customer-details--email,
body .wp-block-woocommerce-order-confirmation-billing-address p.woocommerce-customer-details--phone,
body .wp-block-woocommerce-order-confirmation-billing-address p.woocommerce-customer-details--email,
body .wc-block-order-confirmation-billing-address p.woocommerce-customer-details--phone,
body .wc-block-order-confirmation-billing-address p.woocommerce-customer-details--email {
    display: block !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 9px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--hprc-receipt-contact-ink) !important;
    -webkit-text-fill-color: var(--hprc-receipt-contact-ink) !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
    letter-spacing: normal !important;
    text-align: start !important;
    text-transform: none !important;
    text-shadow: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

/* Keep WooCommerce's own icons, but remove layout offsets and color them teal. */
body .woocommerce .woocommerce-customer-details address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email)::before,
body .wp-block-woocommerce-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email)::before,
body .wc-block-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email)::before {
    position: static !important;
    display: inline-block !important;
    float: none !important;
    margin: 0 9px 0 0 !important;
    padding: 0 !important;
    color: var(--hprc-receipt-contact-ink) !important;
    -webkit-text-fill-color: var(--hprc-receipt-contact-ink) !important;
    vertical-align: -0.08em !important;
    opacity: 1 !important;
}

/* Phone/mail links retain their href and behave like links, not buttons. */
body .woocommerce .woocommerce-customer-details address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a,
body .wp-block-woocommerce-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a,
body .wc-block-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a {
    color: var(--hprc-receipt-contact-ink) !important;
    -webkit-text-fill-color: var(--hprc-receipt-contact-ink) !important;
    text-decoration: none !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
    overflow-wrap: anywhere !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}
body .woocommerce .woocommerce-customer-details address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a:hover,
body .wp-block-woocommerce-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a:hover,
body .wc-block-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a:hover,
body .woocommerce .woocommerce-customer-details address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a:focus-visible,
body .wp-block-woocommerce-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a:focus-visible,
body .wc-block-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a:focus-visible {
    text-decoration: underline !important;
}
body .woocommerce .woocommerce-customer-details address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a:focus-visible,
body .wp-block-woocommerce-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a:focus-visible,
body .wc-block-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a:focus-visible {
    outline: 2px solid var(--hprc-receipt-contact-ink) !important;
    outline-offset: 3px !important;
    border-radius: 2px !important;
}

/* Print as plain readable contact information. */
@media print {
    body .woocommerce .woocommerce-customer-details address p.woocommerce-customer-details--phone,
    body .woocommerce .woocommerce-customer-details address p.woocommerce-customer-details--email,
    body .wp-block-woocommerce-order-confirmation-billing-address p:is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email),
    body .wc-block-order-confirmation-billing-address p:is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email),
    body .woocommerce .woocommerce-customer-details address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email)::before,
    body .wp-block-woocommerce-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email)::before,
    body .wc-block-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email)::before,
    body .woocommerce .woocommerce-customer-details address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a,
    body .wp-block-woocommerce-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a,
    body .wc-block-order-confirmation-billing-address :is(.woocommerce-customer-details--phone, .woocommerce-customer-details--email) a {
        color: #123e3b !important;
        -webkit-text-fill-color: #123e3b !important;
        box-shadow: none !important;
        background: transparent !important;
    }
}
