/* khd-rpe-360 — 360° product viewer */

.khd-rpe-360 {
    position: relative;
    overflow: hidden;
    background: #0d6e6e;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.khd-rpe-360:active {
    cursor: grabbing;
}

/* Watermark */
.khd-rpe-360__bg-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(8rem, 20vw, 22rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    color: rgba(0, 0, 0, 0.12);
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
}

/* Frame image */
.khd-rpe-360__img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

/* Hint card */
.khd-rpe-360__hint {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 10;
    background: #b5cc18;
    color: #1a1a1a;
    border-radius: 8px;
    padding: 16px 20px;
    max-width: 240px;
    transition: opacity 0.3s, transform 0.3s;
}

.khd-rpe-360__hint[hidden] {
    display: block !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.khd-rpe-360__hint-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    padding: 0;
}

.khd-rpe-360__hint-icon {
    margin-bottom: 4px;
}

.khd-rpe-360__hint-title {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.khd-rpe-360__hint-desc {
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    opacity: 0.85;
}

/* Loading state */
.khd-rpe-360.is-loading {
    min-height: 200px;
}

.khd-rpe-360.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
}
