/* ==========================================================================
   TTRPay Google Pay Stylesheet (Compliant with Google Brand Guidelines 2026)
   ========================================================================== */

/* 1. Inline Labels & Icons for Checkout Blocks */
.ttrpay-blocks-inline-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.ttrpay-label-prefix {
    font-weight: 500;
    color: #334155;
}

.ttrpay-label-suffix {
    font-weight: 600;
    color: #0f172a;
    font-size: 16px;
}

/* Official Google Pay Acceptance Mark (Full-size, prominent & proportionate) */
.ttrpay-inline-icon,
.ttrpay-gpay-mark-icon,
.ttrpay-gpay-mark-img {
    height: 30px !important;
    width: 56px !important;
    min-height: 30px !important;
    min-width: 56px !important;
    max-height: 32px !important;
    max-width: 60px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    display: inline-block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. Classic Checkout Gateway Icons */
.ttrpay-gateway-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    vertical-align: middle;
}

.ttrpay-badge-img {
    height: 28px !important;
    width: 52px !important;
    max-height: 30px !important;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.ttrpay-blocks-content {
    font-size: 14px;
    color: #475569;
    padding: 6px 0;
    line-height: 1.5;
}

/* 3. Single Product Page: ADD TO CART + GOOGLE PAY ON THE SAME ROW */
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart:not(.variations_form) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 560px !important;
    margin-top: 10px !important;
}

.woocommerce div.product form.cart .quantity {
    margin: 0 !important;
    float: none !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
}

.woocommerce div.product form.cart .quantity .qty {
    height: 48px !important;
    line-height: 48px !important;
    box-sizing: border-box !important;
    border-radius: 4px !important;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button {
    width: auto !important;
    flex: 1 1 50% !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 20px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.ttrpay-express-checkout-container {
    margin: 0 !important;
    width: auto !important;
    flex: 1 1 50% !important;
    max-width: none !important;
    display: inline-flex !important;
    flex-direction: row !important;
}

.ttrpay-express-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

/* Official Google Pay Black Button */
.ttrpay-btn-google-pay {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    padding: 0 !important;
    overflow: hidden;
}

.ttrpay-btn-google-pay:hover {
    background-color: #222222 !important;
    border-color: #222222 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.ttrpay-btn-gpay-graphic {
    height: 100%;
    width: 100%;
    max-height: 48px;
    object-fit: contain;
    pointer-events: none;
}

/* 4. Checkout Page Submit Button (Solid Black according to Google Guideline Mockup) */
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button,
button.wc-block-components-checkout-place-order-button,
button.wc-block-components-checkout-place-order-button:not([disabled]),
#place_order,
.woocommerce-checkout #place_order {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease-in-out !important;
}

.wc-block-checkout__actions .wc-block-components-checkout-place-order-button:hover,
button.wc-block-components-checkout-place-order-button:hover,
#place_order:hover,
.woocommerce-checkout #place_order:hover {
    background-color: #222222 !important;
    background: #222222 !important;
    border-color: #222222 !important;
}
