/*
 * Correcties voor kleine knoppen van WooCommerce (winkelwagen, afrekenen, Mijn account).
 * Het thema heeft een algemene regel `button { padding: 16px 32px !important; border: 1px solid oranje !important;
 * width: 100%; margin: 20px 0 30px; ... }` (src/sass/templates/_my-account.scss). Die is bedoeld voor de grote
 * actieknoppen, maar maakte ook de -/+ van het aantal, het prullenbakje en het kruisje van een coupon
 * groot en oranje omrand. Hier zetten we alleen die pictogramknoppen terug.
 */

/* Gemeenschappelijke reset */
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button,
.wc-block-cart-item__remove-link,
.wc-block-components-chip .wc-block-components-chip__remove {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    gap: 0 !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: inherit !important;
}

/* Aantal: - 1 + */
.wc-block-components-quantity-selector {
    border: 1px solid #c3cfd6 !important;
    border-radius: 8px !important;
    overflow: hidden;
    width: auto !important;
    min-width: 0 !important;
}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    font-size: 18px !important;
    cursor: pointer;
}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover:not(:disabled) {
    background: #f1f5f7 !important;
}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled {
    opacity: .35;
    cursor: default;
}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus-visible {
    outline: 2px solid #fb8500 !important;
    outline-offset: -2px;
}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
    border: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    min-width: 40px;
    text-align: center;
}

/* Rij met aantal + prullenbakje */
.wc-block-cart-item__quantity {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Prullenbakje */
.wc-block-cart-item__remove-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    cursor: pointer;
    opacity: .75;
}
.wc-block-cart-item__remove-link:hover {
    opacity: 1;
    color: #fb8500 !important;
    background: #fff3e3 !important;
}
.wc-block-cart-item__remove-link:focus-visible {
    outline: 2px solid #fb8500 !important;
    outline-offset: 2px;
}
.wc-block-cart-item__remove-link svg {
    fill: currentColor;
    width: 22px;
    height: 22px;
}

/* Kruisje om een coupon te verwijderen */
.wc-block-components-chip .wc-block-components-chip__remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 6px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    cursor: pointer;
}
.wc-block-components-chip .wc-block-components-chip__remove:hover {
    background: #fff3e3 !important;
    color: #fb8500 !important;
}
.wc-block-components-chip .wc-block-components-chip__remove svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
}
