.hk-rotating-seal {
    --hk-seal-size: 195px;
    --hk-seal-duration: 18s;
    position: relative;
    display: inline-grid;
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    aspect-ratio: 1;
    place-items: center;
    line-height: 1;
    overflow: visible;
    isolation: isolate;
}

.hk-rotating-seal__svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hk-rotating-seal__disc {
    fill: #6d1e71;
}

.hk-rotating-seal__border {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1;
}

.hk-rotating-seal__ring {
    transform-box: view-box;
    transform-origin: 100px 100px;
    animation: hk-seal-spin var(--hk-seal-duration) linear infinite;
    will-change: transform;
}

.hk-rotating-seal--pause-hover:hover .hk-rotating-seal__ring {
    animation-play-state: paused;
}

.hk-rotating-seal__ring-text {
    fill: #fff;
    font-family: inherit;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.hk-rotating-seal__center {
    position: absolute;
    z-index: 2;
    inset: 50% auto auto 50%;
    display: flex;
    max-width: 58%;
    transform: translate(-50%, calc(-50% + var(--hk-seal-center-y, 0px)));
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    color: #fff;
    text-align: center;
    pointer-events: none;
}

.hk-rotating-seal__center-title,
.hk-rotating-seal__center-subtext {
    display: block;
}

.hk-rotating-seal__center-title {
    font-size: 23px;
    font-weight: 500;
    line-height: 1;
}

.hk-rotating-seal__center-subtext {
    font-size: 9px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes hk-seal-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hk-rotating-seal__ring {
        animation: none;
    }
}


/* The Elementor widget box must match the real circular seal size.
   The size variable lives on the Elementor wrapper, so Elementor's default
   width:100% cannot leave an invisible column beside the circle. */
.elementor-widget-halkoo_rotating_seal {
    --hk-seal-size: 195px;
    width: min(100%, var(--hk-seal-size)) !important;
    max-width: var(--hk-seal-size) !important;
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    align-self: flex-start;
}

.elementor-widget-halkoo_rotating_seal > .elementor-widget-container {
    display: block;
    width: 100% !important;
    max-width: none !important;
    line-height: 0;
}

.elementor-widget-halkoo_rotating_seal .hk-rotating-seal {
    width: 100%;
    max-width: none;
    vertical-align: top;
}

/* Keep the Elementor wrapper exactly as wide as the seal.
   Alignment must be controlled by the parent Elementor container, not with auto margins. */
.elementor-widget-halkoo_rotating_seal {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline: 0 !important;
}
