/**
 * ACF CSS WooCommerce Toolkit - Button Styles
 * 
 * WooCommerce 버튼 스타일
 *
 * @package ACF_CSS_WooCommerce_Toolkit
 * @version 1.0.0
 */

/* ================================================
   박스쉐도우 아웃라인 제거
   ================================================ */
body:not(.woocommerce-block-theme-has-button-styles)
    .wc-block-components-button:not(.is-link):focus {
    box-shadow: none !important;
    outline: none !important;
}

.wc-block-components-button:not(.is-link).outlined:not(:focus) {
    box-shadow: none !important;
    outline: none !important;
}

/* ================================================
   미니카트 스타일
   ================================================ */
.wc-block-mini-cart__footer-cart {
    background-color: var(--base-3, #f5f5f5);
    color: currentColor;
    display: inline-flex;
    font-size: 0.875rem;
    line-height: 0.875rem;
    text-decoration: none;
    border: 1px solid var(--contrast-3, #ddd);
    border-radius: 0.375rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.wc-block-mini-cart__footer-cart:hover {
    color: currentColor;
    background-color: var(--base-2, #eee);
}

.wc-block-mini-cart__footer-checkout,
.wc-block-cart__submit-button {
    background-color: var(--contrast, #333);
    color: var(--base-3, #fff);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 0.875rem;
    border: 1px solid var(--contrast, #333);
    border-radius: 0.375rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.wc-block-mini-cart__footer-checkout:hover,
.wc-block-cart__submit-button:hover {
    color: var(--base-3, #fff);
    opacity: 0.95;
}

/* ================================================
   우커머스 버튼 (.alt 스타일)
   ================================================ */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    #respond input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor))
    .woocommerce #respond input#submit.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor))
    .woocommerce a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor))
    .woocommerce button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor))
    .woocommerce input.button.alt {
    background-color: var(--contrast, #333);
    color: var(--base-3, #fff);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 0.875rem;
    border: 0px solid var(--contrast, #333);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    #respond input#submit.alt:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    a.button.alt:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    button.button.alt:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
    input.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor))
    .woocommerce #respond input#submit.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor))
    .woocommerce a.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor))
    .woocommerce button.button.alt:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor))
    .woocommerce input.button.alt:hover {
    background-color: var(--contrast, #333);
    border: 0px solid var(--contrast, #333);
    color: var(--base-3, #fff);
    opacity: 0.95;
}

/* ================================================
   장바구니 추가 버튼 (기본)
   ================================================ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    transition: all 0.3s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    transform: translateY(-1px);
}
