/*
 * New shortcode CSS
 * Only targets the new CRM-generated shortcodes.
 * Uses the current theme direction: deep green + golden yellow.
 */

.threadi-device-shortcode,
.threadi-animation-shortcode {
    margin: 34px auto;
    text-align: center;
}

.threadi-device-shortcode {
    max-width: 1100px;
    padding: 30px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(249, 168, 37, 0.14), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f5f9ef 100%);
    border: 1px solid rgba(27, 94, 32, 0.12);
    box-shadow: 0 20px 44px rgba(27, 94, 32, 0.09);
}

.threadi-device-shortcode__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 24px;
}

.threadi-device-shortcode__tabset {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.threadi-device-shortcode__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.threadi-device-shortcode__nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(27, 94, 32, 0.14);
    background: #ffffff;
    color: #1b5e20;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border-width: 1px;
    border-style: solid;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.threadi-device-shortcode__nav-link:hover,
.threadi-device-shortcode__nav-link:focus,
.threadi-device-shortcode__nav-link.is-active,
.threadi-device-shortcode__radio:checked + .threadi-device-shortcode__nav-link {
    background: linear-gradient(135deg, #1b5e20 0%, #2c7a33 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(27, 94, 32, 0.2);
}

.threadi-device-shortcode__nav-link:focus {
    outline: 2px solid rgba(249, 168, 37, 0.55);
    outline-offset: 2px;
}

.threadi-device-shortcode__nav-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(249, 168, 37, 0.18);
    color: inherit;
    font-size: 12px;
}

.threadi-device-shortcode__arrow {
    color: #8fa08f;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.threadi-device-shortcode__nav-link.has-arrow::after {
    content: '->';
    display: inline-block;
    margin-left: 10px;
    color: #8fa08f;
}

.threadi-device-shortcode__radio:checked + .threadi-device-shortcode__nav-link.has-arrow::after {
    color: rgba(255,255,255,.78);
}

.threadi-device-shortcode__panel {
    position: relative;
    min-height: 220px;
    transition: opacity .24s ease, transform .24s ease;
}

.threadi-device-shortcode__panel-item {
    display: none;
    width: 100%;
    flex: 0 0 100%;
    order: 99;
    margin-top: 20px;
}

.threadi-device-shortcode__panel-item.is-active,
.threadi-device-shortcode__radio:checked + .threadi-device-shortcode__nav-link + .threadi-device-shortcode__panel-item {
    display: block;
}

.threadi-device-shortcode__panel.is-loading::after {
    content: 'Loading...';
    position: absolute;
    top: 14px;
    right: 18px;
    color: #1b5e20;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.threadi-device-shortcode__panel.is-fading {
    opacity: .35;
    transform: translateY(8px);
}

.threadi-device-shortcode__panel-card {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(27, 94, 32, 0.1);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(12, 30, 14, 0.08);
    animation: threadiDevicePanelRise .32s ease;
}

.threadi-device-shortcode__media {
    position: relative;
    background: linear-gradient(180deg, #eff5ea 0%, #f7faf4 100%);
    border-bottom: 1px solid rgba(27, 94, 32, 0.08);
    padding: 22px 18px 14px;
}

.threadi-device-shortcode__image-tag {
    display: block;
    width: 33.333%;
    min-width: 180px;
    max-width: 280px;
    max-height: 180px;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(12, 30, 14, 0.12);
}

.threadi-device-shortcode__panel-top {
    padding: 28px 24px 20px;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(249, 168, 37, 0.18), transparent 28%),
        linear-gradient(135deg, #163b19 0%, #1b5e20 60%, #2f7d35 100%);
}

.threadi-device-shortcode__badge {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #f5f8ef;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.threadi-device-shortcode__panel-title {
    margin: 0;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    line-height: 1.2;
    text-align: center;
}

.threadi-device-shortcode__panel-subtitle {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.threadi-device-shortcode__panel-body {
    padding: 28px 26px;
    color: #344035;
    font-size: 15px;
    line-height: 1.85;
    text-align: center;
}

.threadi-device-shortcode__panel-body p:last-child {
    margin-bottom: 0;
}

.threadi-device-shortcode__panel-actions {
    padding: 0 24px 26px;
    text-align: center;
}

.threadi-device-shortcode__panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f9a825 0%, #efb541 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 14px 24px rgba(249, 168, 37, 0.24);
}

.threadi-device-shortcode__panel-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.threadi-device-shortcode__empty,
.threadi-animation-shortcode__empty {
    max-width: 880px;
    margin: 18px auto;
    padding: 14px 16px;
    text-align: center;
    border-left: 4px solid #f9a825;
    background: #fff8e8;
    color: #624b16;
}

.threadi-device-shortcode__seo-links {
    position: absolute;
    left: -99999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.threadi-animation-shortcode {
    max-width: 1180px;
    padding: 18px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(249, 168, 37, 0.14), transparent 24%),
        linear-gradient(180deg, #eef5e8 0%, #f8fbf5 100%);
    border: 1px solid rgba(27, 94, 32, 0.12);
    box-shadow: 0 18px 38px rgba(27, 94, 32, 0.08);
}

.threadi-animation-shortcode__frame {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(27, 94, 32, 0.08);
}

@keyframes threadiDevicePanelRise {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .threadi-device-shortcode {
        padding: 18px;
        border-radius: 20px;
    }

    .threadi-device-shortcode__nav {
        align-items: stretch;
    }

    .threadi-device-shortcode__nav-link {
        width: 100%;
    }

    .threadi-device-shortcode__panel-title {
        font-size: 22px;
    }

    .threadi-device-shortcode__panel-top,
    .threadi-device-shortcode__panel-body,
    .threadi-device-shortcode__panel-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .threadi-device-shortcode__image-tag {
        width: 72%;
        min-width: 0;
        max-width: 220px;
        max-height: 150px;
    }

    .threadi-device-shortcode__nav-link.has-arrow::after {
        display: none;
    }
}
