.dml-pp {
    --dml-pp-green: #314d22;
    --dml-pp-green-hover: #263d1a;
    --dml-pp-border: #d8d2c7;
    --dml-pp-text: #171717;
    --dml-pp-muted: #6d6a63;
    width: 100%;
    color: var(--dml-pp-text);
}

.dml-pp__label {
    display: block;
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.dml-pp__quantity {
    display: inline-flex;
    align-items: stretch;
    height: 38px;
    border: 1px solid var(--dml-pp-border);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.dml-pp__qty-button {
    appearance: none;
    width: 38px;
    min-width: 38px;
    height: 100%;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--dml-pp-text);
    font: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, color .18s ease;
}

.dml-pp__qty-button:hover:not(:disabled),
.dml-pp__qty-button:focus-visible:not(:disabled) {
    background: #f6f2eb;
}

.dml-pp__qty-button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.dml-pp__qty-input {
    appearance: textfield;
    -moz-appearance: textfield;
    width: 44px;
    min-width: 44px;
    height: 100%;
    margin: 0;
    padding: 0 5px;
    border: 0;
    border-left: 1px solid var(--dml-pp-border);
    border-right: 1px solid var(--dml-pp-border);
    border-radius: 0;
    outline: none;
    background: #fff;
    color: var(--dml-pp-text);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    box-shadow: none;
}

.dml-pp__qty-input::-webkit-outer-spin-button,
.dml-pp__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dml-pp__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
}

.dml-pp__button {
    appearance: none;
    width: 100%;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 3px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.dml-pp__button:disabled {
    opacity: .55;
    cursor: wait;
}

.dml-pp__button--cart {
    border: 1px solid var(--dml-pp-green);
    background: var(--dml-pp-green);
    color: #fff;
}

.dml-pp__button--cart:hover:not(:disabled),
.dml-pp__button--cart:focus-visible:not(:disabled) {
    border-color: var(--dml-pp-green-hover);
    background: var(--dml-pp-green-hover);
    color: #fff;
}

.dml-pp__button--buy {
    border: 1px solid #262626;
    background: #fff;
    color: #171717;
}

.dml-pp__button--buy:hover:not(:disabled),
.dml-pp__button--buy:focus-visible:not(:disabled) {
    background: #f6f2eb;
    color: #171717;
}

.dml-pp__button-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.dml-pp__status {
    min-height: 0;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--dml-pp-muted);
}

.dml-pp__status:empty {
    display: none;
}

.dml-pp__status.is-success {
    color: var(--dml-pp-green);
}

.dml-pp__status.is-error {
    color: #9d2d2d;
}

.dml-pp__unavailable {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--dml-pp-muted);
}

@media (prefers-reduced-motion: reduce) {
    .dml-pp__qty-button,
    .dml-pp__button {
        transition: none;
    }
}
