/* Shared header layout and Cashfree payment buttons. */
#header .nav-link {
    white-space: nowrap;
}

@media (min-width: 992px) {
    #header .navbar > .container {
        gap: 12px;
    }

    #header .header-brand {
        width: 140px;
        flex-shrink: 0;
    }

    #header .navbar-collapse {
        flex-grow: 0;
        flex-shrink: 0;
    }

    #header .navbar-nav {
        align-items: center;
    }

    #header .navbar-nav .nav-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #header .nav-link {
        font-size: 16px;
        padding-left: 7px;
        padding-right: 7px;
    }
}

#header .header-actions {
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

#header .header-actions > * {
    flex-shrink: 0;
}

#header .header-actions .btn-main {
    padding: 0;
    white-space: nowrap;
}

#header .header-actions .btn-main a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

#header .header-actions .btn-main i {
    padding: 0;
    font-size: 18px;
}

a.cashfree-payment,
.footer .contact-add a.cashfree-payment {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 10px 18px;
    border: 1px solid var(--primary);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 14px rgba(41, 169, 224, .2);
    color: #fff;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

a.cashfree-payment:hover,
a.cashfree-payment:focus-visible,
.footer .contact-add a.cashfree-payment:hover,
.footer .contact-add a.cashfree-payment:focus-visible {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(41, 169, 224, .35);
}

a.cashfree-payment:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.cashfree-payment .payment-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
}

.cashfree-payment .payment-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.cashfree-payment .payment-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.cashfree-payment .payment-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.cashfree-payment .payment-brand img {
    width: 16px;
    height: 16px;
}

@media (max-width: 1199px) {
    #header .header-actions {
        gap: 8px;
    }

    #header .header-actions .btn-main a {
        padding: 14px 10px;
        gap: 6px;
        font-size: 12px;
    }

    #header .header-actions .btn-main i {
        font-size: 14px;
    }

    #header .header-actions .cashfree-payment {
        padding: 8px;
        gap: 6px;
    }

    #header .header-actions .payment-logo {
        width: 28px;
        height: 28px;
    }

    #header .header-actions .payment-title {
        font-size: 14px;
    }

    #header .header-actions .payment-brand {
        font-size: 8px;
        gap: 2px;
    }
}
