* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: transparent;
    color: #2f241c;
    font-family: "Open Sans", Arial, sans-serif;
}

body.chat-embed-page {
    background: transparent;
}

.embed-shell {
    width: 100%;
    margin: 0;
    padding: 12px;
}

.embed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.embed-card,
.embed-single {
    background: #fff7ec;
    border: 1px solid #e2c7a4;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(110, 79, 40, 0.08);
    overflow: hidden;
}

.embed-card {
    display: flex;
    flex-direction: column;
}

.embed-single {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.embed-media {
    position: relative;
    background: #f4dfbf;
}

.embed-avatar,
.embed-avatar-fallback {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
}

.embed-avatar {
    object-fit: cover;
}

.embed-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d6337;
    font-family: "Adamina", Georgia, serif;
    font-size: 58px;
}

.embed-status {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 252, 245, 0.96);
    border: 1px solid rgba(214, 177, 134, 0.9);
    color: #4f3e30;
    font-size: 13px;
    font-weight: 700;
}

.embed-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9b9b9b;
}

.embed-status.is-online .embed-status-dot {
    background: #2e9e5b;
}

.embed-status.is-busy .embed-status-dot {
    background: #f0a43a;
}

.embed-body {
    padding: 16px;
}

.embed-kicker {
    color: #f37934;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.embed-name {
    margin: 0;
    font-family: "Adamina", Georgia, serif;
    font-size: 30px;
    line-height: 1.08;
    color: #2f241c;
}

.embed-card .embed-name {
    font-size: 24px;
}

.embed-price {
    margin-top: 10px;
    color: #5d4735;
    font-size: 14px;
    font-weight: 700;
}

.embed-headline {
    margin-top: 10px;
    color: #5d4735;
    font-size: 14px;
    line-height: 1.55;
}

.embed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.embed-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff1dc;
    border: 1px solid #e2c7a4;
    color: #5b4634;
    font-size: 13px;
    font-weight: 600;
}

.embed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.embed-btn,
.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.embed-btn:hover,
.primary-btn:hover,
.ghost-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-decoration: none;
}

.embed-btn-primary,
.primary-btn {
    background: #2e9e5b;
    border: 1px solid #2e9e5b;
    color: #ffffff;
}

.embed-btn-secondary,
.ghost-btn {
    background: #fff8ef;
    border: 1px solid #d6b186;
    color: #5a4331;
}

.embed-btn.is-disabled,
.primary-btn.is-disabled,
.ghost-btn.is-disabled {
    background: #efe6da;
    border: 1px solid #cdbba6;
    color: #7b6e61;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    opacity: 1;
}

.embed-btn.is-disabled:hover,
.primary-btn.is-disabled:hover,
.ghost-btn.is-disabled:hover {
    transform: none;
    opacity: 1;
}

