.mytho-card-cart-control {
    --mytho-card-control-size: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.28rem;
    min-height: var(--mytho-card-control-size);
    max-width: 100%;
    white-space: nowrap;
    border-radius: 999px;
    transition: opacity 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.mytho-card-cart-control:not(.is-ready) {
    pointer-events: none;
    opacity: 0.62;
}

.mytho-card-cart-control.has-cart-item {
    padding: 0.14rem;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 4px 14px rgba(28, 52, 35, 0.14);
    backdrop-filter: blur(3px);
}

.mytho-card-cart-control__button {
    display: inline-flex !important;
    flex: 0 0 var(--mytho-card-control-size);
    align-items: center;
    justify-content: center;
    width: var(--mytho-card-control-size) !important;
    min-width: var(--mytho-card-control-size) !important;
    height: var(--mytho-card-control-size) !important;
    min-height: var(--mytho-card-control-size) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #14733a !important;
    border-radius: 999px !important;
    background: #087b3f !important;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(8, 83, 43, 0.18) !important;
    font: 700 1.2rem/1 system-ui, sans-serif !important;
    text-decoration: none !important;
    cursor: pointer;
}

.mytho-card-cart-control [hidden] {
    display: none !important;
}

.mytho-card-cart-control__button--add {
    border-color: #9bc6a8 !important;
    background: #fff !important;
    color: #087b3f !important;
}

.mytho-card-cart-control__button:hover,
.mytho-card-cart-control__button:focus-visible {
    border-color: #075d31 !important;
    background: #075d31 !important;
    color: #fff !important;
    outline: none;
}

.mytho-card-cart-control__button:disabled,
.mytho-card-cart-control__button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
}

.mytho-card-cart-control__add-label {
    display: none;
}

.mytho-card-cart-control__quantity {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 2.45rem;
    max-width: 5.5rem;
    min-height: var(--mytho-card-control-size);
    overflow: hidden;
    color: #153c27;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
}

.mytho-card-cart-control__button .dashicons {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
    line-height: 1;
}

.mytho-card-cart-control.is-syncing {
    box-shadow: 0 0 0 2px rgba(8, 123, 63, 0.16), 0 4px 14px rgba(28, 52, 35, 0.14);
}

.mytho-card-cart-control.has-error {
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(190, 54, 54, 0.22);
}

.mytho-homepage-v2-product-card__media-action .mytho-card-cart-control,
.mytho-search-result-card .mytho-card-cart-control {
    pointer-events: auto;
}

.site .product-action-wrap:has(.mytho-card-cart-control) {
    width: auto;
    max-width: calc(100% - 0.64rem);
}

.site .product-action-wrap > .mytho-card-cart-control {
    pointer-events: auto;
}

.single-product .summary.entry-summary > .mytho-card-cart-control--detail {
    display: flex;
    width: min(100%, 31rem);
    min-height: 3.15rem;
    margin: 1rem 0 0;
    border: 1px solid #cdd9cf;
    border-radius: 8px;
}

.single-product .summary.entry-summary > .mytho-card-cart-control--detail:not(.has-cart-item) {
    border-color: transparent;
}

.single-product .summary.entry-summary > .mytho-card-cart-control--detail.has-cart-item {
    gap: 0.42rem;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.88);
}

.mytho-card-cart-control--detail .mytho-card-cart-control__detail-state {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 0.6rem;
    overflow: hidden;
    color: #17452c;
    font-size: 0.88rem;
    font-weight: 700;
    text-overflow: ellipsis;
}

.mytho-card-cart-control--detail .mytho-card-cart-control__button {
    --mytho-card-control-size: 2.55rem;
    box-shadow: none !important;
}

.mytho-card-cart-control--detail .mytho-card-cart-control__button--add {
    flex: 1 1 100%;
    width: 100% !important;
    height: 3.15rem !important;
    border: 1px solid #087b3f !important;
    border-radius: 8px !important;
    background: #087b3f !important;
    color: #fff !important;
    font-size: 0.94rem !important;
}

.mytho-card-cart-control--detail .mytho-card-cart-control__button--add:hover,
.mytho-card-cart-control--detail .mytho-card-cart-control__button--add:focus-visible {
    background: #075d31 !important;
}

.mytho-card-cart-control--detail .mytho-card-cart-control__add-label {
    display: inline;
    margin-left: 0.42rem;
}

.mytho-card-cart-control--detail .mytho-card-cart-control__quantity {
    min-width: 3.2rem;
    max-width: 6.8rem;
    font-size: 0.84rem;
}

@media (max-width: 767px) {
    .mytho-card-cart-control {
        --mytho-card-control-size: 2.15rem;
        gap: 0.2rem;
    }

    .mytho-card-cart-control__quantity {
        min-width: 2.2rem;
        max-width: 4.6rem;
        font-size: 0.72rem;
    }

    .single-product .summary.entry-summary > .mytho-card-cart-control--detail {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .mytho-search-result-card > .mytho-card-cart-control {
        grid-column: 2;
        justify-self: start;
    }
}
