/**
 * CSS Componenti Comuni
 * Stili base per tutti i componenti
 */

/* ===== COMPONENTE: CART ITEM ===== */
.cart-item-wrapper {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item-wrapper:last-child {
    border-bottom: none;
}

.cart-item-image {
    text-align: center;
}

.cart-item-image img {
    max-width: 100%;
    height: auto;
}

.cart-item-details {
    padding-left: 20px;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.item-name a {
    color: inherit;
    text-decoration: none;
}

.item-name a:hover {
    color: #F87537;
}

.item-category {
    color: #999;
    font-size: 13px;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-quantity input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.item-price-carrello {
    font-size: 16px;
    color: #1a1a1a;
    min-width: 80px;
    text-align: right;
}

/* ===== COMPONENTE: PRODUCT CARD ===== */
.product-card-wrapper {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-wrapper {
    height: 200px;
    width: 100%;
    overflow: hidden;
    display: block;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 10px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.product-name a {
    color: inherit;
    text-decoration: none;
}

.product-name a:hover {
    color: #F87537;
}

.product-category {
    color: #999;
    font-size: 12px;
    margin-bottom: 8px;
}

.product-category a {
    color: #999;
    text-decoration: none;
}

.product-category a:hover {
    color: #F87537;
}

.product-price {
    color: #F87537;
    font-size: 14px;
    margin: 8px 0;
}

/* ===== COMPONENTE: LISTING CARD ===== */
.petbuy-listing-card {
    --petbuy-card-bg: #faf9f8;
    --petbuy-card-surface: #ffffff;
    --petbuy-card-border: #faf9f8;
    --petbuy-card-title: #1a1a1a;
    --petbuy-card-text: rgba(0, 0, 0, 0.8);
    --petbuy-card-muted: #e0e0e0;
    --petbuy-card-accent: #f87537;
    --petbuy-card-radius: 5px;
    --petbuy-card-width: 286px;
    --petbuy-card-media-height: 284px;
    --petbuy-card-body-height: 92px;
    --petbuy-card-body-padding: 17px 20px 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    width: var(--petbuy-card-width);
    min-width: var(--petbuy-card-width);
    max-width: var(--petbuy-card-width);
    height: calc(var(--petbuy-card-media-height) + var(--petbuy-card-body-height));
    min-height: calc(var(--petbuy-card-media-height) + var(--petbuy-card-body-height));
    max-height: calc(var(--petbuy-card-media-height) + var(--petbuy-card-body-height));
    margin-bottom: 24px;
    margin-inline: auto;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--petbuy-card-border);
    border-radius: var(--petbuy-card-radius);
    background: var(--petbuy-card-surface);
    box-shadow: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.petbuy-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(26, 26, 26, 0.08);
}

.petbuy-listing-card__media {
    position: relative;
    width: 100%;
    min-height: var(--petbuy-card-media-height);
    max-height: var(--petbuy-card-media-height);
    box-sizing: border-box;
    background: var(--petbuy-card-bg);
    overflow: hidden;
}

.petbuy-listing-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--petbuy-card-media-height);
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.petbuy-listing-card__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 1;
}

.petbuy-listing-card__rating {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.petbuy-listing-card__star {
    width: 19px;
    height: 18px;
    display: block;
}

.petbuy-listing-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 108px;
    height: 42px;
    padding: 0 12px 0 10px;
    background: #f87537;
    border-radius: 0 5px 0 5px;
    box-sizing: border-box;
}

.petbuy-listing-card__badge-icon {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.petbuy-listing-card__badge-text {
    position: relative;
    z-index: 1;
    color: #faf9f8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.petbuy-listing-card__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: var(--petbuy-card-body-height);
    max-height: var(--petbuy-card-body-height);
    padding: var(--petbuy-card-body-padding);
    box-sizing: border-box;
    border-top: 1px solid var(--petbuy-card-border);
    background: var(--petbuy-card-surface);
}

.petbuy-listing-card__copy {
    min-width: 0;
    flex: 1 1 auto;
}

.petbuy-listing-card__title {
    margin: 0 0 10px;
    color: var(--petbuy-card-title);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.petbuy-listing-card__title a {
    color: inherit !important;
    display: block;
    white-space: inherit;
    overflow: inherit;
    text-overflow: inherit;
}

.petbuy-listing-card__title a:hover {
    color: var(--petbuy-card-accent) !important;
}

.petbuy-listing-card__price {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    color: var(--petbuy-card-text);
    font-size: 14px;
    line-height: 20px;
}

.petbuy-listing-card__price-current {
    color: var(--petbuy-card-text);
    font-size: 14px;
    font-weight: 400;
}

.petbuy-listing-card__price-current--gift {
    color: var(--petbuy-card-accent);
    font-weight: 500;
}

.petbuy-listing-card__price-old {
    color: #807a7a;
    font-size: 13px;
    text-decoration: line-through;
}

.petbuy-listing-card__actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}

.petbuy-listing-card__action {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.petbuy-listing-card__action:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(26, 26, 26, 0.12);
}

.petbuy-listing-card__action img {
    width: 16px;
    height: 16px;
    display: block;
}

.petbuy-listing-card__action--wishlist img {
    width: 14px;
    height: 14px;
}

.petbuy-listing-card__action--wishlist.wishlist-added {
    animation: petbuyWishlistPulse 0.42s ease-out;
}

.petbuy-listing-card__action--wishlist.wishlist-added img {
    animation: petbuyWishlistIconPop 0.42s ease-out;
}

.petbuy-listing-card__action--cart.petbuy-cart-bump {
    animation: petbuyCartBump 0.46s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.petbuy-listing-card__action--cart.petbuy-cart-bump img {
    animation: petbuyCartIconPop 0.46s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.petbuy-button-loading,
:where(button, .btn, input[type="submit"], input[type="button"]).is-loading,
:where(button, .btn, input[type="submit"], input[type="button"])[aria-busy="true"] {
    position: relative;
    cursor: wait;
    pointer-events: none;
}

:where(button, .btn, input[type="submit"], input[type="button"]):not(.petbuy-listing-card__action).is-loading::after,
:where(button, .btn, input[type="submit"], input[type="button"]):not(.petbuy-listing-card__action)[aria-busy="true"]::after,
.petbuy-button-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 0.95em;
    height: 0.95em;
    margin-top: -0.475em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: petbuyButtonSpinner 0.72s linear infinite;
}


.petbuy-listing-card__action.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.petbuy-listing-card__action.is-loading img {
    opacity: 0;
}

.petbuy-listing-card__action.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    margin-left: -7px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: petbuyButtonSpinner 0.72s linear infinite;
}

:root {
    --petbuy-message-info-bg: #fff7f2;
    --petbuy-message-info-border: rgba(248, 117, 55, 0.18);
    --petbuy-message-info-text: #6f4a39;
    --petbuy-message-success-bg: #eef9f1;
    --petbuy-message-success-border: rgba(29, 123, 66, 0.18);
    --petbuy-message-success-text: #1d7b42;
    --petbuy-message-warning-bg: #fff8eb;
    --petbuy-message-warning-border: rgba(232, 156, 24, 0.22);
    --petbuy-message-warning-text: #9a650a;
    --petbuy-message-error-bg: #fff1f2;
    --petbuy-message-error-border: rgba(214, 69, 80, 0.2);
    --petbuy-message-error-text: #b32633;
}

.petbuy-site-message {
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--petbuy-message-info-border);
    border-radius: 16px;
    background: var(--petbuy-message-info-bg);
    color: var(--petbuy-message-info-text);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 600;
}

.petbuy-site-message[hidden] {
    display: none !important;
}

.petbuy-site-message--info {
    border-color: var(--petbuy-message-info-border);
    background: var(--petbuy-message-info-bg);
    color: var(--petbuy-message-info-text);
}

.petbuy-site-message--success {
    border-color: var(--petbuy-message-success-border);
    background: var(--petbuy-message-success-bg);
    color: var(--petbuy-message-success-text);
}

.petbuy-site-message--warning {
    border-color: var(--petbuy-message-warning-border);
    background: var(--petbuy-message-warning-bg);
    color: var(--petbuy-message-warning-text);
}

.petbuy-site-message--error {
    border-color: var(--petbuy-message-error-border);
    background: var(--petbuy-message-error-bg);
    color: var(--petbuy-message-error-text);
}

:is(
    .petbuy-login-alert,
    .petbuy-recovery-alert,
    .petbuy-profile-alert,
    .petbuy-profile-step-up-alert,
    .petbuy-profile-orders-alert,
    .petbuy-profile-security-alert,
    .petbuy-profile-devices-alert,
    .petbuy-profile-google-link-alert
).alert {
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--petbuy-message-info-border);
    background: var(--petbuy-message-info-bg);
    color: var(--petbuy-message-info-text);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 600;
    box-shadow: none;
}

:is(
    .petbuy-login-alert,
    .petbuy-recovery-alert,
    .petbuy-profile-alert,
    .petbuy-profile-step-up-alert,
    .petbuy-profile-orders-alert,
    .petbuy-profile-security-alert,
    .petbuy-profile-devices-alert,
    .petbuy-profile-google-link-alert
).alert.alert-success {
    border-color: var(--petbuy-message-success-border);
    background: var(--petbuy-message-success-bg);
    color: var(--petbuy-message-success-text);
}

:is(
    .petbuy-login-alert,
    .petbuy-recovery-alert,
    .petbuy-profile-alert,
    .petbuy-profile-step-up-alert,
    .petbuy-profile-orders-alert,
    .petbuy-profile-security-alert,
    .petbuy-profile-devices-alert,
    .petbuy-profile-google-link-alert
).alert.alert-warning {
    border-color: var(--petbuy-message-warning-border);
    background: var(--petbuy-message-warning-bg);
    color: var(--petbuy-message-warning-text);
}

:is(
    .petbuy-login-alert,
    .petbuy-recovery-alert,
    .petbuy-profile-alert,
    .petbuy-profile-step-up-alert,
    .petbuy-profile-orders-alert,
    .petbuy-profile-security-alert,
    .petbuy-profile-devices-alert,
    .petbuy-profile-google-link-alert
).alert.alert-danger {
    border-color: var(--petbuy-message-error-border);
    background: var(--petbuy-message-error-bg);
    color: var(--petbuy-message-error-text);
}

@keyframes petbuyCartBump {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.12) translateY(-2px);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes petbuyCartIconPop {
    0% {
        transform: scale(1) rotate(0deg);
    }
    45% {
        transform: scale(1.22) rotate(-8deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes petbuyButtonSpinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991.98px) {
    .petbuy-listing-card {
        --petbuy-card-width: 100%;
        --petbuy-card-media-height: auto;
        --petbuy-card-body-height: auto;
        --petbuy-card-body-padding: 14px 0 0;
        height: auto;
        min-height: 0;
        max-height: none;
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    .petbuy-listing-card:hover {
        transform: none;
        box-shadow: none;
    }

    .petbuy-listing-card__media {
        min-height: 0;
        max-height: none;
        aspect-ratio: 1 / 1;
        border: 1px solid var(--petbuy-card-border);
        border-radius: var(--petbuy-card-radius);
    }

    .petbuy-listing-card__image-link {
        height: 100%;
        min-height: 0;
        padding: 18px;
    }

    .petbuy-listing-card__rating {
        top: 14px;
        left: 14px;
        gap: 6px;
    }

    .petbuy-listing-card__star {
        width: 18px;
        height: 17px;
    }

    .petbuy-listing-card__badge {
        min-width: 102px;
        height: 40px;
        padding: 0 11px 0 10px;
    }

    .petbuy-listing-card__body {
        min-height: 0;
        max-height: none;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        border-top: 0;
        background: transparent;
    }

    .petbuy-listing-card__title {
        margin: 0;
        font-size: 18px;
        line-height: 1.25;
    }

    .petbuy-listing-card__price {
        margin-top: 8px;
        min-height: 20px;
    }

    .petbuy-listing-card__actions {
        width: 100%;
        justify-content: flex-end;
        gap: 12px;
    }

    .petbuy-listing-card__action {
        width: 52px;
        height: 52px;
    }

    .petbuy-listing-card__action img {
        width: 22px;
        height: 22px;
    }

    .petbuy-listing-card__action--wishlist img {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .petbuy-listing-card {
        margin-bottom: 28px;
    }

    .petbuy-listing-card__title {
        font-size: 20px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --petbuy-shop-mobile-toolbar-gap: clamp(12px, 2.8vw, 18px);
    }

    #contenuto-1a-desktop .product-list-container-js,
    #contenuto-1a-mobile .product-list-container-js,
    #contenuto-2a-desktop .product-list-container-js,
    #contenuto-2a-mobile .product-list-container-js,
    #contenuto-3a-desktop .product-list-container-js,
    #contenuto-3a-mobile .product-list-container-js {
        padding-top: var(--petbuy-shop-mobile-toolbar-gap);
    }

    .petbuy-listing-card__price-current--sale {
        order: 2;
        flex-basis: 100%;
    }

    .petbuy-listing-card__price-current--sale + .petbuy-listing-card__price-old {
        order: 1;
    }

    .petbuy-listing-card {
        margin-bottom: 22px;
    }

    .petbuy-listing-card__badge {
        min-width: 96px;
        height: 36px;
    }

    .petbuy-listing-card__badge-text {
        font-size: 12px;
    }

    .petbuy-listing-card__title {
        font-size: 19px;
    }

    .petbuy-listing-card__action {
        width: 48px;
        height: 48px;
    }

    body.post-type-archive-product .petbuy-listing-card {
        --petbuy-card-width: 100%;
        --petbuy-card-media-height: 174px;
        --petbuy-card-body-height: auto;
        --petbuy-card-body-padding: 12px 0 0;
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        min-height: 0;
        max-height: none;
        margin-bottom: 26px;
    }

    body.post-type-archive-product .petbuy-listing-card__media {
        min-height: 174px;
        max-height: 174px;
        aspect-ratio: auto;
        border: 0;
        border-radius: 3px;
        background: #faf9f8;
    }

    body.post-type-archive-product .petbuy-listing-card__image-link {
        padding: 18px 14px 14px;
    }

    body.post-type-archive-product .petbuy-listing-card__rating {
        top: 7px;
        left: 11px;
        gap: 4px;
    }

    body.post-type-archive-product .petbuy-listing-card__star {
        width: 12px;
        height: 12px;
    }

    body.post-type-archive-product .petbuy-listing-card__badge {
        min-width: 66px;
        width: auto;
        max-width: 92px;
        height: 34px;
        padding: 0 10px 0 9px;
    }

    body.post-type-archive-product .petbuy-listing-card__badge-icon {
        width: 10px;
        height: 10px;
        flex-basis: 10px;
    }

    body.post-type-archive-product .petbuy-listing-card__badge-text {
        font-size: 10px;
    }

    body.post-type-archive-product .petbuy-listing-card__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title title"
            "price actions";
        align-items: end;
        gap: 12px 10px;
        min-height: 0;
        max-height: none;
        padding: 12px 0 0;
        border-top: 0;
        background: transparent;
    }

    body.post-type-archive-product .petbuy-listing-card__copy {
        display: contents;
    }

    body.post-type-archive-product .petbuy-listing-card__title {
        grid-area: title;
        margin: 0;
        font-size: 16.83px;
        line-height: 1.05;
    }

    body.post-type-archive-product .petbuy-listing-card__price {
        grid-area: price;
        margin-top: 0;
        min-height: 0;
        gap: 6px;
        font-size: 13.1px;
        line-height: 1;
    }

    body.post-type-archive-product .petbuy-listing-card__price-current {
        font-size: 13.1px;
        line-height: 1;
    }

    body.post-type-archive-product .petbuy-listing-card__price-old {
        font-size: 12px;
    }

    body.post-type-archive-product .petbuy-listing-card__actions {
        grid-area: actions;
        width: auto;
        justify-content: flex-end;
        gap: 9px;
    }

    body.post-type-archive-product .petbuy-listing-card__action {
        width: 26px;
        height: 26px;
        background: #f8f9fa;
    }

    body.post-type-archive-product .petbuy-listing-card__action img {
        width: 14px;
        height: 14px;
    }

    body.post-type-archive-product .petbuy-listing-card__action--wishlist img {
        width: 13px;
        height: 13px;
    }

    body.post-type-archive-product .petbuy-listing-card__skeleton--rating {
        top: 7px;
        left: 11px;
        width: 76px;
        height: 12px;
    }

    body.post-type-archive-product .petbuy-listing-card__skeleton--badge {
        width: 70px;
        height: 42px;
    }

    body.post-type-archive-product .petbuy-listing-card__skeleton--title {
        width: 112px;
        height: 17px;
        margin-bottom: 0;
    }

    body.post-type-archive-product .petbuy-listing-card__skeleton--price {
        width: 48px;
        height: 13px;
    }

    body.post-type-archive-product .petbuy-listing-card__skeleton--action {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
    }
}

@keyframes petbuyWishlistPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(248, 117, 55, 0);
    }
    45% {
        transform: scale(1.12);
        box-shadow: 0 0 0 8px rgba(248, 117, 55, 0.14);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(248, 117, 55, 0);
    }
}

@keyframes petbuyWishlistIconPop {
    0% {
        transform: scale(1) rotate(0deg);
    }
    40% {
        transform: scale(1.18) rotate(-8deg);
    }
    75% {
        transform: scale(0.94) rotate(6deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.petbuy-listing-card__toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    padding: 12px 16px;
    border-radius: 14px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.petbuy-listing-card__toast.is-error {
    background: #b42318;
}

.petbuy-account-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.petbuy-account-toggle,
.petbuy-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0.4rem 0.85rem;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.petbuy-account-toggle {
    cursor: pointer;
}

.petbuy-account-toggle:focus-visible,
.petbuy-account-link:focus-visible {
    outline: 2px solid #f87537;
    outline-offset: 3px;
}

.petbuy-account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    background: linear-gradient(145deg, #ffffff 0%, #fff6ef 100%);
    border: 1px solid #f4d9c6;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    padding: 4px;
    display: none;
    z-index: 1000;
}

.petbuy-account-dropdown.is-open .petbuy-account-toggle {
    background: #fbece4;
    box-shadow: 0 12px 28px rgba(248, 117, 55, 0.15);
}

.petbuy-account-dropdown.is-open .petbuy-account-menu {
    display: block;
}

.petbuy-account-option {
    width: 100%;
    display: block;
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: left;
    color: #000000 !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.petbuy-account-option:hover,
.petbuy-account-option:focus-visible {
    background: #ffe9db;
    color: #f87537 !important;
    transform: translateY(-1px);
    outline: none;
}

.petbuy-account-option + .petbuy-account-option {
    margin-top: 2px;
}

.petbuy-account-option--logout {
    cursor: pointer;
}

.woocommerce-account .woocommerce {
    max-width: 1380px;
    margin: 32px auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none;
    width: auto;
    position: sticky;
    top: 110px;
    padding: 20px;
    border: 1px solid #f0e9df;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff9f4 0%, #ffffff 100%);
    box-shadow: 0 18px 34px rgba(61, 57, 56, 0.06);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li + li {
    margin-top: 8px;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 13px 16px;
    border-radius: 14px;
    color: #3d3938;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
    background-color: #fff1e8;
    color: #f87537;
    transform: translateY(-1px);
    outline: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    background-color: #f87537;
    color: #ffffff;
    box-shadow: 0 16px 26px rgba(248, 117, 55, 0.18);
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: auto;
    min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-content.petbuy-account-content--view-order {
    grid-column: 1 / -1;
    width: 100%;
}

.woocommerce-account .woocommerce-notices-wrapper {
    margin-bottom: 24px;
}

.petbuy-view-order {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.petbuy-view-order__hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 340px);
    align-items: stretch;
    gap: 32px;
    padding: 34px 38px;
    border: 1px solid #f0e9df;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(248, 117, 55, 0.12) 0, rgba(248, 117, 55, 0) 42%),
        linear-gradient(135deg, #fff8f2 0%, #ffffff 62%);
    box-shadow: 0 24px 44px rgba(61, 57, 56, 0.08);
    overflow: hidden;
    isolation: isolate;
}

.petbuy-view-order__hero::after {
    content: "";
    position: absolute;
    right: 24px;
    bottom: 20px;
    width: 136px;
    height: 136px;
    background: url("../../../../uploads/ufficiale/impronte-profilo-ordini.svg") center / contain no-repeat;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.petbuy-view-order__hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.petbuy-view-order__eyebrow,
.petbuy-view-order__section-eyebrow,
.petbuy-order-details__eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    color: #807a7a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.petbuy-view-order__title {
    margin: 0 0 12px;
    color: #2b2827;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.02;
}

.petbuy-view-order__description {
    max-width: 640px;
    margin: 0;
    color: #5d5857;
    font-size: 16px;
    line-height: 1.7;
}

.petbuy-view-order__hero-side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 22px;
    padding: 22px;
    border: 1px solid rgba(240, 233, 223, 0.95);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 34px rgba(61, 57, 56, 0.07);
    backdrop-filter: blur(10px);
}

.petbuy-view-order__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 40px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.petbuy-view-order__status--completed {
    background: #edf7ef;
    color: #2f7d32;
}

.petbuy-view-order__status--processing {
    background: #fff1e8;
    color: #f87537;
}

.petbuy-view-order__status--hold {
    background: #fff7df;
    color: #8f6a00;
}

.petbuy-view-order__status--muted,
.petbuy-view-order__status--default {
    background: #f3f4f6;
    color: #5f6368;
}

.petbuy-view-order__hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.petbuy-view-order__ghost-btn,
.petbuy-view-order__primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.petbuy-view-order__primary-btn {
    box-shadow: 0 16px 26px rgba(248, 117, 55, 0.18);
}

.petbuy-view-order__ghost-btn:hover,
.petbuy-view-order__ghost-btn:focus-visible,
.petbuy-view-order__primary-btn:hover,
.petbuy-view-order__primary-btn:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.petbuy-metric-grid {
    align-items: stretch;
}

.petbuy-metric-grid > * {
    min-width: 0;
}

.petbuy-metric-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
    height: 100%;
    padding: 20px;
    border: 1px solid #f0e9df;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(248, 117, 55, 0.12), transparent 38%),
        linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
    box-shadow: 0 16px 30px rgba(61, 57, 56, 0.05);
    overflow: hidden;
}

.petbuy-metric-card__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(243, 223, 208, 0.92);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 18px rgba(61, 57, 56, 0.04);
}

.petbuy-metric-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.petbuy-metric-card__eyebrow {
    display: block;
    margin: 0;
    color: #807a7a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
    text-wrap: pretty;
}

.petbuy-metric-card__value {
    display: block;
    margin: 0;
    color: #2b2827;
    font-size: clamp(22px, 1.8vw, 30px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.petbuy-metric-card__meta {
    margin: 0;
    color: #5d5857;
    font-size: 14px;
    line-height: 1.55;
}

.petbuy-metric-card--compact {
    gap: 12px;
    min-height: 128px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(243, 223, 208, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.petbuy-metric-card--compact .petbuy-metric-card__eyebrow {
    max-width: none;
    overflow-wrap: anywhere;
}

.petbuy-metric-card--compact .petbuy-metric-card__value {
    margin-top: auto;
    font-size: clamp(28px, 2.4vw, 38px);
}

.petbuy-view-order__summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 18px;
}

.petbuy-view-order__summary-card {
    min-height: 180px;
}

.petbuy-view-order__summary-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.petbuy-view-order__summary-copy .petbuy-metric-card__eyebrow {
    max-width: none;
}

.petbuy-view-order__summary-copy .petbuy-metric-card__meta {
    margin-top: auto;
}

.petbuy-view-order__section-head,
.petbuy-order-details__panel-head,
.petbuy-order-customer-details__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.petbuy-view-order__section-title,
.petbuy-order-details__title {
    margin: 0;
    color: #2b2827;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.petbuy-view-order__updates {
    padding: 24px 28px;
    border: 1px solid #f0e9df;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(61, 57, 56, 0.05);
}

.petbuy-view-order__updates-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.petbuy-view-order__update {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid #f4e7da;
    border-radius: 18px;
    background: #fffaf6;
}

.petbuy-view-order__update-date {
    color: #807a7a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.petbuy-view-order__update-copy {
    color: #2b2827;
    font-size: 15px;
    line-height: 1.65;
}

.petbuy-view-order__update-copy > :first-child {
    margin-top: 0;
}

.petbuy-view-order__update-copy > :last-child {
    margin-bottom: 0;
}

.petbuy-order-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.petbuy-order-details__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.petbuy-order-details__panel,
.petbuy-order-customer-details {
    padding: 24px 28px;
    border: 1px solid #f0e9df;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(61, 57, 56, 0.05);
}

.petbuy-order-details__count {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff1e8;
    color: #f87537;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.petbuy-order-details__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.petbuy-order-details__panel--summary {
    position: sticky;
    top: 128px;
}

.petbuy-order-details__item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid #f4efe8;
    border-radius: 20px;
    background: #fffdfa;
}

.petbuy-order-details__item-media img {
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: 18px;
    background: #f3f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.petbuy-order-details__item-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.petbuy-order-details__item-title {
    margin: 0;
    color: #2b2827;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.petbuy-order-details__item-title a {
    color: inherit;
    text-decoration: none;
}

.petbuy-order-details__item-title a:hover {
    color: #f87537;
}

.petbuy-order-details__item-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #5d5857;
    font-size: 14px;
    line-height: 1.55;
}

.petbuy-order-details__item-qty {
    color: #807a7a;
    font-size: 13px;
    font-weight: 700;
}

.petbuy-order-details__item-attributes .wc-item-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.petbuy-order-details__item-attributes .wc-item-meta li {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #f0e9df;
    border-radius: 999px;
    background: #fffaf6;
    color: #5d5857;
}

.petbuy-order-details__item-attributes .wc-item-meta-label {
    color: #2b2827;
    font-weight: 700;
}

.petbuy-order-details__item-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.petbuy-order-details__item-total {
    color: #2b2827;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.petbuy-order-details__purchase-note {
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff6ef;
    color: #5d5857;
    font-size: 14px;
    line-height: 1.6;
}

.petbuy-order-details__purchase-note > :first-child {
    margin-top: 0;
}

.petbuy-order-details__purchase-note > :last-child {
    margin-bottom: 0;
}

.petbuy-order-details__totals {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.petbuy-order-details__total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f4efe8;
    color: #5d5857;
    font-size: 15px;
    line-height: 1.5;
}

.petbuy-order-details__total-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.petbuy-order-details__total-row strong {
    color: #2b2827;
    font-size: 18px;
    font-weight: 800;
    text-align: right;
}

.petbuy-order-details__item-total .amount,
.petbuy-order-details__item-total bdi,
.petbuy-order-details__total-row strong .amount,
.petbuy-order-details__total-row strong bdi {
    display: inline-flex;
    align-items: baseline;
    gap: 0.06em;
}

.petbuy-order-details__item-total .woocommerce-Price-currencySymbol,
.petbuy-order-details__total-row strong .woocommerce-Price-currencySymbol {
    font-size: 0.94em;
}

.petbuy-order-details__customer-note {
    margin-top: 20px;
    padding: 16px;
    border-radius: 16px;
    background: #fffaf6;
    color: #5d5857;
    font-size: 14px;
    line-height: 1.7;
}

.petbuy-order-details__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.petbuy-order-details__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.petbuy-order-details__action:hover,
.petbuy-order-details__action:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.petbuy-order-customer-details__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.petbuy-order-customer-details__grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.petbuy-order-customer-details__card {
    padding: 18px 20px;
    border: 1px solid #f4efe8;
    border-radius: 20px;
    background: #fffdfa;
}

.petbuy-order-customer-details__card-title {
    margin: 0 0 14px;
    color: #2b2827;
    font-size: 20px;
    font-weight: 800;
}

.petbuy-order-customer-details__address {
    margin: 0;
    color: #5d5857;
    font-size: 15px;
    line-height: 1.75;
}

.petbuy-order-customer-details__line {
    margin: 12px 0 0;
    color: #5d5857;
    font-size: 14px;
    line-height: 1.6;
}

.petbuy-order-customer-details__line strong {
    color: #2b2827;
}

@media (max-width: 1279.98px) {
    .petbuy-view-order__summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .petbuy-order-details__panel--summary {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .petbuy-account-menu {
        position: static;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0;
        margin-top: 8px;
    }

    .petbuy-account-option {
        padding: 12px 0;
    }

    .woocommerce-account .woocommerce {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 0 16px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        position: static;
        padding: 16px;
        border-radius: 20px;
    }

    .petbuy-view-order__hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 22px 20px;
        border-radius: 24px;
        gap: 20px;
    }

    .petbuy-view-order__hero::after {
        width: 108px;
        height: 108px;
        right: 14px;
        bottom: 12px;
    }

    .petbuy-view-order__hero-side {
        padding: 18px;
        border-radius: 18px;
    }

    .petbuy-view-order__hero-actions {
        width: 100%;
    }

    .petbuy-view-order__ghost-btn,
    .petbuy-view-order__primary-btn {
        width: 100%;
        white-space: normal;
    }

    .petbuy-view-order__summary-grid,
    .petbuy-order-details__grid,
    .petbuy-order-customer-details__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .petbuy-view-order__updates,
    .petbuy-order-details__panel,
    .petbuy-order-customer-details {
        padding: 20px;
    }

    .petbuy-view-order__update {
        grid-template-columns: minmax(0, 1fr);
    }

    .petbuy-order-details__item {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .petbuy-order-details__item-media img {
        width: 88px;
        height: 88px;
    }

    .petbuy-order-details__item-footer,
    .petbuy-order-details__total-row {
        justify-content: space-between;
    }
}

@media (max-width: 575.98px) {
    .petbuy-view-order__title,
    .petbuy-view-order__section-title,
    .petbuy-order-details__title {
        text-wrap: balance;
    }

    .petbuy-order-details__item {
        grid-template-columns: minmax(0, 1fr);
    }

    .petbuy-order-details__item-media img {
        width: 96px;
        height: 96px;
    }

    .petbuy-order-details__item-footer {
        justify-content: flex-start;
    }

    .petbuy-order-details__total-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

/* ===== COMPONENTE: PROFILE MENU ===== */
.profile-menu-wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item-profile {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: #807a7a;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-item-profile:hover {
    color: #F87537;
}

.menu-item-profile.active {
    color: #F87537;
    font-weight: 600;
}

.menu-item-profile img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.petbuy-profile-sidebar__menu {
    gap: 8px;
}

.petbuy-profile-nav__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 0;
    border-right: 4px solid transparent;
    border-radius: 18px 0 0 18px;
    background: transparent;
    color: #495057 !important;
    font: inherit;
    font-weight: 600;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.petbuy-profile-nav__item > span:last-child,
.petbuy-profile-mobile-nav__chip > span:last-child {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    line-height: 1.2;
}

.petbuy-profile-tab-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    flex-shrink: 0;
}

.petbuy-profile-tab-icon__badge {
    position: absolute;
    top: -7px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f87537;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px #faf9f8;
}

.petbuy-profile-nav__item .petbuy-profile-tab-icon {
    width: 24px;
    height: 24px;
}

.petbuy-profile-mobile-nav__chip .petbuy-profile-tab-icon {
    width: 26px;
    height: 26px;
}

.petbuy-profile-mobile-nav__chip .petbuy-profile-tab-icon__badge {
    box-shadow: 0 0 0 2px #f3f9fa;
}

.petbuy-profile-tab-icon__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.18s ease;
}

.petbuy-profile-tab-icon__img--active {
    opacity: 0;
}

.petbuy-profile-nav__item.active .petbuy-profile-tab-icon__img--active,
.petbuy-profile-mobile-nav__chip.active .petbuy-profile-tab-icon__img--active {
    opacity: 1;
}

.petbuy-profile-nav__item.active .petbuy-profile-tab-icon__img--inactive,
.petbuy-profile-mobile-nav__chip.active .petbuy-profile-tab-icon__img--inactive {
    opacity: 0;
}

.petbuy-profile-nav__item:hover,
.petbuy-profile-nav__item:focus-visible {
    background: rgba(248, 117, 55, 0.08);
    color: #F87537 !important;
    outline: none;
}

.petbuy-profile-nav__item.active {
    background: linear-gradient(90deg, rgba(248, 117, 55, 0.14) 0%, rgba(248, 117, 55, 0) 100%);
    color: #F87537 !important;
    font-weight: 700;
    border-right-color: #F87537;
}

.petbuy-profile-nav__item[data-target="sicurezza"] {
    padding-inline: 22px 24px;
}

.petbuy-profile-mobile-nav {
    position: relative;
    z-index: 6;
}

.petbuy-profile-mobile-nav__scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.petbuy-profile-mobile-nav__scroll::-webkit-scrollbar {
    display: none;
}

.petbuy-profile-mobile-nav__chip {
    min-width: 122px;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 0;
    border-radius: 16px;
    background: #f3f9fa;
    box-shadow: inset 0 0 0 1px rgba(223, 230, 235, 0.92);
    color: #757171 !important;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.petbuy-profile-mobile-nav__chip:hover,
.petbuy-profile-mobile-nav__chip:focus-visible {
    background: #eef7f8;
    color: #F87537 !important;
    outline: none;
}

.petbuy-profile-mobile-nav__chip.active {
    background: #f3f9fa;
    color: #F87537 !important;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(248, 117, 55, 0.14);
}

.petbuy-profile-mobile-nav__chip[data-target="sicurezza"] {
    min-width: 148px;
    padding-inline: 18px 24px;
}

/* ===== COMPONENTE: FORM FIELD ===== */
.form-field-wrapper {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 14px;
}

.form-label .text-danger {
    color: #dc3545;
    margin-left: 3px;
}

.edit-form-header {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.edit-form-header:focus {
    border-color: #F87537;
    box-shadow: 0 0 0 3px rgba(248, 117, 55, 0.1);
}

.edit-form-header.is-invalid {
    border-color: #dc3545;
}

.edit-form-header.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.invalid-feedback.d-block {
    display: block;
}

.petbuy-profile-choice-group.is-invalid {
    padding: 10px;
    border: 1px solid #dc3545;
    border-radius: 18px;
    background: rgba(220, 53, 69, 0.04);
}

.petbuy-profile-upload-layout.is-invalid .petbuy-profile-upload-trigger,
.petbuy-profile-upload-layout.is-invalid .petbuy-profile-upload-grid,
.petbuy-profile-upload-layout.is-invalid .petbuy-profile-upload-empty {
    border-color: #dc3545;
}

.petbuy-rich-editor.is-invalid .petbuy-rich-editor__surface {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

select.edit-form-header {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1.5em;
    padding-right: 40px;
}

.petbuy-profile-action-row {
    margin-top: 28px;
    display: flex;
    justify-content: flex-start;
}

.petbuy-profile-step-up {
    margin-bottom: 24px;
}

.petbuy-profile-tab-layout {
    width: 100%;
}

.petbuy-profile-step-up-card {
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(248, 117, 55, 0.16);
    background: #fff8f3;
}

.petbuy-profile-step-up-title {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #3d3938;
}

.petbuy-profile-email-state {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff4ed;
    color: #7b4b2f;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid rgba(248, 117, 55, 0.14);
}

.petbuy-profile-field-status {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.petbuy-profile-field-status.is-success {
    color: #2f7d32;
}

.petbuy-profile-field-status.is-error {
    color: #c62828;
}

.petbuy-profile-readonly-field {
    color: #6d6767;
    cursor: default;
    user-select: none;
}

.petbuy-profile-readonly-field:focus {
    border-color: #ddd;
    box-shadow: none;
}

.petbuy-profile-copy-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.petbuy-profile-copy-toggle .form-check-input {
    margin-top: 0;
    cursor: pointer;
}

.petbuy-profile-copy-toggle .form-check-label {
    margin-bottom: 0;
    cursor: pointer;
}

.petbuy-profile-address-card {
    min-width: 0;
}

.petbuy-profile-action-btn {
    min-width: 320px;
    min-height: 56px;
    padding: 14px 28px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background-color: #F87537 !important;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700 !important;
    line-height: 1.1;
    box-shadow: none !important;
}

.petbuy-profile-action-btn:hover,
.petbuy-profile-action-btn:focus,
.petbuy-profile-action-btn:active {
    background-color: #F87537 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.petbuy-profile-action-btn[disabled] {
    opacity: 0.72;
    cursor: not-allowed;
}

.petbuy-profile-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.petbuy-profile-dropdown-card {
    overflow: hidden;
    border: 1px solid #f0e9df;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
    box-shadow: 0 14px 32px rgba(61, 57, 56, 0.05);
}

.petbuy-profile-dropdown-card > summary {
    list-style: none;
}

.petbuy-profile-dropdown-card > summary::marker {
    content: "";
}

.petbuy-profile-dropdown-card > summary::-webkit-details-marker {
    display: none;
}

.petbuy-profile-dropdown-card__summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.petbuy-profile-dropdown-card__summary:hover,
.petbuy-profile-dropdown-card__summary:focus-visible {
    background-color: rgba(255, 255, 255, 0.38);
    outline: none;
}

.petbuy-profile-dropdown-card__summary--compact {
    align-items: center;
    padding: 20px 22px;
}

.petbuy-profile-dropdown-card__summary-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    background: #f3f9fa;
    flex-shrink: 0;
}

.petbuy-profile-dropdown-card__summary-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.petbuy-profile-dropdown-card__summary-main {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
}

.petbuy-profile-dropdown-card__eyebrow {
    display: inline-flex;
    align-self: flex-start;
    color: #807a7a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.petbuy-profile-dropdown-card__title {
    margin: 0;
    color: #2b2827;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.12;
}

.petbuy-profile-dropdown-card__title--compact {
    font-size: 18px;
    line-height: 1.28;
}

.petbuy-profile-dropdown-card__description {
    margin: 0;
    color: #807a7a;
    font-size: 14px;
    line-height: 1.55;
}

.petbuy-profile-dropdown-card__description--compact {
    font-size: 13px;
}

.petbuy-profile-dropdown-card__summary-side {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.petbuy-profile-dropdown-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background-color: #fff1e8;
    color: #f87537;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.petbuy-profile-dropdown-card__badge.is-linked {
    background-color: #ebf8f0;
    color: #308f58;
}

.petbuy-profile-dropdown-card__badge.is-pending {
    background-color: #fff5ed;
    color: #f87537;
}

.petbuy-profile-dropdown-card__badge.is-error {
    background-color: #fdecec;
    color: #c04545;
}

.petbuy-profile-dropdown-card__chevron {
    position: relative;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #eaded1;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(61, 57, 56, 0.06);
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.petbuy-profile-dropdown-card__chevron::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: #5a4b45;
    transform: translate(-50%, -50%);
    transition: background-color 0.18s ease;
}

.petbuy-profile-dropdown-card__chevron::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 14px;
    border-radius: 999px;
    background: #5a4b45;
    transform: translate(-50%, -50%) scaleY(1);
    transform-origin: center;
    transition: transform 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.petbuy-profile-dropdown-card[open] .petbuy-profile-dropdown-card__chevron {
    border-color: rgba(248, 117, 55, 0.24);
    background-color: #fff8f3;
}

.petbuy-profile-dropdown-card[open] .petbuy-profile-dropdown-card__chevron::before {
    background: #f87537;
}

.petbuy-profile-dropdown-card[open] .petbuy-profile-dropdown-card__chevron::after {
    background: #f87537;
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0);
}

.petbuy-profile-dropdown-card__content {
    padding: 0 28px 28px;
}

.petbuy-profile-dropdown-card__content::before {
    content: "";
    display: block;
    margin-bottom: 24px;
    border-top: 1px solid #efe4d8;
}

.petbuy-profile-dropdown-card--static .petbuy-profile-dropdown-card__summary {
    cursor: default;
}

.petbuy-profile-dropdown-card--static .petbuy-profile-dropdown-card__summary:hover,
.petbuy-profile-dropdown-card--static .petbuy-profile-dropdown-card__summary:focus-visible {
    background-color: transparent;
}

.petbuy-profile-dropdown-card__summary--static {
    padding-bottom: 18px;
}

.petbuy-profile-dropdown-card__content--static {
    padding-top: 0;
}

.petbuy-profile-dropdown-card--nested {
    height: 100%;
    box-shadow: none;
}

.petbuy-profile-dropdown-card--nested .petbuy-profile-dropdown-card__content {
    padding: 0 22px 22px;
}

.petbuy-profile-dropdown-card--nested .petbuy-profile-dropdown-card__content::before {
    margin-bottom: 20px;
}

.petbuy-profile-dropdown-card__meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.petbuy-profile-dropdown-card__meta-item {
    padding: 14px 16px;
    border: 1px solid #f4efe8;
    border-radius: 16px;
    background: #fffdfa;
}

.petbuy-profile-dropdown-card__meta-item span {
    display: block;
    margin-bottom: 6px;
    color: #807a7a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.petbuy-profile-dropdown-card__meta-item strong {
    display: block;
    color: #2b2827;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.petbuy-profile-dropdown-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 18px;
}

.petbuy-profile-google-link-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 16px;
    border: 1px solid #efe4d8;
    border-radius: 20px;
    background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.petbuy-profile-google-link-card[data-google-link-state="awaiting_2fa"],
.petbuy-profile-google-link-card[data-google-link-state="linking"] {
    border-color: rgba(248, 117, 55, 0.24);
    background: linear-gradient(180deg, #fff5ed 0%, #ffffff 100%);
    box-shadow: 0 12px 24px rgba(248, 117, 55, 0.08);
}

.petbuy-profile-google-link-card[data-google-link-state="linked"] {
    border-color: rgba(48, 143, 88, 0.2);
    background: linear-gradient(180deg, #f4fcf7 0%, #ffffff 100%);
    box-shadow: 0 12px 24px rgba(48, 143, 88, 0.08);
}

.petbuy-profile-google-link-card[data-google-link-state="error"],
.petbuy-profile-google-link-card[data-google-link-state="unavailable"] {
    border-color: rgba(192, 69, 69, 0.18);
    background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

.petbuy-profile-google-link-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.petbuy-profile-google-link-card__title {
    color: #2b2827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.petbuy-profile-google-link-card__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff1e8;
    color: #f87537;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.petbuy-profile-google-link-card[data-google-link-state="linked"] .petbuy-profile-google-link-card__chip {
    background: #ebf8f0;
    color: #308f58;
}

.petbuy-profile-google-link-card[data-google-link-state="error"] .petbuy-profile-google-link-card__chip,
.petbuy-profile-google-link-card[data-google-link-state="unavailable"] .petbuy-profile-google-link-card__chip {
    background: #fdecec;
    color: #c04545;
}

.petbuy-profile-google-link-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px;
}

.petbuy-profile-google-link-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid #eaded1;
    border-radius: 999px;
    background: #ffffff;
    color: #807a7a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.petbuy-profile-google-link-step.is-current {
    border-color: rgba(248, 117, 55, 0.24);
    background: #fff5ed;
    color: #f87537;
}

.petbuy-profile-google-link-step.is-done {
    border-color: rgba(48, 143, 88, 0.2);
    background: #ebf8f0;
    color: #308f58;
}

.petbuy-profile-device-card {
    height: 100%;
    border-radius: 20px;
    border-color: #ece3d7;
    background: linear-gradient(180deg, #fffdfb 0%, #ffffff 100%);
}

.petbuy-profile-device-card__summary {
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
}

.petbuy-profile-device-card__summary-main {
    gap: 8px;
}

.petbuy-profile-device-card__eyebrow-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.petbuy-profile-device-card__title {
    margin: 0;
    color: #2b2827;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.28;
}

.petbuy-profile-device-card__summary-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.petbuy-profile-device-card__summary-line {
    color: #807a7a;
    font-size: 13px;
    line-height: 1.45;
}

.petbuy-profile-device-card__summary-side {
    align-items: center;
    align-self: stretch;
}

.petbuy-profile-device-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: #fff1e8;
    color: #f87537;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.petbuy-profile-device-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 0;
}

.petbuy-profile-device-meta dt {
    margin: 0 0 4px;
    color: #807a7a;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.petbuy-profile-device-meta dd {
    margin: 0;
    color: #2b2827;
    font-size: 15px;
    font-weight: 600;
}

.petbuy-profile-device-remove {
    min-width: 176px;
    min-height: 46px;
    border-radius: 10px !important;
    border-color: #f87537 !important;
    color: #f87537 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.petbuy-profile-device-remove:hover,
.petbuy-profile-device-remove:focus,
.petbuy-profile-device-remove:active {
    background-color: #f87537 !important;
    border-color: #f87537 !important;
    color: #ffffff !important;
}

.petbuy-profile-orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.2s ease;
}

.petbuy-profile-orders-section {
    padding-left: 60px !important;
    padding-right: 70px !important;
}

.petbuy-profile-orders-panel {
    padding: 24px !important;
}

.petbuy-profile-orders-list.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.petbuy-profile-orders-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    transition: opacity 0.2s ease;
}

.petbuy-profile-orders-footer.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.petbuy-profile-orders-summary {
    color: #807a7a;
    font-size: 14px;
    font-weight: 600;
}

.petbuy-profile-orders-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.petbuy-profile-orders-pagination__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #eaded1;
    border-radius: 999px;
    background-color: #ffffff;
    color: #4d4d4d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.petbuy-profile-orders-pagination__button:hover,
.petbuy-profile-orders-pagination__button:focus-visible {
    border-color: #f87537;
    color: #f87537;
    outline: none;
}

.petbuy-profile-orders-pagination__button.is-active {
    border-color: #f87537;
    background-color: #f87537;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(248, 117, 55, 0.18);
}

.petbuy-profile-orders-pagination__button[disabled] {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.petbuy-profile-orders-pagination__button--nav {
    padding-inline: 16px;
}

.petbuy-profile-orders-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: #807a7a;
    font-size: 15px;
    font-weight: 700;
}

.petbuy-profile-order {
    display: block;
    overflow: hidden;
    border: 1px solid #f0e9df;
    border-radius: 24px;
    background-color: #ffffff;
    box-shadow: 0 10px 24px rgba(61, 57, 56, 0.04);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.petbuy-profile-order--link:hover {
    transform: translateY(-1px);
    border-color: rgba(248, 117, 55, 0.18);
    box-shadow: 0 14px 28px rgba(61, 57, 56, 0.08);
}

.petbuy-profile-order--link:focus-visible {
    outline: none;
    border-color: rgba(248, 117, 55, 0.24);
    box-shadow: 0 0 0 3px rgba(248, 117, 55, 0.12), 0 14px 28px rgba(61, 57, 56, 0.08);
}

.petbuy-profile-order--link:hover .petbuy-profile-order__toggle,
.petbuy-profile-order--link:focus-visible .petbuy-profile-order__toggle {
    background: linear-gradient(180deg, #fff7f1 0%, #fcf4ec 100%);
}

.petbuy-profile-order__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(180deg, #fffaf5 0%, #fcf7f2 100%);
}

.petbuy-profile-order__toggle-lead {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 auto;
}

.petbuy-profile-order__toggle-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    background: #f3f9fa;
    flex-shrink: 0;
}

.petbuy-profile-order__toggle-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.petbuy-profile-order__toggle-placeholder {
    color: #807a7a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.petbuy-profile-order__toggle-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.petbuy-profile-order__preview-date {
    margin: 0 0 6px;
    color: #807a7a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.petbuy-profile-order__preview-title {
    margin: 0;
    color: #2b2827;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.petbuy-profile-order__preview-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
}

.petbuy-profile-order__preview-meta-line {
    color: #807a7a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.petbuy-profile-order__preview-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.petbuy-profile-order__preview-badge--sale {
    background: rgba(248, 117, 55, 0.14);
    color: #f87537;
}

.petbuy-profile-order__preview-price-group {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.petbuy-profile-order__preview-price-current {
    color: #2b2827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.petbuy-profile-order__preview-price-old {
    color: #9b9291;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: line-through;
}

.petbuy-profile-order__toggle-aside {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.petbuy-profile-order__toggle-chevron {
    position: relative;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #eaded1;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(61, 57, 56, 0.06);
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.petbuy-profile-order__toggle-chevron::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #8f847e;
    border-bottom: 2px solid #8f847e;
    transform: translate(-62%, -50%) rotate(-45deg);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.petbuy-profile-order__toggle-chevron::after {
    content: none;
}

.petbuy-profile-order__content {
    border-top: 1px solid #f4efe8;
}

.petbuy-profile-order__mobile-card {
    display: none;
}

.petbuy-profile-order__desktop {
    display: block;
}

.petbuy-profile-order__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 24px 20px;
    background: linear-gradient(180deg, #fffaf5 0%, #fcf7f2 100%);
}

.petbuy-profile-order__header-main {
    flex: 1;
}

.petbuy-profile-order__eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: #807a7a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.petbuy-profile-order__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 0 24px 24px;
    background: linear-gradient(180deg, #fcf7f2 0%, #ffffff 100%);
}

.petbuy-profile-order__meta-item {
    padding: 15px 16px;
    border: 1px solid #f4efe8;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, 0.92);
}

.petbuy-profile-order__meta-item > span {
    display: block;
    margin-bottom: 6px;
    color: #807a7a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.petbuy-profile-order__meta-item strong {
    display: block;
    color: #2b2827;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.petbuy-profile-money {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.petbuy-profile-money__part {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.petbuy-profile-money__part--literal {
    white-space: pre;
}

.petbuy-profile-money__part--currency {
    color: #f87537;
    font-size: 0.96em;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.petbuy-profile-money--fallback {
    white-space: nowrap;
}

.petbuy-profile-order__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 168px;
}

.petbuy-profile-order__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.petbuy-profile-order__status--completed {
    background-color: #edf7ef;
    color: #2f7d32;
}

.petbuy-profile-order__status--processing {
    background-color: #fff3e8;
    color: #d96a2b;
}

.petbuy-profile-order__status--hold {
    background-color: #fff7df;
    color: #8f6a00;
}

.petbuy-profile-order__status--refunded {
    background-color: #f3f4f6;
    color: #5f6368;
}

.petbuy-profile-order__status--default {
    background-color: #f5f5f5;
    color: #4d4d4d;
}

.petbuy-profile-order__link {
    color: #f87537;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.petbuy-profile-order__link:hover {
    color: #e2672f;
    text-decoration: underline;
}

.petbuy-profile-order__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
}

.petbuy-profile-order__items-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.petbuy-profile-order__items-label {
    color: #2b2827;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.petbuy-profile-order__items-subtitle {
    margin: 6px 0 0;
    color: #807a7a;
    font-size: 13px;
    line-height: 1.5;
}

.petbuy-profile-order__count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background-color: #fff3e8;
    color: #d96a2b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.petbuy-profile-order__title {
    margin: 0 0 6px;
    color: #2b2827;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.petbuy-profile-order__subtitle {
    margin: 0;
    color: #807a7a;
    font-size: 14px;
    line-height: 1.5;
}

.petbuy-profile-order__lead-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-shrink: 0;
}

.petbuy-profile-order__detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #f87537;
    border-radius: 10px;
    background-color: #ffffff;
    color: #f87537;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
}

.petbuy-profile-order__detail-btn:hover,
.petbuy-profile-order__detail-btn:focus,
.petbuy-profile-order__detail-btn:active {
    background-color: #f87537;
    border-color: #f87537;
    color: #ffffff;
}

.petbuy-profile-order__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.petbuy-profile-order__empty-items {
    padding: 18px;
    border: 1px dashed #eaded1;
    border-radius: 16px;
    background-color: #fffdfa;
    color: #807a7a;
    font-size: 14px;
}

.petbuy-profile-order-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid #f4efe8;
    border-radius: 18px;
    background-color: #fffdfa;
}

.petbuy-profile-order-item__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    background: #f3f9fa;
    text-decoration: none;
}

.petbuy-profile-order-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.petbuy-profile-order-item__placeholder-text {
    color: #807a7a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.petbuy-profile-order-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.petbuy-profile-order-item__facts {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.petbuy-profile-order-item__fact {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background-color: #f7f4ef;
    color: #6b6666;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.petbuy-profile-order-item__title {
    color: #2b2827;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.petbuy-profile-order-item__title:hover {
    color: #f87537;
}

.petbuy-profile-order-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.petbuy-profile-order-item__price {
    color: #2b2827;
    font-size: 18px;
    font-weight: 700;
}

.petbuy-profile-order-item__price .petbuy-profile-money__part--currency {
    font-size: 0.88em;
}

.petbuy-profile-order-item__actions {
    display: flex;
    align-items: center;
    gap: 10px 14px;
    flex-wrap: wrap;
}

.petbuy-profile-order-item__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    border-color: #f87537 !important;
    background-color: #ffffff !important;
    color: #f87537 !important;
    font-size: 14px;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.petbuy-profile-order-item__action:hover,
.petbuy-profile-order-item__action:focus,
.petbuy-profile-order-item__action:active {
    border-color: #f87537 !important;
    background-color: #f87537 !important;
    color: #ffffff !important;
}

.petbuy-profile-order-item__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.petbuy-profile-order-item__link:hover {
    color: #f87537;
}

.petbuy-profile-create-ad-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr);
    gap: 18px;
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(248, 117, 55, 0.14), transparent 36%),
        linear-gradient(135deg, #fffaf5 0%, #fff2e7 100%);
    border: 1px solid #f3dfd0;
}

.petbuy-profile-create-ad-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.petbuy-profile-create-ad-hero__eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(248, 117, 55, 0.12);
    color: #f87537;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.petbuy-profile-create-ad-hero__title {
    margin: 0;
    color: #2b2827;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.18;
}

.petbuy-profile-create-ad-hero__text {
    margin: 0;
    color: #5a5352;
    font-size: 14px;
    line-height: 1.65;
}

.petbuy-profile-create-ad-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(108px, 1fr));
    grid-auto-rows: 1fr;
    gap: 12px;
}