.embed-btn.is-disabled.is-busy,
.primary-btn.is-disabled.is-busy,
.ghost-btn.is-disabled.is-busy {
    color: #5f3405;
    background: linear-gradient(180deg, #ffd3a1 0%, #f2b36c 100%);
    border: 1px solid rgba(210, 133, 44, 0.32);
}

.embed-btn.is-disabled.is-offline,
.primary-btn.is-disabled.is-offline,
.ghost-btn.is-disabled.is-offline {
    background: #efe6da;
    border: 1px solid #cdbba6;
    color: #7b6e61;
}

.status-btn {
    min-width: 148px;
}

.status-btn.is-disabled.is-busy {
    color: #5f3405;
    background: linear-gradient(180deg, #ffd3a1 0%, #f2b36c 100%);
    border: 1px solid rgba(210, 133, 44, 0.32);
}

.status-btn.is-disabled.is-offline {
    background: #efe6da;
    border: 1px solid #cdbba6;
    color: #7b6e61;
}

.embed-note {
    margin-top: 14px;
    color: #7a634e;
    font-size: 12px;
    line-height: 1.5;
}

.embed-empty {
    padding: 28px 20px;
    text-align: center;
    background: #fff7ec;
    border: 1px solid #e2c7a4;
    border-radius: 18px;
    color: #5d4735;
}

.embed-empty h1,
.embed-empty h2 {
    margin: 0 0 8px 0;
    font-family: "Adamina", Georgia, serif;
    color: #2f241c;
}

.embed-empty p {
    margin: 0;
    line-height: 1.55;
}

@media (max-width: 720px) {
    .embed-shell {
        padding: 10px;
    }

    .embed-single {
        grid-template-columns: 1fr;
    }
}


body.embed-theme-aimediums .embed-shell {
    padding: 10px 0 0;
}

body.embed-theme-aimediums .ai-mediums-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1060px;
    margin: 0 auto;
}

body.embed-theme-aimediums .ai-medium-card {
    overflow: hidden;
    border: 1px solid #e7c69a;
    border-radius: 16px;
    background: #ffe6c2;
    box-shadow: 0 12px 28px rgba(110, 79, 40, 0.08);
}

body.embed-theme-aimediums .ai-medium-card-image {
    position: relative;
    display: block;
    min-height: 235px;
    background: #f4d7ae;
    color: inherit;
    text-decoration: none;
}

body.embed-theme-aimediums .ai-medium-card-image img,
body.embed-theme-aimediums .ai-medium-card-fallback {
    width: 100%;
    height: 235px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    color: #8a6037;
    font-family: Adamina, Georgia, serif;
    font-size: 60px;
}

body.embed-theme-aimediums .ai-medium-card-status {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid #d7bc95;
    border-radius: 999px;
    background: #fff6e8;
    color: #4c3828;
    font-size: 13px;
    font-weight: 700;
}

body.embed-theme-aimediums .ai-medium-card-status span:first-child {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #39a85b;
}

body.embed-theme-aimediums .ai-medium-card-status.is-busy span:first-child {
    background: #f39a32;
}

body.embed-theme-aimediums .ai-medium-card-status.is-offline span:first-child {
    background: #b7a894;
}

body.embed-theme-aimediums .ai-medium-card-body {
    padding: 16px 18px 20px;
}

body.embed-theme-aimediums.embed-single-ai-medium .ai-medium-card-type {
    position: absolute;
    right: 13px;
    bottom: 14px;
    color: #fffaf2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: 0 1px 5px rgba(35, 20, 10, 0.62);
    text-transform: uppercase;
}

body.embed-theme-aimediums .ai-medium-card h2 {
    margin: 0;
    font-family: Adamina, Georgia, serif;
    font-size: 25px;
    line-height: 1.08;
    font-weight: 400;
}

body.embed-theme-aimediums .ai-medium-card-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
}

body.embed-theme-aimediums .ai-medium-card-title h2 {
    min-width: 0;
}

