/*
 * sophe_shopservice — frontend stylesheet
 * Relies on Bootstrap 5 provided by Bootstrap Package.
 * Only extension-specific overrides and additions are defined here.
 */

/* --------------------------------------------------------------------------
   Product price box
   -------------------------------------------------------------------------- */

.tx-sopheshopservice-product .card {
    transition: box-shadow 0.2s ease;
}

.tx-sopheshopservice-product .card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

/* Prevent the quantity input from growing beyond its compact width */
.tx-sopheshopservice-product input[type="number"] {
    -moz-appearance: textfield;
    width: 70px !important;
}

.tx-sopheshopservice-product input[type="number"]::-webkit-inner-spin-button,
.tx-sopheshopservice-product input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Cart widget badge
   -------------------------------------------------------------------------- */

/* Smooth badge appearance when item count changes */
.tx-sopheshopservice-cart-badge .badge {
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.tx-sopheshopservice-cart-badge .badge.animate {
    transform: scale(1.4);
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Checkout — multi-step layout
   -------------------------------------------------------------------------- */

.tx-sopheshopservice-checkout h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

/* Left-column order summary card — sticky on large screens */
@media (min-width: 992px) {
    .tx-sopheshopservice-checkout .col-lg-5 .card {
        position: sticky;
        top: 1.5rem;
    }
}

/* Payment tab pills */
.tx-sopheshopservice-checkout .nav-pills .nav-link {
    border: 1px solid #dee2e6;
    margin-right: 0.5rem;
    color: #495057;
}

.tx-sopheshopservice-checkout .nav-pills .nav-link.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* Stripe Elements container */
#stripe-card-element {
    min-height: 44px;
    display: flex;
    align-items: center;
    background-color: #fff;
}

/* Pay button loading state */
#stripe-pay-button.loading,
#paypal-pay-button.loading {
    opacity: 0.65;
    pointer-events: none;
    cursor: wait;
}

/* --------------------------------------------------------------------------
   Confirmation step
   -------------------------------------------------------------------------- */

.tx-sopheshopservice-checkout .bi-check-circle-fill {
    color: #198754;
}