.petbuy-profile-create-ad-hero__facts--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.petbuy-profile-create-ad-fact {
    min-height: 128px;
}

@media (max-width: 1279.98px) {
    .petbuy-profile-create-ad-hero {
        grid-template-columns: 1fr;
    }
}

.petbuy-profile-create-ad-grid {
    display: grid;
    gap: 18px;
}

.petbuy-profile-create-ad-section {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #efe4d8;
    background: #fffdfa;
}

.petbuy-profile-create-ad-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.petbuy-profile-create-ad-section__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: #807a7a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.petbuy-profile-create-ad-section__title {
    margin: 0;
    color: #2b2827;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.petbuy-profile-create-ad-section__text {
    margin: 8px 0 0;
    color: #807a7a;
    font-size: 14px;
    line-height: 1.6;
}

.petbuy-profile-create-ad-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.petbuy-profile-create-ad-counter {
    color: #807a7a;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.petbuy-profile-create-ad-counter.is-valid {
    color: #2f8f57;
}

.petbuy-profile-ad-input,
.petbuy-profile-ad-select,
.petbuy-profile-ad-textarea {
    min-height: 58px;
    border: 1px solid #e6ddd4 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.petbuy-profile-ad-input:focus,
.petbuy-profile-ad-select:focus,
.petbuy-profile-ad-textarea:focus {
    border-color: rgba(248, 117, 55, 0.58) !important;
    box-shadow: 0 0 0 4px rgba(248, 117, 55, 0.12) !important;
}

.petbuy-profile-ad-textarea {
    min-height: 168px;
    padding-top: 16px;
    resize: vertical;
}

.petbuy-profile-ad-textarea--compact {
    min-height: 132px;
}

.petbuy-profile-ad-rich-editor .petbuy-rich-editor__surface {
    min-height: 220px;
    height: auto;
}

.petbuy-profile-upload-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.petbuy-profile-upload-trigger {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    min-height: 220px;
    padding: 24px;
    border: 1px dashed #f87537;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(248, 117, 55, 0.22), transparent 34%),
        linear-gradient(160deg, #fff6ef 0%, #fffaf7 100%);
    color: #2b2827;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.petbuy-profile-upload-trigger:hover,
.petbuy-profile-upload-trigger:focus-visible {
    transform: translateY(-1px);
    border-color: #f87537;
    box-shadow: 0 18px 32px rgba(248, 117, 55, 0.12);
}

.petbuy-profile-upload-trigger__eyebrow {
    color: #f87537;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.petbuy-profile-upload-trigger__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.petbuy-profile-upload-trigger__text {
    color: #5a5352;
    font-size: 14px;
    line-height: 1.55;
}

.petbuy-profile-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.petbuy-profile-upload-empty,
.petbuy-profile-upload-preview {
    position: relative;
    min-height: 170px;
    border-radius: 22px;
    overflow: hidden;
}

.petbuy-profile-upload-empty {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px;
    border: 1px dashed #dcc9b8;
    background: #fcf8f4;
}

.petbuy-profile-upload-empty__title {
    color: #2b2827;
    font-size: 16px;
    font-weight: 700;
}

.petbuy-profile-upload-empty__hint {
    color: #807a7a;
    font-size: 13px;
    line-height: 1.45;
}

.petbuy-profile-upload-preview {
    border: 1px solid #e6ddd4;
    background: #f7f3ef;
}

.petbuy-profile-upload-preview__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.petbuy-profile-upload-preview__badge,
.petbuy-profile-upload-preview__remove {
    position: absolute;
    top: 12px;
}

.petbuy-profile-upload-preview__badge {
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #f87537;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.petbuy-profile-upload-preview__remove {
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(43, 40, 39, 0.72);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
}

.petbuy-profile-upload-preview__footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 14px 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(43, 40, 39, 0.82) 100%);
    color: #ffffff;
}

.petbuy-profile-upload-preview__footer strong {
    font-size: 14px;
    line-height: 1.3;
}

.petbuy-profile-upload-preview__footer span {
    font-size: 12px;
    opacity: 0.88;
}

.petbuy-profile-choice-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.petbuy-profile-choice-group--compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.petbuy-profile-choice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 100%;
    padding: 16px;
    border: 1px solid #eaded1;
    border-radius: 18px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.petbuy-profile-choice:hover,
.petbuy-profile-choice:focus-within {
    transform: translateY(-1px);
    border-color: rgba(248, 117, 55, 0.4);
}

.petbuy-profile-choice:has(input:checked) {
    border-color: rgba(248, 117, 55, 0.46);
    background: #fff6ef;
    box-shadow: 0 14px 28px rgba(248, 117, 55, 0.08);
}

.petbuy-profile-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.petbuy-profile-choice__indicator {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 4px;
    border: 1px solid #d6c8bc;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 4px #ffffff;
}

.petbuy-profile-choice:has(input:checked) .petbuy-profile-choice__indicator {
    border-color: #f87537;
    background: #f87537;
}

.petbuy-profile-choice__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.petbuy-profile-choice__content strong {
    color: #2b2827;
    font-size: 15px;
    font-weight: 700;
}

.petbuy-profile-choice__content span {
    color: #807a7a;
    font-size: 13px;
    line-height: 1.5;
}

.petbuy-profile-create-ad-note {
    margin-top: 10px;
    color: #807a7a;
    font-size: 12px;
    line-height: 1.5;
}

.petbuy-profile-create-ad-section__subcard {
    padding: 18px;
    border: 1px solid #efe4d8;
    border-radius: 20px;
    background: #fffaf5;
}

.petbuy-profile-create-ad-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 28px;
}

