/* Lightweight entry to the iPhone questionnaire on guides and product pages. */
a.iphone-check-link,
.article-v2 .product-content .left a.iphone-check-link {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 26px 0;
    padding: 18px 24px;
    border: 1px solid #cde0fa;
    border-radius: 18px;
    background:
        radial-gradient(280px 180px at 56px 52%, rgba(56, 139, 255, 0.16), transparent 72%),
        linear-gradient(125deg, #fafdff 0%, #eef5ff 62%, #e4f0ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 24px -10px rgba(17, 56, 122, 0.12);
    color: #142548;
    font-family: Inter, sans-serif;
    text-align: left;
    text-decoration: none;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

a.iphone-check-link::before {
    content: "";
    flex: 0 0 58px;
    height: 104px;
    background: url("../../images/tools/iphone-troubleshooter/decor/iphone-troubleshooter-device.webp") center / contain no-repeat;
    filter: drop-shadow(0 10px 14px rgba(13, 62, 145, 0.2));
    transition: transform 0.25s ease;
}

a.iphone-check-link .iphone-check-link-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

a.iphone-check-link .iphone-check-link-copy strong {
    color: #0f2142;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.015em;
}

a.iphone-check-link .iphone-check-link-copy > span {
    color: #455b78;
    font-size: 14px;
    line-height: 1.55;
}

a.iphone-check-link .iphone-check-link-copy small {
    order: -1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    padding: 3px 10px;
    border: 1px solid rgba(8, 100, 232, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #0a58cc;
    font-size: 11.5px;
    line-height: 1.4;
    font-weight: 650;
    letter-spacing: 0.01em;
}

a.iphone-check-link .iphone-check-link-copy small::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0864e8;
    box-shadow: 0 0 0 3px rgba(8, 100, 232, 0.14);
}

a.iphone-check-link .iphone-check-link-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2b80ff 0%, #0864e8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 6px 16px -4px rgba(8, 100, 232, 0.34);
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 650;
    white-space: nowrap;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

a.iphone-check-link .iphone-check-link-action::after {
    content: "";
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 8h10m-4-4 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 8h10m-4-4 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.2s ease;
}

a.iphone-check-link:hover,
.article-v2 .product-content .left a.iphone-check-link:hover {
    border-color: #7db2fc;
    background:
        radial-gradient(280px 180px at 56px 52%, rgba(56, 139, 255, 0.22), transparent 72%),
        linear-gradient(125deg, #ffffff 0%, #e8f2ff 62%, #dcebff 100%);
    box-shadow: inset 0 1px 0 #fff, 0 12px 28px -12px rgba(8, 100, 232, 0.24);
    color: #142548;
    text-decoration: none;
    transform: translateY(-1px);
}

a.iphone-check-link:hover::before {
    transform: translateY(-2px) scale(1.03);
}

a.iphone-check-link:hover .iphone-check-link-action {
    background: linear-gradient(180deg, #1b73f5 0%, #0754c4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 20px -4px rgba(8, 100, 232, 0.42);
}

a.iphone-check-link:hover .iphone-check-link-action::after {
    transform: translateX(3px);
}

a.iphone-check-link:focus-visible,
.article-v2 .product-content .left a.iphone-check-link:focus-visible {
    outline: 3px solid #0864e8;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    a.iphone-check-link,
    .article-v2 .product-content .left a.iphone-check-link {
        gap: 16px;
        padding: 18px 20px;
    }

    a.iphone-check-link::before {
        flex: 0 0 50px;
        height: 92px;
    }
}

@media (max-width: 576px) {
    a.iphone-check-link,
    .article-v2 .product-content .left a.iphone-check-link {
        flex-wrap: wrap;
        gap: 14px 16px;
        padding: 18px;
        border-radius: 16px;
    }

    a.iphone-check-link::before {
        flex: 0 0 46px;
        height: 86px;
    }

    a.iphone-check-link .iphone-check-link-copy strong {
        font-size: 17px;
    }

    a.iphone-check-link .iphone-check-link-action {
        box-sizing: border-box;
        flex: 1 0 100%;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    a.iphone-check-link,
    .article-v2 .product-content .left a.iphone-check-link,
    a.iphone-check-link::before,
    a.iphone-check-link .iphone-check-link-action,
    a.iphone-check-link .iphone-check-link-action::after {
        transition: none;
    }

    a.iphone-check-link:hover,
    .article-v2 .product-content .left a.iphone-check-link:hover,
    a.iphone-check-link:hover::before,
    a.iphone-check-link:hover .iphone-check-link-action::after {
        transform: none;
    }
}
