.ipad-action-box {
    justify-content: flex-start;
}

.detail-controls {
    margin-top: auto;
    width: 100%;
}

.cart-status {
    width: calc(100% - 129px);
    margin-left: 129px;
    margin-bottom: 8px;
    color: #087a55;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
}

.detail-navigation {
    width: calc(100% - 129px);
    margin-left: 129px;
    margin-bottom: 8px;
}

.purchase-row .cart-form {
    margin-top: 0;
}

.detail-controls .cart-form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px !important;
}

.btn-detail-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 1px solid #ead9a8;
    border-radius: 12px;
    background: #fff4bf;
    color: var(--text-dark, #111827);
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn-detail-back:hover {
    background: #ffed9a;
    border-color: #dfc978;
}

.btn-detail-back:active {
    transform: scale(0.99);
}

.cart-item-actions {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 8px;
    height: 48px;
}

.cart-item-actions .btn-order {
    min-width: 0;
}

.detail-controls .cart-icon-with-count {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.detail-controls .cart-item-count {
    position: absolute;
    top: -9px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ffffff;
    color: #087a55;
    font-size: 10px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(8, 122, 85, 0.2);
    pointer-events: none;
}

.btn-remove-cart-item {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid #efc3c3;
    border-radius: 12px;
    background: #fff4f4;
    color: #b42318;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn-remove-cart-item:hover {
    background: #ffe2e2;
    border-color: #e6a3a3;
}

.btn-remove-cart-item:active {
    transform: scale(0.97);
}

.btn-remove-cart-item svg,
.btn-order .icon-cart {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .cart-status,
    .detail-navigation {
        width: 100%;
        margin-left: 0;
    }

    .cart-item-actions {
        gap: 6px;
    }
}