.petbuy-profile-create-ad-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.petbuy-profile-create-ad-submit {
    min-width: 220px;
}

/* ===== COMPONENTE: PAGINATION ===== */
.pagination-wrapper {
    margin: 30px 0;
}

.pagination-wrapper .woocommerce-pagination {
    text-align: center;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-numbers li {
    list-style: none;
}

.page-numbers a,
.page-numbers span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-numbers a:hover {
    background-color: #F87537;
    color: white;
    border-color: #F87537;
}

.page-numbers .current {
    background-color: #F87537;
    color: white;
    border-color: #F87537;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sfondo-profilo-mobile {
        --bs-gutter-x: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .sfondo-profilo-mobile > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100%;
        overflow-x: clip;
    }

    .petbuy-profile-mobile-nav {
        padding-left: 12px;
        padding-right: 12px;
    }

    .petbuy-profile-mobile-nav .container {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .pr-cont-prof {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: clip;
    }

    .petbuy-profile-mobile-nav__scroll {
        gap: 10px;
        padding-bottom: 10px;
    }

    .petbuy-profile-mobile-nav__chip {
        min-width: 112px;
        min-height: 64px;
        padding: 12px 14px;
        border-radius: 14px;
        font-size: 16px;
    }

    .petbuy-profile-mobile-nav__chip[data-target="sicurezza"] {
        min-width: 156px;
        padding-inline: 18px 24px;
    }

    .spazi-form {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .scostamento-top {
        padding-top: 48px !important;
    }

    .petbuy-profile-tab-layout {
        padding-bottom: 12px;
    }

    .petbuy-profile-panel-stack {
        gap: 14px;
    }

    .petbuy-profile-action-row {
        margin-top: 22px;
    }

    .petbuy-profile-step-up-card {
        padding: 20px;
        border-radius: 16px;
    }

    .petbuy-profile-action-btn {
        width: 100%;
        min-width: 0;
    }

    .petbuy-profile-copy-toggle {
        align-items: flex-start;
    }

    .petbuy-profile-address-card {
        padding: 20px !important;
        border-radius: 18px !important;
    }

    .petbuy-profile-dropdown-card {
        border-radius: 20px;
    }

    .petbuy-profile-dropdown-card__summary,
    .petbuy-profile-dropdown-card__summary--compact {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .petbuy-profile-dropdown-card__summary-media {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .petbuy-profile-dropdown-card__title {
        font-size: 21px;
    }

    .petbuy-profile-dropdown-card__title--compact {
        font-size: 17px;
    }

    .petbuy-profile-dropdown-card__summary-side {
        justify-content: space-between;
        width: 100%;
    }

    .petbuy-profile-dropdown-card__content {
        padding: 0 20px 20px;
    }

    .petbuy-profile-dropdown-card--nested .petbuy-profile-dropdown-card__content {
        padding: 0 18px 18px;
    }

    .petbuy-profile-dropdown-card__meta-grid {
        grid-template-columns: 1fr;
    }

    .petbuy-profile-device-meta {
        grid-template-columns: 1fr;
    }

    .petbuy-profile-device-card__summary {
        padding: 18px;
    }

    .petbuy-profile-device-card__title {
        font-size: 17px;
    }

    .petbuy-profile-device-card__summary-lines {
        gap: 4px;
    }

    .petbuy-profile-device-remove {
        width: 100%;
        min-width: 0;
    }

    .petbuy-profile-order__header,
    .petbuy-profile-order__body {
        padding: 20px;
    }

    .petbuy-profile-order__toggle {
        align-items: center;
        padding: 20px;
    }

    .petbuy-profile-order__toggle-lead {
        align-items: center;
    }

    .petbuy-profile-order__toggle-media {
        width: 68px;
        height: 68px;
    }

    .petbuy-profile-order__toggle-aside {
        justify-content: flex-end;
        width: auto;
    }

    .petbuy-profile-order__preview-title {
        font-size: 21px;
    }

    .petbuy-profile-order__aside {
        align-items: flex-start;
        min-width: 0;
    }

    .petbuy-profile-order__title {
        font-size: 22px;
    }

    .petbuy-profile-order__lead {
        flex-direction: column;
    }

    .petbuy-profile-order__lead-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .petbuy-profile-order__detail-btn {
        width: 100%;
    }

    .petbuy-profile-create-ad-hero {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .petbuy-profile-create-ad-hero__title {
        font-size: 23px;
    }

    .petbuy-profile-create-ad-hero__facts {
        grid-template-columns: 1fr;
    }

    .petbuy-profile-create-ad-section {
        padding: 20px;
    }

    .petbuy-profile-create-ad-section__title {
        font-size: 20px;
    }

    .petbuy-profile-create-ad-field-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .petbuy-profile-upload-layout {
        grid-template-columns: 1fr;
    }

    .petbuy-profile-upload-trigger {
        min-height: 170px;
        padding: 20px;
    }

    .petbuy-profile-upload-trigger__title {
        font-size: 21px;
    }

    .petbuy-profile-upload-grid {
        grid-template-columns: 1fr;
    }

    .petbuy-profile-choice-group,
    .petbuy-profile-choice-group--compact {
        grid-template-columns: 1fr;
    }

    .petbuy-profile-create-ad-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .petbuy-profile-create-ad-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .petbuy-profile-create-ad-submit {
        width: 100%;
        min-width: 0;
    }

    .petbuy-profile-order-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .petbuy-profile-order-item__media {
        width: 72px;
        height: 72px;
    }

    .petbuy-profile-order-item__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .petbuy-profile-order-item__actions {
        width: 100%;
    }

    .petbuy-profile-order-item__action {
        width: 100%;
    }

    .cart-item-wrapper {
        flex-direction: column;
    }

    .cart-item-image {
        margin-bottom: 15px;
    }

    #profilo-content .position-absolute {
        display: none !important;
    }

    .cart-item-details {
        padding-left: 0;
    }

    .image-wrapper {
        height: 150px;
    }

    .product-card-wrapper {
        margin-bottom: 15px;
    }

    .petbuy-listing-card__image-link {
        width: min(286px, 100%);
        padding: 20px;
    }

    .petbuy-listing-card__body {
        padding: 16px;
        gap: 12px;
    }

    .petbuy-listing-card__title {
        font-size: 16px;
        line-height: 1.45;
    }

    .petbuy-listing-card__rating {
        top: 12px;
        left: 12px;
        gap: 5px;
    }

    .petbuy-listing-card__star {
        width: 16px;
        height: 16px;
    }

    .petbuy-listing-card__badge {
        min-width: 108px;
        height: 48px;
    }

    .petbuy-listing-card {
        width: min(286px, 100%);
        min-width: min(286px, 100%);
        max-width: min(286px, 100%);
    }

    .petbuy-listing-card__media,
    .petbuy-listing-card__body {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .petbuy-profile-order__header {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .petbuy-profile-order__meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 18px;
    }

    .petbuy-profile-order__aside {
        align-items: flex-start;
        min-width: 0;
    }

    .petbuy-profile-order__body {
        padding: 20px;
        gap: 18px;
    }

    .petbuy-profile-order__lead {
        flex-direction: column;
        gap: 16px;
    }

    .petbuy-profile-order__lead-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .petbuy-profile-order__detail-btn {
        width: 100%;
    }

    .petbuy-profile-order-item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .petbuy-profile-order-item__media {
        width: 72px;
        height: 72px;
    }

    .petbuy-profile-order-item__footer {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
    }

    .petbuy-profile-order-item__actions {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 991.98px) {
    .spazi-form {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .petbuy-profile-orders-section {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .scostamento-top {
        padding-top: 72px !important;
    }

    .petbuy-profile-step-up-card {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .petbuy-profile-orders-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .petbuy-profile-orders-panel {
        padding: 14px !important;
    }

    .petbuy-profile-orders-list {
        gap: 14px;
    }

    .petbuy-profile-order {
        border-radius: 18px;
    }

    .petbuy-profile-order__mobile-card {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr) 14px;
        align-items: center;
        gap: 14px;
        padding: 18px;
        color: inherit;
        text-decoration: none;
    }

    .petbuy-profile-order__desktop {
        display: none;
    }

    .petbuy-profile-order__mobile-media {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 84px;
        height: 84px;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 18px;
        background: #f3f9fa;
    }

    .petbuy-profile-order__mobile-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .petbuy-profile-order__mobile-placeholder {
        color: #807a7a;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .petbuy-profile-order__mobile-body {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .petbuy-profile-order__mobile-date {
        color: #807a7a;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.4;
    }

    .petbuy-profile-order__mobile-title {
        color: #2b2827;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .petbuy-profile-order__mobile-meta {
        color: #6f6a6a;
        font-size: 13px;
        line-height: 1.45;
    }

    .petbuy-profile-order__mobile-chevron {
        color: #b8b0aa;
        font-size: 28px;
        line-height: 1;
    }

    .petbuy-profile-order__toggle {
        gap: 14px;
        padding: 18px;
    }

    .petbuy-profile-order__toggle-lead {
        gap: 14px;
        min-width: 0;
    }

    .petbuy-profile-order__toggle-main {
        gap: 0;
    }

    .petbuy-profile-order__toggle-media {
        width: 84px;
        height: 84px;
        border-radius: 18px;
    }

    .petbuy-profile-order__preview-date {
        margin-bottom: 4px;
        font-size: 12px;
        font-weight: 600;
    }

    .petbuy-profile-order__preview-title {
        font-size: 16px;
        line-height: 1.35;
    }

    .petbuy-profile-order__preview-meta {
        gap: 1px;
        margin-top: 8px;
    }

    .petbuy-profile-order__preview-meta-line {
        font-size: 13px;
        line-height: 1.45;
    }

    .petbuy-profile-order__toggle-chevron {
        width: 32px;
        height: 32px;
        box-shadow: none;
    }

    .petbuy-profile-order__toggle-chevron::before {
        width: 8px;
        height: 8px;
    }

    .petbuy-profile-order__mobile-card:hover,
    .petbuy-profile-order__mobile-card:focus-visible {
        background-color: #fff9f4;
        outline: none;
    }

    .petbuy-profile-orders-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .petbuy-profile-orders-summary {
        text-align: center;
    }

    .petbuy-profile-orders-pagination {
        justify-content: center;
    }

    .petbuy-profile-order-item {
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        padding: 16px;
    }

    .petbuy-profile-order-item__media {
        width: 72px;
        height: 72px;
    }

    .petbuy-profile-order-item__body {
        gap: 6px;
    }

    .petbuy-profile-order-item__price {
        font-size: 16px;
    }

    .petbuy-profile-order-item__link {
        min-height: 36px;
        justify-content: flex-start;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .petbuy-profile-orders-pagination {
        gap: 6px;
    }

    .petbuy-profile-orders-pagination__button {
        min-width: 38px;
        min-height: 38px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .petbuy-profile-orders-pagination__button--nav {
        flex: 1 1 0;
    }

    .petbuy-profile-order__mobile-card {
        grid-template-columns: 74px minmax(0, 1fr) 12px;
        gap: 12px;
        padding: 14px;
    }

    .petbuy-profile-order__mobile-media {
        width: 74px;
        height: 74px;
    }

    .petbuy-profile-order__mobile-title,
    .petbuy-profile-order__preview-title {
        font-size: 15px;
    }

    .petbuy-profile-order__toggle {
        gap: 12px;
        padding: 14px;
    }

    .petbuy-profile-order__toggle-media {
        width: 74px;
        height: 74px;
    }

    .petbuy-profile-order-item {
        padding: 14px;
    }

    .petbuy-profile-order-item__footer {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .petbuy-profile-order-item__actions {
        width: 100%;
    }

    .petbuy-profile-order-item__link {
        width: 100%;
    }
}

/* ===== COMPONENTE: GLOBAL TOOLTIP ===== */
.petbuy-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 12000;
    max-width: min(280px, calc(100vw - 24px));
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #2f261f;
    color: #fff8f2;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 18px 36px rgba(24, 16, 10, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 6px, 0) scale(0.98);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.petbuy-tooltip.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.petbuy-tooltip[data-variant="warning"] {
    border-color: rgba(248, 117, 55, 0.18);
    background: #fff4e9;
    color: #8c3f14;
    box-shadow: 0 18px 36px rgba(248, 117, 55, 0.16);
}

.petbuy-tooltip__content {
    position: relative;
    z-index: 1;
}

.petbuy-tooltip__arrow {
    position: absolute;
    left: var(--petbuy-tooltip-arrow-left, 50%);
    width: 10px;
    height: 10px;
    background: inherit;
    border-right: inherit;
    border-bottom: inherit;
    transform: translateX(-50%) rotate(45deg);
}

.petbuy-tooltip[data-placement="top"] .petbuy-tooltip__arrow {
    bottom: -6px;
}

.petbuy-tooltip[data-placement="bottom"] .petbuy-tooltip__arrow {
    top: -6px;
    transform: translateX(-50%) rotate(225deg);
}

/* ===== COMPONENTE: GLOBAL MOBILE BOTTOM SHEET ===== */
.petbuy-bottom-sheet,
.petbuy-bottom-sheet-demo {
    display: none;
}

@media (max-width: 767.98px) {
    :root {
        --petbuy-bottom-sheet-height: 75vh;
    }

    .petbuy-bottom-sheet-demo {
        position: fixed;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        z-index: 1058;
        display: block;
    }

    .petbuy-bottom-sheet-demo__trigger {
        min-height: 48px;
        padding: 12px 18px;
        border: none;
        border-radius: 999px;
        background: linear-gradient(135deg, #ff9f42 0%, #f87537 100%);
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.01em;
        box-shadow: 0 14px 28px rgba(248, 117, 55, 0.28);
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .petbuy-bottom-sheet-demo__trigger:hover,
    .petbuy-bottom-sheet-demo__trigger:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 18px 36px rgba(248, 117, 55, 0.34);
        outline: none;
    }

    .petbuy-bottom-sheet {
        position: fixed;
        inset: 0;
        z-index: 1057;
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.24s ease, visibility 0.24s ease;
        overflow-x: hidden;
    }

    .petbuy-bottom-sheet.is-present {
        visibility: visible;
        pointer-events: auto;
    }

    .petbuy-bottom-sheet.is-open,
    .petbuy-bottom-sheet.show {
        opacity: 1;
    }

    .petbuy-bottom-sheet__overlay {
        position: absolute;
        inset: 0;
        background: rgba(15, 14, 12, 0.42);
        opacity: 0;
        transition: opacity 0.25s ease;
        will-change: opacity;
    }

    .petbuy-bottom-sheet.is-open .petbuy-bottom-sheet__overlay,
    .petbuy-bottom-sheet.show .petbuy-bottom-sheet__overlay {
        opacity: 1;
    }

    .petbuy-bottom-sheet__dialog {
        margin: 0 !important;
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        min-height: 100%;
        display: flex;
        align-items: flex-end;
        pointer-events: none;
    }

    .petbuy-bottom-sheet.fade .petbuy-bottom-sheet__dialog,
    .petbuy-bottom-sheet.show .petbuy-bottom-sheet__dialog {
        transform: none !important;
        transition: none !important;
    }

    .petbuy-bottom-sheet__content {
        width: 100vw;
        max-width: 100vw;
        pointer-events: auto;
        border: none;
        border-radius: 28px 28px 0 0;
        background: linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
        box-shadow: 0 -20px 46px rgba(34, 26, 21, 0.18);
        transform: translate3d(0, 110%, 0);
        transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
        height: var(--petbuy-bottom-sheet-height);
        min-height: var(--petbuy-bottom-sheet-height);
        max-height: var(--petbuy-bottom-sheet-height);
        overflow: hidden;
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
        will-change: transform;
    }

    .petbuy-bottom-sheet.is-open .petbuy-bottom-sheet__content,
    .petbuy-bottom-sheet.show .petbuy-bottom-sheet__content {
        transform: translate3d(0, 0, 0);
    }

    .petbuy-bottom-sheet.is-closing .petbuy-bottom-sheet__content {
        transform: translate3d(0, 110%, 0);
    }

    .petbuy-bottom-sheet__grabber {
        width: 54px;
        height: 6px;
        border-radius: 999px;
        background: #e6ddd5;
        margin: 10px auto 4px;
    }

    .petbuy-bottom-sheet__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 18px 14px;
    }

    .petbuy-bottom-sheet__title {
        margin: 0;
        color: #1f1d1b;
        font-size: clamp(28px, 7vw, 38px);
        line-height: 1;
        font-weight: 800;
    }

    .petbuy-bottom-sheet__mount {
        min-height: 0;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        overflow-x: clip;
    }

    .petbuy-bottom-sheet__close {
        border: none;
        background: transparent;
        color: #f87537;
        font-size: 18px;
        font-weight: 600;
        padding: 8px;
    }

    .petbuy-bottom-sheet__body {
        padding: 0 18px 14px;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        min-height: 0;
    }

    .petbuy-bottom-sheet__body--shop {
        padding: 0 14px calc(14px + env(safe-area-inset-bottom));
    }

    .petbuy-bottom-sheet__shop-host {
        min-height: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        box-sizing: border-box;
    }

    .petbuy-bottom-sheet__shop-host,
    .petbuy-bottom-sheet__shop-host * {
        box-sizing: border-box;
        max-width: 100%;
    }

    .petbuy-bottom-sheet__shop-host .filter-shell-wrapper {
        height: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        padding: 0;
        overflow-x: hidden;
    }

    .petbuy-bottom-sheet__shop-host .filter-group,
    .petbuy-bottom-sheet__shop-host .filter-group__body,
    .petbuy-bottom-sheet__shop-host .servizi,
    .petbuy-bottom-sheet__shop-host .price-inputs {
        max-width: 100%;
        overflow-x: clip;
    }

    .petbuy-bottom-sheet__shop-host .servizi,
    .petbuy-bottom-sheet__shop-host .price-inputs {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .petbuy-bottom-sheet__shop-host .petbuy-filters-mobile-head,
    .petbuy-bottom-sheet__shop-host .petbuy-filters-close {
        display: none !important;
    }

    .petbuy-bottom-sheet__shop-host .filter-shell-wrapper hr {
        margin: 16px 0;
    }

    .petbuy-bottom-sheet__section + .petbuy-bottom-sheet__section {
        margin-top: 16px;
    }

    .petbuy-bottom-sheet__section-title {
        margin: 0 0 10px;
        font-size: 32px;
        line-height: 1;
        font-weight: 800;
        color: #1f1d1b;
    }

    .petbuy-bottom-sheet__chips {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .petbuy-bottom-sheet__chip {
        border: 1px solid #ddd3c8;
        border-radius: 16px;
        background: #ffffff;
        color: #22201f;
        font-size: 16px;
        font-weight: 600;
        line-height: 1;
        min-height: 50px;
        padding: 12px 18px;
    }

    .petbuy-bottom-sheet__chip.is-active {
        border-color: #f7a35d;
        box-shadow: inset 0 0 0 1px rgba(248, 117, 55, 0.12);
        background: #fff7ef;
    }

    .petbuy-bottom-sheet__copy {
        margin: 0;
        color: #595452;
        font-size: 15px;
        line-height: 1.5;
    }

    .petbuy-bottom-sheet__footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 10px 18px calc(16px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        background: #fffdfa;
    }

    .petbuy-bottom-sheet__action {
        min-height: 52px;
        border-radius: 16px;
        font-size: 18px;
        line-height: 1;
        font-weight: 700;
        padding: 14px 16px;
    }

    .petbuy-bottom-sheet__action--ghost {
        border: 1px solid #e4d8cc;
        color: #f87537;
        background: #ffffff;
    }

    .petbuy-bottom-sheet__action--primary {
        border: none;
        color: #ffffff;
        background: linear-gradient(90deg, #ff8f3d 0%, #f8bd26 100%);
        box-shadow: 0 12px 22px rgba(248, 117, 55, 0.24);
    }
}

@media (min-width: 768px) {
    .petbuy-bottom-sheet,
    .petbuy-bottom-sheet-demo {
        display: none !important;
    }
}
