/**
 * Cards da Link Nacional no admin.
 *
 * Cópia fiel do CSS/cards do lkn-wc-gateway-cielo
 * (resources/css/frontend/lkn-woocommerce-admin-card.css), só com os seletores
 * prefixados para não vazar no resto do admin:
 *
 * - .lknscf-card-lkn  → #lknCieloWoocommerceSettingsCard
 * - .lknscf-feature   → .custom-feature-message
 * - .lknscf-promo     → .woo-better-promotional-card
 */

/* ==================================================================
   Card escuro (logo, links, avaliação, contatos)
   ================================================================== */
.lknscf-card-lkn {
    color: #fff;
    max-width: 370px;
    width: 100%;
    height: fit-content;
    background-color: #121519;
    border-radius: 10px;
    margin-bottom: 5px;
    background-position: right bottom, left top calc(15px);
    background-repeat: no-repeat;
    display: flex;
    margin: 0 !important;
    flex-direction: column;
    padding: 15px 25px;
    box-sizing: border-box;
    gap: 25px;
}

.lknscf-card-lkn__logo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin-bottom: 18px !important;
}

.lknscf-card-lkn__logo p {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
}

.lknscf-card-lkn__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lknscf-card-lkn__links {
    display: flex;
    justify-content: space-between;
    padding-right: 30px;
    gap: 6%;
}

.lknscf-card-lkn__links div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
}

.lknscf-card-lkn a {
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
}

.lknscf-card-lkn__links div a {
    white-space: nowrap;
}

.lknscf-card-lkn__links a b {
    color: #d1d838;
    font-size: small;
}

.lknscf-card-lkn img {
    height: 25px;
}

.lknscf-card-lkn__stars-block {
    width: fit-content;
}

.lknscf-card-lkn__stars-block a {
    flex-direction: column;
}

.lknscf-card-lkn__stars-block p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    width: 100%;
}

.lknscf-card-lkn__support {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.lknscf-card-lkn__stars {
    display: flex;
    width: 100%;
}

.lknscf-star {
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    width: fit-content;
    padding: 0;
    margin: 0;
    color: #dae300 !important;
    font-size: 12px;
}

.lknscf-card-lkn__contacts {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lknscf-card-lkn__contacts a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}

.lknscf-card-lkn__contacts a:hover {
    transform: scale(1.1);
}

.lknscf-card-lkn__contact-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* ==================================================================
   Destaque verde (.custom-feature-message)
   ================================================================== */
.lknscf-feature {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-top: 20px;
    border: 1px solid #4caf50;
    border-left-width: 5px;
    border-left-color: #4caf50 !important;
    border-radius: 5px;
    background-color: #e8f5e9 !important;
    color: #388e3c !important;
    font-size: 14px;
    line-height: 1.5;
    max-width: 370px;
    width: 100%;
    box-sizing: border-box;
}

.lknscf-feature__icon {
    margin-right: 10px;
    font-size: 16px;
}

.lknscf-feature__content span {
    display: block;
    margin-bottom: 5px;
}

.lknscf-feature__content span:last-child {
    margin-bottom: 0;
}

/* ==================================================================
   Card roxo (.woo-better-promotional-card)
   ================================================================== */
.lknscf-promo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    position: relative;
    overflow: hidden;
    max-width: 370px;
    width: 100%;
    box-sizing: border-box;
}

.lknscf-promo__decor {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    pointer-events: none;
}

.lknscf-promo__content {
    position: relative;
    z-index: 1;
}

.lknscf-promo__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.lknscf-promo__divider {
    width: 100%;
    height: 1px;
    background: #fff;
    border: none;
    margin: 8px 0 16px;
}

.lknscf-promo__description {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .9);
}

.lknscf-promo__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Cielo creates <button> elements; here they are links (the install/activate
   action is an URL), so the display is set explicitly to match. */
.lknscf-promo__button {
    display: inline-block;
    box-sizing: border-box;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease;
    border: none;
    text-decoration: none;
}

.lknscf-promo__button.is-learn-more {
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    backdrop-filter: blur(10px);
}

.lknscf-promo__button.is-learn-more:hover {
    background: rgba(255, 255, 255, .3);
    transform: translateY(-1px);
}

.lknscf-promo__button.is-install {
    background: rgba(255, 255, 255, .9);
    color: #667eea;
}

.lknscf-promo__button.is-install:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.lknscf-promo__button:focus-visible,
.lknscf-card-lkn a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