body.embed-theme-aimediums .ai-medium-card-skill {
    flex: 0 0 auto;
    color: #8b4fa3;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

body.embed-theme-aimediums .ai-medium-card p {
    min-height: 4.35em;
    margin: 0 0 8px;
    color: #5f4a37;
    font-size: 13.5px;
    line-height: 1.45;
}

body.embed-theme-aimediums .ai-medium-card-more {
    display: inline-block;
    margin: 0 0 7px;
    color: #a86524;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

body.embed-theme-aimediums .ai-medium-card-more:hover,
body.embed-theme-aimediums .ai-medium-card-more:focus {
    color: #814a18;
    text-decoration: underline;
}

body.embed-theme-aimediums .ai-medium-card-reviews {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: #9d6126;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

body.embed-theme-aimediums .ai-medium-card-reviews:hover,
body.embed-theme-aimediums .ai-medium-card-reviews:focus {
    color: #814a18;
    text-decoration: underline;
}

body.embed-theme-aimediums .ai-medium-card-stars {
    color: #b46b28;
    letter-spacing: 0;
    white-space: nowrap;
}

body.embed-theme-aimediums .ai-medium-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

body.embed-theme-aimediums.embed-guest-paid-trial .ai-medium-card-actions {
    align-items: stretch;
}

body.embed-theme-aimediums.embed-guest-paid-trial .ai-medium-card h2 {
    font-size: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.embed-theme-aimediums.embed-guest-paid-trial .ai-medium-card-skill {
    font-size: 13.5px;
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.embed-theme-aimediums.embed-guest-paid-trial .ai-medium-card p {
    display: -webkit-box;
    font-size: 16px;
    line-height: 1.4;
    min-height: 0;
    max-height: 4.2em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.embed-theme-aimediums.embed-guest-paid-trial .ai-medium-card-more {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16.5px;
    white-space: nowrap;
}

body.embed-theme-aimediums.embed-guest-paid-trial .ai-medium-card-reviews {
    font-size: 16px;
}

body.embed-theme-aimediums .ai-medium-guest-choice,
body.embed-theme-aimediums .ai-medium-guest-payment-form {
    width: auto;
}

body.embed-theme-aimediums .ai-medium-guest-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

body.embed-theme-aimediums .ai-medium-guest-note,
body.embed-theme-aimediums .ai-medium-guest-or {
    color: #6f6256;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
}

body.embed-theme-aimediums .ai-medium-guest-or {
    padding: 4px 0;
}

body.embed-theme-aimediums .ai-medium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    min-width: 118px;
    border-radius: 10px;
    border: 1px solid #2D7A4F;
    background: #2D7A4F;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

body.embed-theme-aimediums .ai-medium-paid-guest-btn,
body.embed-theme-aimediums .ai-medium-free-account-btn {
    width: auto;
    min-width: 292px;
    max-width: 100%;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 16.5px;
    white-space: normal;
}

body.embed-theme-aimediums .ai-medium-free-account-link {
    display: inline-block;
    margin-top: 2px;
    color: #2D7A4F;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.embed-theme-aimediums .ai-medium-btn:hover,
body.embed-theme-aimediums .ai-medium-btn:focus {
    background: #256640;
    border-color: #256640;
    color: #fff;
    text-decoration: none;
}

body.embed-theme-aimediums .ai-medium-free-account-link:hover,
body.embed-theme-aimediums .ai-medium-free-account-link:focus {
    color: #256640;
    text-decoration: underline;
}

body.embed-theme-aimediums .ai-medium-btn.is-status {
    cursor: default;
    border-color: #d6b186;
    background: #fff8ef;
    color: #5a4331;
    opacity: 1;
}

body.embed-theme-aimediums .ai-medium-btn.is-status.is-busy {
    border-color: #de8417;
    background: #f39a2f;
    color: #ffffff;
    box-shadow: none;
}

body.embed-theme-aimediums .ai-medium-btn.is-status.is-offline {
    border-color: #d6c8b6;
    background: #f7efe5;
    color: #7a6a58;
}

@media (max-width: 980px) {
    body.embed-theme-aimediums .ai-mediums-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    body.embed-theme-aimediums.embed-guest-paid-trial .embed-shell {
        padding-left: 4px;
        padding-right: 4px;
    }

    body.embed-theme-aimediums .ai-mediums-grid {
        grid-template-columns: 1fr;
    }

    body.embed-theme-aimediums.embed-guest-paid-trial .ai-mediums-grid,
    body.embed-theme-aimediums.embed-guest-paid-trial .ai-medium-card {
        width: 100%;
        max-width: none;
    }

    body.embed-theme-aimediums.embed-mobile-device.embed-guest-paid-trial .ai-medium-card-title {
        align-items: baseline;
        flex-direction: row;
        gap: 8px;
    }

    body.embed-theme-aimediums.embed-mobile-device.embed-guest-paid-trial .ai-medium-card h2 {
        flex: 1 1 auto;
        font-size: 21px;
        line-height: 1.12;
        min-width: 0;
    }

    body.embed-theme-aimediums.embed-mobile-device.embed-guest-paid-trial .ai-medium-card-skill {
        flex: 0 1 auto;
        font-size: 11.5px;
        line-height: 1.15;
        min-width: 0;
        max-width: 54%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.embed-theme-aimediums.embed-mobile-device.embed-guest-paid-trial .ai-medium-card p {
        font-size: 13px;
        line-height: 1.42;
    }

    body.embed-theme-aimediums.embed-mobile-device.embed-guest-paid-trial .ai-medium-card-more,
    body.embed-theme-aimediums.embed-mobile-device.embed-guest-paid-trial .ai-medium-card-reviews {
        font-size: 13px;
    }

    body.embed-theme-aimediums.embed-mobile-device.embed-guest-paid-trial .ai-medium-paid-guest-btn {
        min-width: 0;
        width: 100%;
        min-height: 40px;
        padding: 0 12px;
        font-size: 15.5px;
    }

    body.embed-theme-aimediums.embed-mobile-device.embed-guest-paid-trial .ai-medium-guest-note,
    body.embed-theme-aimediums.embed-mobile-device.embed-guest-paid-trial .ai-medium-free-account-link {
        font-size: 14px;
        line-height: 1.25;
    }
}

