/*
Theme Name: Pet Child Theme
Template: purple
*/
:root {
    --gtm-transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1), right 0.3s cubic-bezier(0.16, 1, 0.3, 1), top 0.3s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    --border-radius:1rem;
}

body .wp-element-button{
    border-radius: 999px;
}

body .wc-block-components-product-image{
    border-radius: var(--border-radius);
    border: 2px dashed var(--wp--preset--color--custom-gray);
}

.wp-block-post-title a{
    height: calc(1em * 2 * 1.4);
    display: -webkit-box;            /* 使用弹性盒子模型 */
    -webkit-box-orient: vertical;   /* 设置子元素的排列方向为垂直 */
    -webkit-line-clamp: 2;          /* 限制显示的行数为2 */
    overflow: hidden;                /* 隐藏超出容器范围的内容 */
    text-overflow: ellipsis;        /* 使用省略号表示被隐藏的文本 */
}

/* .wp-block-buttons .wp-block-button__link{
    background-color: var(--wp--preset--color--custom-coffee);
} */
.wp-block-button button.wp-element-button,
.wc-block-mini-cart__footer-actions .wc-block-components-button,
.wc-block-checkout__actions_row .wc-block-components-button,
.woocommerce-form-login .wp-element-button,
.woocommerce-ResetPassword .wp-element-button,
.woocommerce-form-register .wp-element-button,
.woocommerce-EditAccountForm .wp-element-button{
    background-color:var(--wp--preset--color--custom-coffee)
}