/* iPad Sold Popup */
.ipad-sold-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 340px;
    width: calc(100% - 40px);
    overflow: hidden;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease;
    font-family: "Gilroy", sans-serif;
}

.ipad-sold-popup.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.ipad-sold-popup.is-hiding {
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s ease-in,
                opacity 0.3s ease-in;
}

.ipad-sold-popup__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ipad-sold-popup__inner:hover {
    background: #fafafa;
}

.ipad-sold-popup__image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f5f5;
}

.ipad-sold-popup__content {
    flex: 1;
    min-width: 0;
}

.ipad-sold-popup__label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f58b00;
    line-height: 12px;
    margin-bottom: 4px;
}

.ipad-sold-popup__text {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ipad-sold-popup__text strong {
    color: #111;
}

.ipad-sold-popup__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: #aaa;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.ipad-sold-popup__close:hover {
    background: #f0f0f0;
    color: #666;
}

/* Progress / loading bar */
.ipad-sold-popup__progress {
    height: 3px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.ipad-sold-popup__progress-bar {
    height: 100%;
    background: #f58b00;
    width: 100%;
}

/* Responsive */
@media (max-width: 767px) {
    .ipad-sold-popup {
        bottom: 125px;
        left: 12px;
        max-width: calc(100% - 24px);
        border-radius: 8px;
    }

    .ipad-sold-popup__inner {
        gap: 10px;
        padding: 8px 10px;
    }

    .ipad-sold-popup__image {
        width: 36px;
        height: 36px;
        border-radius: 6px;
    }

    .ipad-sold-popup__label {
        font-size: 8px;
        margin-bottom: 2px;
    }

    .ipad-sold-popup__text {
        font-size: 11px;
        line-height: 1.3;
        -webkit-line-clamp: 1;
    }

    .ipad-sold-popup__close {
        top: 4px;
        right: 4px;
        width: 18px;
        height: 18px;
        font-size: 14px;
    }

    .ipad-sold-popup__progress {
        height: 2px;
    }
}
