/* VR Google Preferred Source – Frontend */
.vrgps-meta-line {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
}

.vrgps-meta-original {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.vrgps-meta-button,
.vrgps-content-placement,
.vrgps-footer-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.vrgps-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    max-width: 100%;
    line-height: 1;
    text-decoration: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline-offset: 3px;
    position: relative;
    overflow: visible;
}

.vrgps-button img {
    display: block;
    width: var(--vrgps-button-width, 150px);
    height: auto;
    max-width: min(var(--vrgps-button-width, 150px), 100%);
    object-fit: contain;
}


.vrgps-button::after {
    content: attr(data-vrgps-info);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 11px);
    z-index: 9999;
    width: max-content;
    max-width: min(320px, calc(100vw - 32px));
    padding: 9px 11px;
    border-radius: 8px;
    background: rgba(25, 25, 25, 0.96);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 5px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.vrgps-button::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 5px);
    z-index: 10000;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(25, 25, 25, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity .16s ease, visibility .16s ease;
}

.vrgps-button:hover::after,
.vrgps-button:focus-visible::after,
.vrgps-button:hover::before,
.vrgps-button:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.vrgps-button:hover::after,
.vrgps-button:focus-visible::after {
    transform: translate(-50%, 0);
}

.vrgps-button[data-vrgps-info=""]::after,
.vrgps-button[data-vrgps-info=""]::before {
    display: none;
}

.vrgps-button:hover img {
    filter: brightness(0.98);
}

.vrgps-content-placement {
    width: 100%;
    margin: 14px auto;
    text-align: center;
}

.vrgps-footer-box {
    box-sizing: border-box;
    width: min(100%, 1200px);
    margin: 18px auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    border: 1px solid rgba(2, 115, 81, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #222;
    text-align: left;
}

.vrgps-footer-copy {
    flex: 1 1 420px;
    min-width: 0;
}

.vrgps-footer-heading {
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: #027351;
}

.vrgps-footer-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #444;
}

.vrgps-footer-action {
    flex: 0 0 auto;
}

@media (max-width: 700px) {
    .vrgps-meta-line {
        gap: 8px 10px;
    }

    .vrgps-meta-button {
        flex-basis: 100%;
        width: 100%;
        margin-top: 2px;
    }

    .vrgps-button img {
        width: var(--vrgps-button-width, 150px);
        height: auto;
        max-width: min(var(--vrgps-button-width, 150px), 100%);
    }

    .vrgps-footer-box {
        padding: 16px;
        text-align: center;
    }

    .vrgps-footer-copy,
    .vrgps-footer-action {
        flex-basis: 100%;
        width: 100%;
    }
}

@media (max-width: 360px) {
    .vrgps-button img {
        width: min(var(--vrgps-button-width, 150px), calc(100vw - 32px));
        height: auto;
        max-width: 100%;
    }
}
