/**
 * "Prefer Paytm on Google" pill.
 *
 * Enqueued on single posts and inlined into AMP output, so keep this file
 * AMP-safe: no !important, no external url() references.
 */

/* Page header: put the pill on the meta row.
   Simple header only; other header types centre it under the title. */
.single .page-header-simple { display: flex; flex-wrap: wrap; align-items: center; }
.single .page-header-simple > * { width: 100%; }
.single .page-header-simple > .post-meta:not(.cat-custom-position),
.single .page-header-simple > .paytm-preferred-source { width: auto; }
.single .page-header-simple > .cat-custom-position { order: 1; }

.paytm-preferred-source {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 3px 6px 3px 3px;
    background: #fff;
    border: 1px solid #00b7ff;
    border-radius: 30px;
    color: #000;
    text-decoration: none;
    text-transform: none;
}
.paytm-preferred-source:focus-visible {
    outline: 2px solid #00b7ff;
    outline-offset: 2px;
}
.paytm-preferred-source__coin {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transform-style: preserve-3d;
    animation: paytm-coin-flip 4s infinite ease-in-out;
}
.paytm-preferred-source__coin svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.paytm-preferred-source__coin svg:first-of-type { transform: rotateY(0deg); }
.paytm-preferred-source__coin svg:last-of-type { transform: rotateY(180deg); }
@keyframes paytm-coin-flip {
    0%, 40% { transform: rotateY(0deg); }
    50%, 90% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}
.paytm-preferred-source__label {
    max-width: 65px;
    font-size: 10px;
    font-weight: 500;
    line-height: 12px;
    color: #000;
}

@media (max-width: 768px) {
    .paytm-preferred-source {
        margin-left: 0px;
    }
}
