.ai-template-category,
.ai-template-tool {
    background: #fbfdff;
    color: #101828;
    padding: 22px 0 0;
}

.ai-template-category .container,
.ai-template-tool .container {
    max-width: 1280px;
}

.ai-template-breadcrumb {
    align-items: center;
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
    gap: 9px;
    margin: 0 0 18px;
}

.ai-template-breadcrumb a {
    color: #667085;
    text-decoration: none;
}

.ai-template-breadcrumb a:hover,
.ai-template-breadcrumb strong {
    color: #155eef;
}

.ai-template-eyebrow {
    color: #155eef;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ai-template-category__hero {
    align-items: center;
    background:
        linear-gradient(112deg, rgba(239, 246, 255, .96), rgba(255, 255, 255, .96)),
        #ffffff;
    border: 1px solid #dbe7ff;
    border-radius: 8px;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
    margin-bottom: 30px;
    min-height: 360px;
    overflow: hidden;
    padding: 36px;
}

.ai-template-category__hero h1 {
    color: #101828;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0 0 14px;
}

.ai-template-category__hero p {
    color: #344054;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.ai-template-category__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.ai-template-btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    gap: 9px;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    text-decoration: none;
}

.ai-template-btn--primary {
    background: #155eef;
    box-shadow: 0 12px 24px rgba(21, 94, 239, .18);
    color: #ffffff;
}

.ai-template-btn--ghost {
    background: #ffffff;
    border: 1px solid #b8ccff;
    color: #155eef;
}

.ai-template-category__visual {
    display: grid;
    gap: 14px;
    grid-template-columns: 1.2fr .82fr;
}

.ai-template-category__photo {
    border: 4px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(16, 24, 40, .13);
    display: block;
    height: 172px;
    object-fit: cover;
    width: 100%;
}

.ai-template-category__photo-link {
    overflow: hidden;
    text-decoration: none;
}

.ai-template-category__photo-link img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.ai-template-category__photo--1 {
    grid-row: span 2;
    height: 358px;
}

.ai-template-section {
    margin: 28px 0;
}

.ai-template-section__head {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 0 16px;
}

.ai-template-section__head h2,
.ai-template-related h2,
.ai-template-output h2,
.ai-template-why h2 {
    color: #101828;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 6px;
}

.ai-template-section__head p {
    color: #475467;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.ai-template-section__head a {
    color: #155eef;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.ai-template-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-template-card {
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-template-card > a {
    align-items: center;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.ai-template-card img {
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.2s ease;
    width: 100%;
}

.ai-template-card img.is-loading {
    opacity: 0;
}

.ai-template-card img.is-loaded {
    opacity: 1;
}

.ai-template-card img.is-error {
    opacity: 0.35;
}

.ai-template-card div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 14px;
}

.ai-template-card span {
    align-self: flex-start;
    background: #fff4e6;
    border-radius: 999px;
    color: #b54708;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
}

.ai-template-card h3 {
    color: #101828;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}

.ai-template-card p {
    color: #475467;
    flex: 1;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.ai-template-card footer {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 4px;
}

.ai-template-card strong,
.ai-template-related small {
    color: #f79009;
    font-size: 13px;
    font-weight: 800;
}

.ai-template-card footer a {
    border: 1px solid #155eef;
    border-radius: 6px;
    color: #155eef;
    font-size: 13px;
    font-weight: 800;
    min-height: 34px;
    padding: 8px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.ai-template-load-more {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    margin: 24px 0 0;
}

.ai-template-load-more button {
    align-items: center;
    background: #155eef;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 9px;
    min-height: 42px;
    padding: 0 18px;
}

.ai-template-load-more button:disabled {
    cursor: wait;
    opacity: .78;
}

.ai-template-load-more i {
    display: none;
}

.ai-template-load-more button.is-loading i {
    animation: ai-template-spin 1s linear infinite;
    display: inline-block;
}

.online-editor__submit.is-busy i,
.ai-template-submit.is-busy i {
    animation: ai-template-spin 1s linear infinite;
    display: inline-block;
    transform-origin: center;
}

.ai-template-load-more small {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.ai-template-load-sentinel {
    height: 1px;
}

.ai-template-category--memorial .ai-template-category__hero {
    grid-template-columns: minmax(0, .95fr) minmax(320px, .72fr);
}

.ai-template-category--memorial .ai-template-category__visual {
    align-items: end;
    gap: 12px;
    grid-template-columns: 1.06fr .88fr .76fr;
    justify-content: center;
}

.ai-template-category--memorial .ai-template-category__photo {
    aspect-ratio: 20 / 30;
    height: auto;
    max-height: 430px;
    object-fit: cover;
}

.ai-template-category--memorial .ai-template-category__photo--1 {
    grid-row: auto;
    height: auto;
}

.ai-template-category--memorial .ai-template-category__photo--2 {
    transform: translateY(26px);
}

.ai-template-category--memorial .ai-template-category__photo--3 {
    transform: translateY(52px);
}

.ai-template-category--memorial .ai-template-grid {
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ai-template-category--memorial .ai-template-card img {
    aspect-ratio: 20 / 30;
    background: #f8fafc;
    object-fit: cover;
}

.ai-template-category--memorial .ai-template-card {
    box-shadow: 0 12px 34px rgba(16, 24, 40, .05);
}

.ai-template-category--memorial .ai-template-card div {
    min-height: 250px;
}

.ai-template-category--memorial .ai-template-card h3,
.ai-template-category--memorial .ai-template-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.ai-template-category--memorial .ai-template-card h3 {
    min-height: calc(18px * 1.3 * 2);
    -webkit-line-clamp: 2;
}

.ai-template-category--memorial .ai-template-card p {
    min-height: calc(14px * 1.55 * 3);
    -webkit-line-clamp: 3;
}

.ai-template-category--memorial .ai-template-card footer {
    align-items: stretch;
    flex-direction: column;
    margin-top: auto;
}

.ai-template-category--memorial .ai-template-card footer a {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.ai-template-section--steps,
.ai-template-flow {
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px;
}

.ai-template-step,
.ai-template-flow div {
    align-items: center;
    display: grid;
    gap: 5px 12px;
    grid-template-columns: 46px minmax(0, 1fr);
}

.ai-template-step i,
.ai-template-flow div i {
    align-items: center;
    background: #eef4ff;
    border-radius: 50%;
    color: #155eef;
    display: flex;
    font-size: 20px;
    grid-row: span 2;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.ai-template-step b,
.ai-template-flow b {
    color: #101828;
    font-size: 14px;
    font-weight: 800;
}

.ai-template-step span,
.ai-template-flow span {
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

.ai-template-tool__layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
}

.ai-template-tool__main {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, .56fr) minmax(0, .44fr);
}

.ai-template-showcase {
    display: grid;
    gap: 12px;
}

.ai-template-info {
    align-self: center;
}

.ai-template-flow,
.ai-template-results,
.ai-template-generation,
.ai-template-related,
.ai-template-comments {
    grid-column: 1 / -1;
}

.ai-template-showcase__main {
    aspect-ratio: 16 / 10;
    background: #f8fafc;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.ai-template-showcase__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.ai-template-showcase__thumbs img {
    aspect-ratio: 16 / 10;
    background: #f8fafc;
    border: 2px solid #dbe7ff;
    border-radius: 8px;
    cursor: pointer;
    flex: 0 0 clamp(108px, calc((100% - 30px) / 4), 160px);
    min-width: 108px;
    object-fit: cover;
    scroll-snap-align: start;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    width: clamp(108px, calc((100% - 30px) / 4), 160px);
}

.ai-template-showcase__thumbs img:hover,
.ai-template-showcase__thumbs img:focus-visible,
.ai-template-showcase__thumbs img.is-active {
    border-color: #155eef;
    box-shadow: 0 0 0 2px rgba(21, 94, 239, .18);
    outline: none;
}

.ai-template-showcase__thumbs img:hover {
    transform: translateY(-1px);
}

.ai-template-info__title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

.ai-template-info h1 {
    color: #101828;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.ai-template-info__title span {
    align-items: center;
    background: #fff1f3;
    border-radius: 999px;
    color: #e31b54;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    min-height: 34px;
    padding: 0 13px;
}

.ai-template-info__actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-template-admin-edit {
    align-items: center;
    background: #eef4ff;
    border: 1px solid #b8ccff;
    border-radius: 999px;
    color: #155eef;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    min-height: 34px;
    padding: 0 13px;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
    white-space: nowrap;
}

.ai-template-admin-edit:hover,
.ai-template-admin-edit:focus-visible {
    background: #155eef;
    border-color: #155eef;
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.ai-template-admin-edit--category {
    background: #101828;
    border-color: #101828;
    border-radius: 8px;
    color: #ffffff;
    min-height: 46px;
    padding: 0 18px;
}

.ai-template-admin-edit--category:hover,
.ai-template-admin-edit--category:focus-visible {
    background: #155eef;
    border-color: #155eef;
    color: #ffffff;
}

.ai-template-info > p {
    color: #344054;
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 18px;
    max-width: 640px;
}

.ai-template-price {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    margin-bottom: 18px;
    max-width: 440px;
    min-height: 68px;
    padding: 12px 16px;
}

.ai-template-price i {
    color: #f79009;
    font-size: 28px;
}

.ai-template-price strong {
    color: #f04438;
    font-size: 30px;
    font-weight: 900;
}

.ai-template-price span {
    color: #101828;
    font-size: 18px;
    font-weight: 800;
}

.ai-template-price small {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.ai-template-benefits {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 680px;
}

.ai-template-benefits div {
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 64px;
    padding: 11px;
}

.ai-template-benefits i {
    color: #155eef;
    font-size: 18px;
    grid-row: span 2;
}

.ai-template-benefits b {
    color: #101828;
    font-size: 12px;
    font-weight: 800;
}

.ai-template-benefits span {
    color: #667085;
    font-size: 11px;
}

.ai-template-flow {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
}

.ai-template-flow > i {
    color: #98a2b3;
    font-size: 18px;
    text-align: center;
}

.ai-template-result-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-template-generation {
    display: grid;
    gap: 12px;
}

.ai-template-generation[hidden],
.ai-template-generated[hidden] {
    display: none;
}

.ai-template-generated__download-all[hidden],
.ai-template-generated__hint[hidden],
.online-editor__download[hidden] {
    display: none !important;
}

.ai-template-generation__progress {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(280px, .9fr) 20px auto minmax(120px, .35fr);
    min-height: 62px;
    min-width: 0;
    padding: 12px 18px;
    width: 100%;
}

.ai-template-generation__progress[hidden] {
    display: none;
}

.ai-template-generation__working {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto auto auto minmax(140px, 1fr);
    min-width: 0;
}

.ai-template-generation__working > i {
    color: #155eef;
    font-size: 18px;
}

.ai-template-generation.is-working .ai-template-generation__working > i {
    animation: ai-template-spin 1s linear infinite;
    display: inline-block;
    transform-origin: center;
}

.ai-template-generation__working strong {
    color: #101828;
    font-size: 14px;
    font-weight: 800;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.ai-template-generation__working span {
    color: #155eef;
    font-size: 13px;
    font-weight: 800;
}

.ai-template-generation__bar {
    background: #eaf1ff;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.ai-template-generation__bar span {
    background: #155eef;
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width .25s ease;
}

.ai-template-generation__dot {
    border: 2px solid #98a2b3;
    border-radius: 50%;
    height: 12px;
    justify-self: center;
    width: 12px;
}

.ai-template-generation__done {
    align-items: center;
    color: #98a2b3;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-self: start;
    min-width: 0;
}

.ai-template-generation__done i {
    align-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    font-size: 11px;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.ai-template-generation__done strong {
    font-size: 14px;
    font-weight: 800;
}

.ai-template-generation__done.is-active {
    color: #12b76a;
}

.ai-template-generation__progress p {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.ai-template-generation.is-error .ai-template-generation__bar span {
    background: #f04438;
}

.ai-template-generation.is-error .ai-template-generation__done {
    color: #f04438;
}

.ai-template-generated {
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .04);
    padding: 16px;
    position: relative;
}

.ai-template-generated__head {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 12px;
}

.ai-template-generated__head h2 {
    align-items: center;
    color: #101828;
    display: flex;
    font-size: 22px;
    font-weight: 800;
    gap: 9px;
    line-height: 1.2;
    margin: 0 0 4px;
}

.ai-template-generated__head h2 i {
    color: #155eef;
}

.ai-template-generated__head p,
.ai-template-generated__secure {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
}

.ai-template-generated__secure {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    margin-top: 24px;
    white-space: nowrap;
}

.ai-template-generated__secure i {
    color: #155eef;
}

.ai-template-generated__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.ai-template-generated__tools a,
.ai-template-generated__tools button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 6px;
    color: #344054;
    display: inline-flex;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    text-decoration: none;
}

.ai-template-generated__tools [hidden] {
    display: none !important;
}

.ai-template-generated__tools a:hover,
.ai-template-generated__tools button:hover {
    border-color: #155eef;
    color: #155eef;
}

.ai-template-generated__tools button.is-active {
    background: #eef4ff;
    border-color: #155eef;
    color: #155eef;
}

.ai-template-generated__tools .ai-template-generated__clear-history {
    border-color: #fda29b;
    color: #b42318;
}

.ai-template-generated__tools .ai-template-generated__clear-history:hover {
    background: #fef3f2;
    border-color: #f97066;
    color: #912018;
}

.ai-template-generated__tools button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.ai-template-generated__tools a[aria-disabled="true"],
.ai-template-generated-card a[aria-disabled="true"] {
    pointer-events: none;
    opacity: .6;
}

body.ai-image-preview-open {
    overflow: hidden;
}

body.ai-retry-modal-open {
    overflow: hidden;
}

body.ai-xu-modal-open {
    overflow: hidden;
}

.ai-image-preview[hidden] {
    display: none;
}

.ai-image-preview {
    align-items: center;
    background: rgba(16, 24, 40, .82);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 9999;
}

.ai-image-preview__dialog {
    max-height: 92vh;
    max-width: min(1120px, 96vw);
    position: relative;
}

.ai-image-preview__dialog img {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
    display: block;
    max-height: 88vh;
    max-width: 100%;
    object-fit: contain;
}

.ai-image-preview__close {
    align-items: center;
    background: #ffffff;
    border: 0;
    border-radius: 50%;
    color: #101828;
    cursor: pointer;
    display: flex;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: -12px;
    top: -12px;
    width: 38px;
    z-index: 1;
}

.ai-retry-modal[hidden] {
    display: none;
}

.ai-retry-modal {
    align-items: center;
    background: rgba(16, 24, 40, .48);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 10000;
}

.ai-retry-modal__dialog {
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(16, 24, 40, .22);
    max-width: 420px;
    padding: 18px;
    position: relative;
    width: min(420px, 96vw);
}

.ai-retry-modal__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #98a2b3;
    cursor: pointer;
    display: flex;
    height: 32px;
    justify-content: center;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 32px;
}

.ai-retry-modal__dialog h3 {
    color: #101828;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 36px 6px 0;
}

.ai-retry-modal__desc {
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 14px;
}

.ai-retry-modal__dialog label {
    color: #344054;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
}

.ai-retry-modal__dialog textarea {
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    color: #101828;
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
    min-height: 92px;
    padding: 10px 12px;
    resize: vertical;
    width: 100%;
}

.ai-retry-modal__dialog textarea:focus {
    border-color: #155eef;
    box-shadow: 0 0 0 3px rgba(21, 94, 239, .12);
    outline: 0;
}

.ai-retry-modal__cost {
    align-items: center;
    color: #344054;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    margin: 14px 0;
}

.ai-retry-modal__cost strong {
    align-items: center;
    color: #101828;
    display: inline-flex;
    gap: 5px;
}

.ai-retry-modal__cost i {
    color: #f59e0b;
}

.ai-retry-modal__actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

.ai-retry-modal__actions button {
    align-items: center;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
}

.ai-retry-modal__cancel {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    color: #344054;
}

.ai-retry-modal__submit {
    background: #155eef;
    border: 1px solid #155eef;
    color: #ffffff;
}

.ai-xu-modal[hidden] {
    display: none;
}

.ai-xu-modal {
    align-items: center;
    background: rgba(16, 24, 40, .56);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 10001;
}

.ai-xu-modal__dialog {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(16, 24, 40, .24);
    max-width: 430px;
    padding: 24px;
    position: relative;
    width: min(430px, 96vw);
}

.ai-xu-modal__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #98a2b3;
    cursor: pointer;
    display: flex;
    height: 32px;
    justify-content: center;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 32px;
}

.ai-xu-modal__icon {
    align-items: center;
    background: #fffaeb;
    border-radius: 50%;
    color: #dc6803;
    display: flex;
    font-size: 20px;
    height: 48px;
    justify-content: center;
    margin-bottom: 14px;
    width: 48px;
}

.ai-xu-modal__eyebrow {
    color: #b54708;
    display: block;
    font-size: 11px;
    font-weight: 850;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.ai-xu-modal__dialog h3 {
    color: #101828;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 36px 7px 0;
}

.ai-xu-modal__desc {
    color: #475467;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    margin: 0 0 16px;
}

.ai-xu-modal__balances {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 10px;
}

.ai-xu-modal__balances div {
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    display: grid;
    gap: 3px;
    padding: 11px 12px;
}

.ai-xu-modal__balances span {
    color: #667085;
    font-size: 11px;
    font-weight: 750;
}

.ai-xu-modal__balances strong {
    color: #101828;
    font-size: 14px;
}

.ai-xu-modal__missing {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 11px 12px;
}

.ai-xu-modal__missing span {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.ai-xu-modal__missing strong {
    color: #c2410c;
}

.ai-xu-modal__actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1.35fr;
}

.ai-xu-modal__actions button,
.ai-xu-modal__actions a,
.ai-xu-modal__actions button {
    align-items: center;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    text-decoration: none;
}

.ai-xu-modal__cancel {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    color: #344054;
}

.ai-xu-modal__buy {
    background: #155eef;
    border: 1px solid #155eef;
    color: #ffffff;
}

.ai-guest-payment-modal .ai-xu-modal__icon {
    background: #edf4ff;
    color: #155eef;
}

.ai-guest-payment-modal__package {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin: 16px 0 10px;
    padding: 14px;
}

.ai-guest-payment-modal__package span {
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

.ai-guest-payment-modal__package strong {
    color: #155eef;
    font-size: 21px;
    font-weight: 800;
}

.ai-guest-payment-modal__login-note {
    align-items: center;
    background: #eff8ff;
    border-radius: 8px;
    color: #175cd3;
    display: flex;
    font-size: 12px;
    gap: 9px;
    margin-bottom: 16px;
    padding: 11px 12px;
}

.ai-guest-payment-modal__login-note i {
    font-size: 16px;
}

.ai-guest-payment-modal__login {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    justify-content: center;
}

.ai-template-generated__hint {
    background: #eef4ff;
    border: 1px dashed #b2ccff;
    border-radius: 8px;
    color: #155eef;
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    margin: 2px 0 4px;
    min-height: 52px;
    padding: 16px;
    position: static;
    text-align: center;
    width: 100%;
}

.ai-template-generated__hint::after {
    display: none;
}

.ai-template-generated__grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-history-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin-top: 16px;
}

.ai-history-pagination[hidden] {
    display: none;
}

.ai-history-pagination button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    color: #344054;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    justify-content: center;
    min-height: 34px;
    min-width: 34px;
    padding: 0 10px;
}

.ai-history-pagination button:hover,
.ai-history-pagination button.is-active {
    background: #eef4ff;
    border-color: #155eef;
    color: #155eef;
}

.ai-history-pagination button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.ai-history-pagination > span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    padding: 0 4px;
}

.ai-template-generated-card {
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ai-template-generated-card:hover {
    border-color: #98a2b3;
}

.ai-template-generated-card:focus-visible {
    border-color: #155eef;
    box-shadow: 0 0 0 3px rgba(21, 94, 239, .16);
    outline: 0;
}

.ai-template-generated-card.is-saved {
    border-color: #12b76a;
}

.ai-template-generated-card.is-selected {
    border-color: #155eef;
    box-shadow: 0 0 0 3px rgba(21, 94, 239, .16);
    transform: translateY(-2px);
}

.ai-template-generated-card.is-selected .ai-template-generated-card__badge {
    background: #155eef;
    color: #ffffff;
}

.ai-template-generated-card.is-regenerating {
    border-color: #155eef;
    box-shadow: 0 0 0 2px rgba(21, 94, 239, .18);
}

.ai-template-generated-card.is-regenerating img {
    filter: brightness(.55);
}

.ai-template-generated-card.is-regenerating::after {
    align-items: center;
    background: rgba(16, 24, 40, .48);
    color: #ffffff;
    content: "Đang tạo lại...";
    display: flex;
    font-size: 13px;
    font-weight: 800;
    inset: 0 0 48px;
    justify-content: center;
    position: absolute;
    z-index: 3;
}

.ai-template-generated-card__image {
    display: block;
    overflow: hidden;
    position: relative;
}

.ai-template-generated-card img {
    aspect-ratio: 16 / 11;
    display: block;
    object-fit: cover;
    width: 100%;
}

.ai-template-generated-card__preview {
    align-items: center;
    background: rgba(16, 24, 40, .72);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    height: 30px;
    justify-content: center;
    position: absolute;
    right: 8px;
    top: 8px;
    transition: background .16s ease, transform .16s ease;
    width: 30px;
    z-index: 4;
}

.ai-template-generated-card__preview:hover,
.ai-template-generated-card__preview:focus-visible {
    background: #155eef;
    outline: none;
    transform: translateY(-1px);
}

.ai-template-generated-card--ratio-square img,
.online-editor__canvas img.ai-template-generated-card--ratio-square {
    aspect-ratio: 1 / 1;
}

.ai-template-generated-card--ratio-portrait img,
.online-editor__canvas img.ai-template-generated-card--ratio-portrait {
    aspect-ratio: 4 / 5;
}

.ai-template-generated-card--ratio-tall img,
.online-editor__canvas img.ai-template-generated-card--ratio-tall {
    aspect-ratio: 9 / 16;
}

.ai-template-generated-card--ratio-landscape img,
.online-editor__canvas img.ai-template-generated-card--ratio-landscape {
    aspect-ratio: 16 / 9;
}

.ai-template-generated-card--ratio-memorial-13x18 img,
.online-editor__canvas img.ai-template-generated-card--ratio-memorial-13x18 {
    aspect-ratio: 13 / 18;
}

.ai-template-generated-card--ratio-memorial-15x20 img,
.online-editor__canvas img.ai-template-generated-card--ratio-memorial-15x20 {
    aspect-ratio: 15 / 20;
}

.ai-template-generated-card--ratio-memorial-20x30 img,
.online-editor__canvas img.ai-template-generated-card--ratio-memorial-20x30 {
    aspect-ratio: 20 / 30;
}

.ai-template-generated-card--ratio-memorial-25x35 img,
.online-editor__canvas img.ai-template-generated-card--ratio-memorial-25x35 {
    aspect-ratio: 25 / 35;
}

.ai-template-generated-card--ratio-memorial-30x40 img,
.online-editor__canvas img.ai-template-generated-card--ratio-memorial-30x40 {
    aspect-ratio: 30 / 40;
}

.ai-template-tool--memorial .ai-template-generated-card img,
.ai-template-tool--memorial .online-editor__canvas img {
    background: #f8fafc;
    object-fit: contain;
}

.ai-template-generated-card__badge {
    background: #ffffff;
    border-radius: 999px;
    color: #101828;
    font-size: 11px;
    font-weight: 800;
    left: 10px;
    padding: 5px 9px;
    position: absolute;
    top: 10px;
    z-index: 2;
}

.ai-template-generated-card.is-saved .ai-template-generated-card__badge {
    background: #ecfdf3;
    color: #027a48;
}

.ai-template-generated-card.is-saved .ai-template-generated-card__check {
    background: #12b76a;
}

.ai-template-generated-card__check {
    align-items: center;
    background: #155eef;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    font-size: 12px;
    height: 24px;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 24px;
    z-index: 2;
}

.ai-template-generated-card div {
    border-top: 1px solid #edf2f7;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
}

.ai-template-generated-card__image {
    border-top: 0 !important;
    grid-template-columns: none !important;
    padding: 0 !important;
}

.ai-template-generated-card a,
.ai-template-generated-card button {
    align-items: center;
    background: #ffffff;
    border: 0;
    color: #344054;
    display: inline-flex;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    gap: 4px;
    justify-content: center;
    min-height: 34px;
    padding: 0 8px;
    text-decoration: none;
    white-space: nowrap;
}

.ai-template-generated-card__preview-link {
    display: none !important;
}

@keyframes ai-template-spin {
    to {
        transform: rotate(360deg);
    }
}

.ai-template-result-grid img {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

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

.ai-template-related__grid a {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    color: #101828;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 0;
    padding: 10px;
    text-decoration: none;
}

.ai-template-related img {
    aspect-ratio: 16 / 11;
    background: #f8fafc;
    border-radius: 6px;
    object-fit: contain;
    width: 100%;
}

.ai-template-related__meta {
    align-items: center;
    display: grid;
    gap: 5px;
    justify-items: center;
    text-align: center;
}

.ai-template-related span {
    color: #101828;
    display: -webkit-box;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.32;
    overflow: hidden;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ai-template-related small {
    align-items: center;
    justify-self: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #b45309;
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    margin-top: 0;
    min-height: 24px;
    padding: 5px 9px;
    white-space: nowrap;
}

.ai-template-related__more {
    align-items: center;
    background: #eef4ff;
    border: 1px solid #b2ccff;
    border-radius: 8px;
    color: #155eef;
    display: inline-flex;
    font-size: 13px;
    font-weight: 850;
    gap: 8px;
    justify-content: center;
    margin: 14px auto 0;
    min-height: 40px;
    padding: 0 16px;
    text-decoration: none;
    width: fit-content;
}

.ai-template-related__more:hover {
    background: #dbeafe;
    color: #004eeb;
}

.ai-template-related__more--mobile-only {
    display: none;
}

.ai-template-tool__side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 82px;
}

.ai-template-form,
.ai-template-output,
.ai-template-why {
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, .05);
}

.ai-template-form {
    display: grid;
    gap: 15px;
    padding: 18px;
}

.ai-template-hidden-select {
    display: none;
}

.ai-template-provider,
.ai-template-form__xu {
    align-items: center;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #dbe7ff;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 14px;
}

.ai-template-provider {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    justify-content: flex-start;
}

.ai-template-provider span,
.ai-template-form__xu span,
.ai-template-form__xu a {
    color: #101828;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.ai-template-provider small {
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.ai-template-no-upload-note {
    background: #f8fbff;
    border: 1px solid #dbe7ff;
    border-radius: 8px;
    display: grid;
    gap: 5px;
    padding: 12px 14px;
}

.ai-template-no-upload-note span {
    color: #101828;
    font-size: 13px;
    font-weight: 800;
}

.ai-template-no-upload-note small {
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.ai-template-form__field {
    display: grid;
    gap: 8px;
}

.ai-template-form__field > label {
    color: #101828;
    font-size: 14px;
    font-weight: 800;
}

.ai-template-form__field > label span {
    color: #667085;
    font-weight: 600;
}

.ai-template-dropzone {
    align-items: center;
    background: #fbfdff;
    border-color: #b8ccff;
    cursor: pointer;
    display: grid;
    gap: 6px;
    justify-items: center;
    min-height: 142px;
    padding: 20px;
    text-align: center;
}

.ai-template-dropzone input {
    display: none;
}

.ai-template-dropzone.is-invalid {
    background: #fff5f5;
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .1);
}

.ai-template-dropzone i {
    color: #155eef;
    font-size: 32px;
}

.ai-template-dropzone strong {
    color: #344054;
    font-size: 14px;
}

.ai-template-dropzone span {
    color: #667085;
    font-size: 12px;
}

.ai-template-form textarea {
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    color: #101828;
    font: inherit;
    font-size: 13px;
    line-height: 1.55;
    min-height: 92px;
    padding: 12px;
    resize: vertical;
}

.ai-template-form textarea:focus {
    border-color: #155eef;
    box-shadow: 0 0 0 3px rgba(21, 94, 239, .12);
    outline: none;
}

.ai-template-form__hint {
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

.ai-template-form__hint span {
    color: #344054;
    font-weight: 800;
}

.ai-template-form__hint span.is-warning {
    color: #dc2626;
}

.ai-template-style-grid,
.ai-template-ratio-grid {
    display: grid;
    gap: 8px;
}

.ai-template-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-template-ratio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-template-style-grid input,
.ai-template-ratio-grid input {
    position: absolute;
    opacity: 0;
}

.ai-template-style-grid span,
.ai-template-ratio-grid span {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 6px;
    color: #344054;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    min-height: 36px;
    padding: 0 8px;
}

.ai-template-style-grid input:checked + span,
.ai-template-ratio-grid input:checked + span {
    background: #eef4ff;
    border-color: #155eef;
    color: #155eef;
    font-weight: 800;
}

.ai-template-form__row {
    display: grid;
    gap: 14px;
    grid-template-columns: 1.2fr .8fr;
}

.ai-template-submit {
    background: #155eef;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(21, 94, 239, .18);
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    min-height: 52px;
    width: 100%;
}

.ai-template-submit:hover {
    background: #004eeb;
}

.ai-template-submit:focus-visible {
    box-shadow: 0 0 0 3px rgba(21, 94, 239, .18), 0 12px 24px rgba(21, 94, 239, .18);
    outline: 0;
}

.ai-template-secure,
.ai-template-form .online-editor__status {
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.ai-template-secure i {
    color: #667085;
    margin-right: 5px;
}

.online-editor__download {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    color: #155eef;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    text-decoration: none;
}

.online-editor__thumbs {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.online-editor__thumb {
    aspect-ratio: 1;
    background: #eef2f7;
    border-radius: 8px;
    overflow: hidden;
}

.online-editor__thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.online-editor__status.is-error {
    color: #b42318;
}

.ai-template-form textarea.is-invalid {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .12);
}

.ai-template-form .online-editor__field-error {
    color: #b42318;
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
    margin-top: 6px;
}

.online-editor__status.is-success {
    color: #067647;
}

.ai-template-output {
    padding: 16px;
}

.ai-template-output--compact,
.ai-template-output--compact.is-visible {
    display: none !important;
}

.ai-template-output__head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ai-template-output__canvas {
    align-items: center;
    background:
        linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
        linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-color: #ffffff;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 300px;
    overflow: hidden;
}

.online-editor__canvas img {
    display: block;
    max-height: 560px;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.online-editor__empty {
    align-items: center;
    color: #667085;
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 24px;
    text-align: center;
}

.online-editor__empty i {
    font-size: 42px;
}

.online-editor.is-loading .online-editor__submit,
.online-editor__submit:disabled,
.online-editor__submit.is-busy {
    background: #667085;
    border-color: #667085;
    cursor: wait;
    opacity: .92;
    pointer-events: none;
}

.ai-template-why {
    padding: 16px;
}

.ai-template-why > div {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-template-why span {
    align-items: center;
    display: grid;
    gap: 5px;
    justify-items: center;
    text-align: center;
}

.ai-template-why i {
    align-items: center;
    background: #eef4ff;
    border-radius: 50%;
    color: #155eef;
    display: flex;
    font-size: 20px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.ai-template-why b {
    color: #101828;
    font-size: 12px;
    font-weight: 800;
}

.ai-template-why small {
    color: #667085;
    font-size: 11px;
    line-height: 1.35;
}

.ai-template-tool--wedding {
    font-family: inherit;
    padding-top: 18px;
}

.ai-template-tool--wedding,
.ai-template-tool--wedding button,
.ai-template-tool--wedding textarea,
.ai-template-tool--wedding input {
    letter-spacing: 0;
}

.ai-template-tool--wedding .container {
    max-width: 1440px;
}

.ai-template-tool--wedding .ai-template-tool__layout {
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 470px);
}

.ai-template-tool--wedding .ai-template-tool__main {
    align-items: start;
    gap: 18px 26px;
    grid-template-columns: minmax(480px, .96fr) minmax(350px, .9fr);
}

.ai-template-showcase--wedding {
    border-radius: 8px;
    min-height: 360px;
    overflow: hidden;
    position: relative;
}

.ai-template-wedding-collage {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: 360px;
}

.ai-template-wedding-collage img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ai-template-showcase--wedding > button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .12);
    color: #344054;
    display: flex;
    height: 38px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    z-index: 2;
}

.ai-template-showcase--wedding > button:first-child {
    left: 14px;
}

.ai-template-showcase--wedding > button:nth-child(3) {
    right: 14px;
}

.ai-template-showcase__thumbs--floating {
    bottom: 16px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 8px;
    display: flex;
    gap: 8px;
    left: 50%;
    max-width: min(520px, calc(100% - 96px));
    overflow-x: auto;
    padding: 6px;
    position: absolute;
    transform: translateX(-50%);
    z-index: 3;
}

.ai-template-showcase__thumbs--floating img {
    aspect-ratio: 1;
    background: #ffffff;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(16, 24, 40, .18);
    flex: 0 0 62px;
    height: 62px;
    min-width: 62px;
    object-fit: cover;
    width: 62px;
}

.ai-template-tool--wedding .ai-template-info {
    padding-top: 18px;
}

.ai-template-tool--wedding .ai-template-info__title {
    align-items: center;
    gap: 12px;
}

.ai-template-tool--wedding .ai-template-info h1 {
    color: #101828;
    font-size: 30px;
    font-weight: 760;
    max-width: 460px;
}

.ai-template-tool--wedding .ai-template-info__title span {
    background: #fee4e2;
    color: #d92d20;
}

.ai-template-tool--wedding .ai-template-info > p {
    color: #1f2a44;
    font-size: 15px;
    line-height: 1.62;
    max-width: 430px;
}

.ai-template-tool--wedding .ai-template-price {
    align-items: center;
    background: #f8fbff;
    border-color: #b8ccff;
    gap: 8px;
    grid-template-columns: auto auto auto minmax(0, 1fr);
    max-width: 300px;
    min-height: 62px;
    padding: 10px 14px;
}

.ai-template-tool--wedding .ai-template-price i {
    font-size: 34px;
}

.ai-template-tool--wedding .ai-template-price strong {
    color: #155eef;
    font-size: 32px;
    line-height: 1;
}

.ai-template-tool--wedding .ai-template-price span {
    color: #101828;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.ai-template-tool--wedding .ai-template-price small {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    justify-self: end;
    line-height: 1.25;
    max-width: 96px;
    text-align: right;
}

.ai-template-tool--wedding .ai-template-benefits {
    background: transparent;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 390px;
}

.ai-template-tool--wedding .ai-template-benefits div {
    background: transparent;
    border: 0;
    display: grid;
    justify-items: center;
    min-height: 74px;
    padding: 0;
    text-align: center;
}

.ai-template-tool--wedding .ai-template-benefits i {
    align-items: center;
    background: #eef4ff;
    border-radius: 50%;
    display: flex;
    font-size: 22px;
    height: 40px;
    justify-content: center;
    margin-bottom: 2px;
    width: 40px;
}

.ai-template-tool--wedding .ai-template-benefits b {
    color: #101828;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.ai-template-tool--wedding .ai-template-benefits span {
    color: #667085;
    font-size: 11px;
    line-height: 1.3;
}

.ai-template-tool--wedding .ai-template-flow {
    margin: 0 auto;
    max-width: 700px;
    padding: 14px 18px;
}

.ai-template-tool--wedding .ai-template-provider,
.ai-template-tool--wedding .ai-template-form__xu {
    display: none;
}

.ai-template-tool--wedding .ai-template-form {
    gap: 14px;
    padding: 18px;
}

.ai-template-tool--wedding .ai-template-form__field > label {
    color: #101828;
    font-size: 14px;
    font-weight: 700;
}

.ai-template-tool--wedding .ai-template-form__field > label span {
    color: #667085;
    font-weight: 600;
}

.ai-template-upload-pair {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-template-form__field--wide-upload .ai-template-dropzone {
    min-height: 164px;
}

.ai-template-tool--wedding .ai-template-dropzone {
    border: 1px dashed #98b7ff;
    min-height: 150px;
    padding: 18px 12px;
}

.ai-template-tool--wedding .ai-template-dropzone i {
    color: #344054;
    font-size: 30px;
}

.ai-template-tool--wedding .ai-template-dropzone strong {
    color: #101828;
    font-size: 13px;
    font-weight: 700;
}

.ai-template-tool--wedding .ai-template-dropzone span,
.ai-template-tool--wedding .ai-template-dropzone small {
    color: #344054;
    font-size: 12px;
    line-height: 1.45;
}

.ai-template-tool--wedding .ai-template-dropzone small {
    display: block;
}

.ai-template-tool--wedding .ai-template-dropzone span b {
    align-items: center;
    background: #155eef;
    border-radius: 6px;
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    min-height: 32px;
    padding: 0 14px;
}

.ai-template-tool--wedding .ai-template-form__row {
    grid-template-columns: 1fr;
}

.ai-template-tool--wedding .ai-template-ratio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-template-package-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-template-package-head {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.ai-template-package-head > label {
    color: #101828;
    font-size: 14px;
    font-weight: 720;
}

.ai-template-package-grid label {
    align-content: center;
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 6px;
    min-height: 84px;
    padding: 10px 8px;
    position: relative;
    text-align: center;
}

.ai-template-package-check {
    display: none;
}

.ai-template-package-grid input {
    position: absolute;
    opacity: 0;
}

.ai-template-package-grid label.is-active,
.ai-template-package-grid label:has(input:checked) {
    border-color: #155eef;
    box-shadow: 0 0 0 2px rgba(21, 94, 239, .12);
}

.ai-template-package-grid em {
    align-self: start;
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    justify-self: center;
    margin-top: -18px;
    padding: 4px 8px;
}

.ai-template-package-grid label:nth-child(2) em {
    background: #12b76a;
}

.ai-template-package-grid label:nth-child(3) em {
    background: #f04438;
}

.ai-template-package-grid label:nth-child(4) em {
    background: #f79009;
}

.ai-template-package-grid strong {
    color: #101828;
    font-size: 14px;
    font-weight: 700;
}

.ai-template-package-grid span {
    color: #155eef;
    font-size: 13px;
    font-weight: 800;
}

.ai-template-package-grid del,
.ai-template-package-grid small {
    display: none;
}

.ai-template-tool--wedding .ai-template-submit {
    font-size: 18px;
    font-weight: 700;
    min-height: 58px;
}

.ai-template-tool--wedding .ai-template-output--compact {
    display: none;
}

.ai-template-tool--wedding .ai-template-output--compact.is-visible {
    display: block;
}

.ai-template-tool--wedding .ai-template-why {
    padding: 18px;
}

.ai-template-tool--wedding .ai-template-why h2 {
    color: #155eef;
    font-size: 18px;
    font-weight: 720;
}

.ai-template-tool--wedding .ai-template-why i {
    background: #eef4ff;
    font-size: 30px;
    height: 52px;
    width: 52px;
}

.ai-template-tool--wedding .ai-template-result-grid article {
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    overflow: hidden;
}

.ai-template-tool--wedding .ai-template-result-grid img {
    border-radius: 0;
}

.ai-template-tool--wedding .ai-template-result-grid h3 {
    color: #101828;
    font-size: 14px;
    font-weight: 700;
    margin: 8px 10px;
    text-align: center;
}

.ai-template-tool--wedding .ai-template-section__head h2,
.ai-template-tool--wedding .ai-template-related h2 {
    color: #101828;
    font-size: 22px;
    font-weight: 720;
}

.ai-template-tool--wedding .ai-template-section__head p {
    color: #344054;
}

.ai-template-tool--wedding .ai-template-result-grid article div {
    border-top: 1px solid #edf2f7;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-template-tool--wedding .ai-template-result-grid button {
    background: #ffffff;
    border: 0;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
    min-height: 34px;
}

.ai-template-tool--baby {
    font-family: inherit;
    padding-top: 18px;
}

.ai-template-tool--baby,
.ai-template-tool--baby button,
.ai-template-tool--baby textarea,
.ai-template-tool--baby input {
    letter-spacing: 0;
}

.ai-template-tool--baby .container {
    max-width: 1440px;
}

.ai-template-tool--baby .ai-template-tool__layout {
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 470px);
}

.ai-template-tool--baby .ai-template-tool__main {
    align-items: start;
    gap: 18px 28px;
    grid-template-columns: minmax(480px, .96fr) minmax(340px, .9fr);
}

.ai-template-tool--baby .ai-template-showcase {
    gap: 12px;
}

.ai-template-tool--baby .ai-template-showcase__main {
    aspect-ratio: 16 / 10.25;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, .08);
}

.ai-template-tool--baby .ai-template-showcase__thumbs {
    gap: 9px;
}

.ai-template-tool--baby .ai-template-showcase__thumbs img {
    aspect-ratio: 16 / 10;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #dce6f5;
}

.ai-template-tool--baby .ai-template-showcase__thumbs img.is-active {
    border-color: #155eef;
    box-shadow: 0 0 0 2px rgba(21, 94, 239, .18);
}

.ai-template-tool--baby .ai-template-info {
    padding-top: 18px;
}

.ai-template-tool--baby .ai-template-info__title {
    gap: 12px;
}

.ai-template-tool--baby .ai-template-info h1 {
    color: #101828;
    font-size: 34px;
    font-weight: 760;
    line-height: 1.16;
}

.ai-template-tool--baby .ai-template-info__title span {
    background: #fff1f3;
    color: #e31b54;
}

.ai-template-tool--baby .ai-template-info > p {
    color: #1f2a44;
    font-size: 15px;
    line-height: 1.72;
    max-width: 520px;
}

.ai-template-tool--baby .ai-template-price {
    align-items: center;
    background: #ffffff;
    border-color: #d6e4ff;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .04);
    gap: 9px;
    grid-template-columns: auto auto auto minmax(0, 1fr);
    max-width: 385px;
    min-height: 64px;
    padding: 10px 14px;
}

.ai-template-tool--baby .ai-template-price i {
    color: #f79009;
    font-size: 32px;
}

.ai-template-tool--baby .ai-template-price strong {
    color: #f04438;
    font-size: 32px;
    line-height: 1;
}

.ai-template-tool--baby .ai-template-price span {
    color: #101828;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.ai-template-tool--baby .ai-template-price small {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    justify-self: end;
    text-align: right;
}

.ai-template-tool--baby .ai-template-benefits {
    gap: 10px;
    max-width: 470px;
}

.ai-template-tool--baby .ai-template-benefits div {
    gap: 3px 7px;
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 56px;
    padding: 9px;
}

.ai-template-tool--baby .ai-template-benefits i {
    color: #155eef;
    font-size: 16px;
}

.ai-template-tool--baby .ai-template-benefits b {
    font-size: 11px;
    font-weight: 720;
    line-height: 1.22;
}

.ai-template-tool--baby .ai-template-benefits span {
    font-size: 10px;
    line-height: 1.3;
}

.ai-template-tool--baby .ai-template-flow {
    margin-top: 0;
    padding: 14px 18px;
}

.ai-template-tool--baby .ai-template-provider,
.ai-template-tool--baby .ai-template-form__xu {
    display: none;
}

.ai-template-tool--baby .ai-template-form {
    gap: 14px;
    padding: 18px;
}

.ai-template-tool--baby .ai-template-form__field > label {
    color: #101828;
    font-size: 14px;
    font-weight: 720;
}

.ai-template-tool--baby .ai-template-dropzone {
    align-items: center;
    border: 1px dashed #98b7ff;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    justify-items: center;
    min-height: 138px;
    padding: 16px 18px;
    text-align: left;
}

.ai-template-tool--baby .ai-template-dropzone i {
    align-items: center;
    background: linear-gradient(145deg, #dbe7ff, #f3f7ff);
    border-radius: 8px;
    color: #155eef;
    display: flex;
    font-size: 44px;
    height: 82px;
    justify-content: center;
    width: 82px;
}

.ai-template-tool--baby .ai-template-dropzone strong,
.ai-template-tool--baby .ai-template-dropzone span,
.ai-template-tool--baby .ai-template-dropzone small {
    grid-column: 2;
    justify-self: start;
}

.ai-template-tool--baby .ai-template-dropzone strong {
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.ai-template-tool--baby .ai-template-dropzone span {
    color: #344054;
    font-size: 13px;
}

.ai-template-tool--baby .ai-template-dropzone span b {
    align-items: center;
    background: #155eef;
    border-radius: 6px;
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    min-height: 32px;
    padding: 0 14px;
}

.ai-template-tool--baby .ai-template-dropzone small {
    color: #667085;
    font-size: 12px;
}

.ai-template-tool--baby .ai-template-form__row {
    grid-template-columns: 1fr;
}

.ai-template-tool--baby .ai-template-ratio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-template-package-note {
    background: #fff7ed;
    border-radius: 6px;
    color: #b54708;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    padding: 5px 9px;
    text-align: center;
}

.ai-template-tool--baby .ai-template-package-field {
    gap: 10px;
}

.ai-template-tool--baby .ai-template-package-grid {
    gap: 8px;
}

.ai-template-tool--baby .ai-template-package-grid label {
    align-content: center;
    border-color: #d7e2f3;
    gap: 5px;
    min-height: 126px;
    overflow: visible;
    padding: 16px 7px 10px;
}

.ai-template-tool--baby .ai-template-package-grid label.is-active,
.ai-template-tool--baby .ai-template-package-grid label:has(input:checked) {
    border-color: #155eef;
    box-shadow: inset 0 0 0 1px #155eef, 0 0 0 2px rgba(21, 94, 239, .1);
}

.ai-template-tool--baby .ai-template-package-check {
    align-items: center;
    background: #155eef;
    border-radius: 50%;
    color: #ffffff;
    display: none;
    font-size: 9px;
    height: 16px;
    justify-content: center;
    position: absolute;
    right: 7px;
    top: 7px;
    width: 16px;
}

.ai-template-tool--baby .ai-template-package-grid label.is-active .ai-template-package-check,
.ai-template-tool--baby .ai-template-package-grid label:has(input:checked) .ai-template-package-check {
    display: flex;
}

.ai-template-tool--baby .ai-template-package-grid em {
    font-size: 11px;
    line-height: 1;
    margin: -27px auto 3px;
    padding: 5px 9px;
    white-space: nowrap;
}

.ai-template-tool--baby .ai-template-package-grid strong {
    color: #101828;
    font-size: 15px;
    font-weight: 760;
    line-height: 1.25;
}

.ai-template-tool--baby .ai-template-package-price {
    align-items: center;
    color: #155eef;
    display: inline-flex;
    font-size: 13px;
    font-weight: 820;
    gap: 5px;
    justify-content: center;
}

.ai-template-tool--baby .ai-template-package-price i {
    color: #f79009;
    font-size: 13px;
}

.ai-template-tool--baby .ai-template-package-grid del {
    color: #98a2b3;
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ai-template-tool--baby .ai-template-package-grid small {
    align-self: end;
    background: #eef4ff;
    border-radius: 6px;
    color: #155eef;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    margin-top: 1px;
    padding: 4px 4px;
    white-space: nowrap;
}

.ai-template-tool--wedding .ai-template-package-field {
    gap: 10px;
}

.ai-template-tool--wedding .ai-template-package-grid {
    gap: 8px;
}

.ai-template-tool--wedding .ai-template-package-grid label {
    align-content: center;
    border-color: #d7e2f3;
    gap: 5px;
    min-height: 126px;
    overflow: visible;
    padding: 16px 7px 10px;
}

.ai-template-tool--wedding .ai-template-package-grid label.is-active,
.ai-template-tool--wedding .ai-template-package-grid label:has(input:checked) {
    border-color: #155eef;
    box-shadow: inset 0 0 0 1px #155eef, 0 0 0 2px rgba(21, 94, 239, .1);
}

.ai-template-tool--wedding .ai-template-package-check {
    align-items: center;
    background: #155eef;
    border-radius: 50%;
    color: #ffffff;
    display: none;
    font-size: 9px;
    height: 16px;
    justify-content: center;
    position: absolute;
    right: 7px;
    top: 7px;
    width: 16px;
}

.ai-template-tool--wedding .ai-template-package-grid label.is-active .ai-template-package-check,
.ai-template-tool--wedding .ai-template-package-grid label:has(input:checked) .ai-template-package-check {
    display: flex;
}

.ai-template-tool--wedding .ai-template-package-grid em {
    font-size: 11px;
    line-height: 1;
    margin: -27px auto 3px;
    padding: 5px 9px;
    white-space: nowrap;
}

.ai-template-tool--wedding .ai-template-package-grid strong {
    color: #101828;
    font-size: 15px;
    font-weight: 760;
    line-height: 1.25;
}

.ai-template-tool--wedding .ai-template-package-price {
    align-items: center;
    color: #155eef;
    display: inline-flex;
    font-size: 13px;
    font-weight: 820;
    gap: 5px;
    justify-content: center;
}

.ai-template-tool--wedding .ai-template-package-price i {
    color: #f79009;
    font-size: 13px;
}

.ai-template-tool--wedding .ai-template-package-grid del {
    color: #98a2b3;
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ai-template-tool--wedding .ai-template-package-grid small {
    align-self: end;
    background: #eef4ff;
    border-radius: 6px;
    color: #155eef;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    margin-top: 1px;
    padding: 4px 4px;
    white-space: nowrap;
}

.ai-template-tool--baby .ai-template-submit {
    font-size: 17px;
    font-weight: 720;
    min-height: 56px;
}

.ai-template-tool--baby .ai-template-output--compact {
    display: none;
}

.ai-template-tool--baby .ai-template-output--compact.is-visible {
    display: block;
}

.ai-template-tool--baby .ai-template-why {
    padding: 18px;
}

.ai-template-tool--baby .ai-template-why h2 {
    color: #155eef;
    font-size: 18px;
    font-weight: 720;
}

.ai-template-tool--baby .ai-template-why i {
    background: #eef4ff;
    font-size: 28px;
    height: 52px;
    width: 52px;
}

.ai-template-tool--baby .ai-template-result-grid article {
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    overflow: hidden;
}

.ai-template-tool--baby .ai-template-result-grid img {
    border-radius: 0;
}

.ai-template-tool--baby .ai-template-result-grid h3 {
    color: #101828;
    font-size: 14px;
    font-weight: 700;
    margin: 8px 10px;
    text-align: center;
}

.ai-template-tool--baby .ai-template-result-grid article div {
    border-top: 1px solid #edf2f7;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-template-tool--baby .ai-template-result-grid button {
    background: #ffffff;
    border: 0;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
    min-height: 34px;
}

.ai-template-tool--memorial .ai-template-tool__main {
    grid-template-columns: minmax(280px, .46fr) minmax(0, .54fr);
}

.ai-template-tool--memorial .ai-template-showcase {
    justify-items: center;
}

.ai-template-tool--memorial .ai-template-showcase__main {
    aspect-ratio: 3 / 4;
    box-shadow: 0 16px 36px rgba(16, 24, 40, .12);
    max-height: 680px;
    max-width: min(100%, 520px);
}

.ai-template-tool--memorial .ai-template-showcase__thumbs {
    justify-content: center;
    max-width: min(100%, 520px);
    width: 100%;
}

.ai-template-tool--memorial .ai-template-showcase__thumbs img {
    aspect-ratio: 3 / 4;
    flex-basis: clamp(76px, calc((100% - 30px) / 4), 112px);
    min-width: 76px;
    width: clamp(76px, calc((100% - 30px) / 4), 112px);
}

.ai-template-tool--memorial .ai-template-ratio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-template-tool--memorial .ai-template-ratio-grid label.is-recommended {
    grid-column: 1 / -1;
}

.ai-template-tool--memorial .ai-template-ratio-grid span {
    flex-direction: column;
    gap: 3px;
    min-height: 48px;
}

.ai-template-tool--memorial .ai-template-ratio-grid small {
    background: #155eef;
    border-radius: 999px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    padding: 4px 8px;
}

.ai-template-tool--memorial .ai-template-ratio-grid input:checked + span small {
    background: #ffffff;
    color: #155eef;
}

.ai-template-tool--memorial .ai-template-generated__grid {
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(118px, 148px));
    justify-content: start;
}

.ai-template-tool--memorial .ai-template-generated-card {
    max-width: 148px;
    width: 100%;
}

.ai-template-tool--memorial .ai-template-output--compact,
.ai-template-tool--memorial .ai-template-output--compact.is-visible {
    display: none !important;
}

.ai-template-tool--memorial .ai-template-form__field > label {
    color: #101828;
    font-size: 14px;
    font-weight: 720;
}

.ai-template-tool--memorial .ai-template-dropzone {
    align-items: center;
    border: 1px dashed #98b7ff;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    justify-items: center;
    min-height: 138px;
    padding: 16px 18px;
    text-align: left;
}

.ai-template-tool--memorial .ai-template-dropzone i {
    align-items: center;
    background: linear-gradient(145deg, #dbe7ff, #f3f7ff);
    border-radius: 8px;
    color: #155eef;
    display: flex;
    font-size: 44px;
    height: 82px;
    justify-content: center;
    width: 82px;
}

.ai-template-tool--memorial .ai-template-dropzone strong,
.ai-template-tool--memorial .ai-template-dropzone span,
.ai-template-tool--memorial .ai-template-dropzone small {
    grid-column: 2;
    justify-self: start;
}

.ai-template-tool--memorial .ai-template-dropzone strong {
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.ai-template-tool--memorial .ai-template-dropzone span {
    color: #344054;
    font-size: 13px;
}

.ai-template-tool--memorial .ai-template-dropzone span b {
    align-items: center;
    background: #155eef;
    border-radius: 6px;
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    min-height: 32px;
    padding: 0 14px;
}

.ai-template-tool--memorial .ai-template-dropzone small {
    color: #667085;
    font-size: 12px;
}

.ai-template-tool--memorial .ai-template-form__row {
    grid-template-columns: 1fr;
}

.ai-template-tool--memorial .ai-template-package-field {
    gap: 10px;
}

.ai-template-tool--memorial .ai-template-package-grid {
    gap: 8px;
}

.ai-template-tool--memorial .ai-template-package-grid label {
    align-content: center;
    border-color: #d7e2f3;
    gap: 5px;
    min-height: 126px;
    overflow: visible;
    padding: 16px 7px 10px;
}

.ai-template-tool--memorial .ai-template-package-grid label.is-active,
.ai-template-tool--memorial .ai-template-package-grid label:has(input:checked) {
    border-color: #155eef;
    box-shadow: inset 0 0 0 1px #155eef, 0 0 0 2px rgba(21, 94, 239, .1);
}

.ai-template-tool--memorial .ai-template-package-check {
    align-items: center;
    background: #155eef;
    border-radius: 50%;
    color: #ffffff;
    display: none;
    font-size: 9px;
    height: 16px;
    justify-content: center;
    position: absolute;
    right: 7px;
    top: 7px;
    width: 16px;
}

.ai-template-tool--memorial .ai-template-package-grid label.is-active .ai-template-package-check,
.ai-template-tool--memorial .ai-template-package-grid label:has(input:checked) .ai-template-package-check {
    display: flex;
}

.ai-template-tool--memorial .ai-template-package-grid em {
    font-size: 11px;
    line-height: 1;
    margin: -27px auto 3px;
    padding: 5px 9px;
    white-space: nowrap;
}

.ai-template-tool--memorial .ai-template-package-grid strong {
    color: #101828;
    font-size: 15px;
    font-weight: 760;
    line-height: 1.25;
}

.ai-template-tool--memorial .ai-template-package-price {
    align-items: center;
    color: #155eef;
    display: inline-flex;
    font-size: 13px;
    font-weight: 820;
    gap: 5px;
    justify-content: center;
}

.ai-template-tool--memorial .ai-template-package-price i {
    color: #f79009;
    font-size: 13px;
}

.ai-template-tool--memorial .ai-template-package-grid del {
    color: #98a2b3;
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ai-template-tool--memorial .ai-template-package-grid small {
    align-self: end;
    background: #eef4ff;
    border-radius: 6px;
    color: #155eef;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    margin-top: 1px;
    padding: 4px 4px;
    white-space: nowrap;
}

.ai-template-tool--memorial .ai-template-result-grid img {
    aspect-ratio: 3 / 4;
}

.ai-template-tool--baby .ai-template-section__head h2,
.ai-template-tool--baby .ai-template-related h2 {
    color: #101828;
    font-size: 22px;
    font-weight: 720;
}

.ai-template-tool--compose {
    font-family: inherit;
    padding-top: 18px;
}

.ai-template-tool--compose,
.ai-template-tool--compose button,
.ai-template-tool--compose textarea,
.ai-template-tool--compose input {
    letter-spacing: 0;
}

.ai-template-tool--compose .container {
    max-width: 1440px;
}

.ai-template-tool--compose.ai-template-tool--no-album .container {
    max-width: 1180px;
}

.ai-template-tool--compose .ai-template-tool__layout {
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
}

.ai-template-tool--compose.ai-template-tool--no-album .ai-template-tool__layout {
    grid-template-columns: minmax(0, 710px) minmax(360px, 420px);
    justify-content: center;
}

.ai-template-tool--compose .ai-template-tool__main {
    align-items: start;
    gap: 18px 28px;
    grid-template-columns: minmax(360px, .96fr) minmax(280px, .9fr);
}

.ai-template-tool--compose.ai-template-tool--no-album .ai-template-tool__main {
    grid-template-columns: 1fr;
}

.ai-template-tool--compose.ai-template-tool--no-album .ai-template-info {
    align-self: start;
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, .05);
    padding: 22px;
}

.ai-template-tool--compose.ai-template-tool--no-album .ai-template-info > p {
    max-width: 720px;
}

.ai-template-tool--compose .ai-template-showcase {
    gap: 12px;
}

.ai-template-tool--compose .ai-template-showcase__main {
    aspect-ratio: 16 / 10.25;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, .08);
}

.ai-template-tool--compose .ai-template-showcase__thumbs {
    gap: 9px;
}

.ai-template-tool--compose .ai-template-showcase__thumbs img {
    aspect-ratio: 16 / 10;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #dce6f5;
}

.ai-template-tool--compose .ai-template-showcase__thumbs img.is-active {
    border-color: #155eef;
    box-shadow: 0 0 0 2px rgba(21, 94, 239, .18);
}

.ai-template-tool--compose .ai-template-info {
    padding-top: 18px;
}

.ai-template-tool--compose .ai-template-info__title {
    gap: 12px;
}

.ai-template-tool--compose .ai-template-info h1 {
    color: #101828;
    font-size: 34px;
    font-weight: 760;
    line-height: 1.16;
}

.ai-template-tool--compose .ai-template-info__title span {
    background: #eef4ff;
    color: #155eef;
}

.ai-template-tool--compose .ai-template-info > p {
    color: #1f2a44;
    font-size: 15px;
    line-height: 1.72;
    max-width: 520px;
}

.ai-template-tool--compose .ai-template-price {
    align-items: center;
    background: #ffffff;
    border-color: #d6e4ff;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .04);
    gap: 9px;
    grid-template-columns: auto auto auto minmax(0, 1fr);
    max-width: 385px;
    min-height: 64px;
    padding: 10px 14px;
}

.ai-template-tool--compose .ai-template-price i {
    color: #f79009;
    font-size: 32px;
}

.ai-template-tool--compose .ai-template-price strong {
    color: #155eef;
    font-size: 32px;
    line-height: 1;
}

.ai-template-tool--compose .ai-template-price span {
    color: #101828;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.ai-template-tool--compose .ai-template-price small {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    justify-self: end;
    text-align: right;
}

.ai-template-tool--compose .ai-template-benefits {
    gap: 10px;
    max-width: 470px;
}

.ai-template-tool--compose .ai-template-benefits div {
    gap: 3px 7px;
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 56px;
    padding: 9px;
}

.ai-template-tool--compose .ai-template-benefits i {
    color: #155eef;
    font-size: 16px;
}

.ai-template-tool--compose .ai-template-benefits b {
    font-size: 11px;
    font-weight: 720;
    line-height: 1.22;
}

.ai-template-tool--compose .ai-template-benefits span {
    font-size: 10px;
    line-height: 1.3;
}

.ai-template-tool--compose .ai-template-flow {
    margin-top: 0;
    padding: 14px 18px;
}

.ai-template-tool--compose .ai-template-provider,
.ai-template-tool--compose .ai-template-form__xu {
    display: none;
}

.ai-template-tool--compose .ai-template-form {
    gap: 14px;
    padding: 18px;
}

.ai-template-tool--compose .ai-template-form__field > label {
    color: #101828;
    font-size: 14px;
    font-weight: 720;
}

.ai-template-tool--compose .ai-template-dropzone {
    align-items: center;
    border: 1px dashed #98b7ff;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    justify-items: center;
    min-height: 138px;
    padding: 16px 18px;
    text-align: left;
}

.ai-template-tool--compose .ai-template-dropzone i {
    align-items: center;
    background: linear-gradient(145deg, #dbe7ff, #f3f7ff);
    border-radius: 8px;
    color: #155eef;
    display: flex;
    font-size: 44px;
    height: 82px;
    justify-content: center;
    width: 82px;
}

.ai-template-tool--compose .ai-template-dropzone strong,
.ai-template-tool--compose .ai-template-dropzone span,
.ai-template-tool--compose .ai-template-dropzone small {
    grid-column: 2;
    justify-self: start;
}

.ai-template-tool--compose .ai-template-dropzone strong,
.ai-template-tool--compose .ai-template-dropzone span {
    color: #344054;
    font-size: 13px;
}

.ai-template-tool--compose .ai-template-dropzone span b {
    align-items: center;
    background: #155eef;
    border-radius: 6px;
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    min-height: 32px;
    padding: 0 14px;
}

.ai-template-tool--compose .ai-template-dropzone small {
    color: #667085;
    font-size: 12px;
}

.ai-template-tool--compose .ai-template-form__row {
    grid-template-columns: 1fr;
}

.ai-template-tool--compose .ai-template-ratio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-template-tool--compose .ai-template-package-field,
.ai-template-tool--compose .ai-template-package-grid {
    gap: 8px;
}

.ai-template-tool--compose .ai-template-package-field {
    background: #f8fbff;
    border: 1px solid #d6e4ff;
    border-radius: 8px;
    padding: 10px;
}

.ai-template-tool--compose .ai-template-package-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
}

.ai-template-tool--compose .ai-template-package-head > label {
    font-size: 14px;
}

.ai-template-tool--compose .ai-template-package-note {
    color: #667085;
    font-size: 12px;
    line-height: 1.35;
    margin: 0;
}

.ai-template-tool--compose .ai-template-package-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-template-tool--compose .ai-template-package-grid label {
    align-content: center;
    border-color: #d7e2f3;
    gap: 4px;
    min-height: 96px;
    overflow: visible;
    padding: 14px 6px 8px;
}

.ai-template-tool--compose .ai-template-package-grid label.is-active,
.ai-template-tool--compose .ai-template-package-grid label:has(input:checked) {
    border-color: #155eef;
    box-shadow: inset 0 0 0 1px #155eef, 0 0 0 2px rgba(21, 94, 239, .1);
}

.ai-template-tool--compose .ai-template-package-check {
    align-items: center;
    background: #155eef;
    border-radius: 50%;
    color: #ffffff;
    display: none;
    font-size: 9px;
    height: 16px;
    justify-content: center;
    position: absolute;
    right: 7px;
    top: 7px;
    width: 16px;
}

.ai-template-tool--compose .ai-template-package-grid label.is-active .ai-template-package-check,
.ai-template-tool--compose .ai-template-package-grid label:has(input:checked) .ai-template-package-check {
    display: flex;
}

.ai-template-tool--compose .ai-template-package-grid em {
    font-size: 10px;
    line-height: 1;
    margin: -23px auto 2px;
    padding: 4px 7px;
    white-space: nowrap;
}

.ai-template-tool--compose .ai-template-package-grid strong {
    color: #101828;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.25;
}

.ai-template-tool--compose .ai-template-package-price {
    align-items: center;
    color: #155eef;
    display: inline-flex;
    font-size: 12px;
    font-weight: 820;
    gap: 4px;
    justify-content: center;
}

.ai-template-tool--compose .ai-template-package-price i {
    color: #f79009;
    font-size: 12px;
}

.ai-template-tool--compose .ai-template-package-grid del {
    color: #98a2b3;
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.ai-template-tool--compose .ai-template-package-grid small {
    align-self: end;
    background: #eef4ff;
    border-radius: 6px;
    color: #155eef;
    display: inline-flex;
    font-size: 9px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    margin-top: 1px;
    padding: 4px;
    white-space: nowrap;
}

.ai-template-tool--compose .ai-template-submit {
    font-size: 17px;
    font-weight: 720;
    min-height: 56px;
}

.ai-template-tool--compose .ai-template-output--compact {
    display: none;
}

.ai-template-tool--compose .ai-template-output--compact.is-visible {
    display: block;
}

.ai-template-tool--compose .ai-template-why {
    padding: 18px;
}

.ai-template-tool--compose .ai-template-why h2,
.ai-template-tool--compose .ai-template-section__head h2,
.ai-template-tool--compose .ai-template-related h2 {
    color: #101828;
    font-size: 22px;
    font-weight: 720;
}

.ai-template-tool--compose .ai-template-why h2 {
    color: #155eef;
    font-size: 18px;
}

.ai-template-tool--compose .ai-template-why i {
    background: #eef4ff;
    font-size: 28px;
}

.ai-template-tool--compose .ai-template-related,
.ai-template-tool--compose .ai-template-comments {
    background: #ffffff;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, .05);
    padding: 18px;
}

.ai-template-tool--compose .ai-template-related {
    margin-top: 8px;
}

.ai-template-tool--compose .ai-template-comments {
    margin-top: 0;
}

.ai-template-tool--compose .ai-template-related__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .ai-template-category__hero,
    .ai-template-tool__layout,
    .ai-template-tool__main {
        grid-template-columns: 1fr;
    }

    .ai-template-tool__side {
        position: static;
    }

    .ai-template-grid,
    .ai-template-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-template-tool--wedding .ai-template-tool__main,
    .ai-template-tool--wedding .ai-template-tool__layout,
    .ai-template-tool--baby .ai-template-tool__main,
    .ai-template-tool--baby .ai-template-tool__layout,
    .ai-template-tool--memorial .ai-template-tool__main,
    .ai-template-tool--memorial .ai-template-tool__layout,
    .ai-template-tool--compose .ai-template-tool__main,
    .ai-template-tool--compose .ai-template-tool__layout {
        grid-template-columns: 1fr;
    }

    .ai-template-tool--compose.ai-template-tool--no-album .ai-template-tool__layout {
        grid-template-columns: 1fr;
    }

    .ai-template-tool--wedding .ai-template-info,
    .ai-template-tool--baby .ai-template-info,
    .ai-template-tool--compose .ai-template-info {
        padding-top: 0;
    }

    .ai-template-category--memorial .ai-template-category__hero,
    .ai-template-category--trungthu .ai-template-category__hero,
    .ai-template-category--memorial .ai-template-category__visual {
        grid-template-columns: 1fr;
    }

    .ai-template-category--memorial .ai-template-category__visual,
    .ai-template-category--trungthu .ai-template-category__visual {
        justify-items: center;
    }

    .ai-template-category--memorial .ai-template-category__photo,
    .ai-template-category--trungthu .ai-template-category__photo {
        max-width: min(100%, 360px);
    }

    .ai-template-category--memorial .ai-template-category__photo--2,
    .ai-template-category--memorial .ai-template-category__photo--3,
    .ai-template-category--trungthu .ai-template-category__photo--2,
    .ai-template-category--trungthu .ai-template-category__photo--3 {
        transform: none;
    }
}

@media (max-width: 760px) {
    .ai-template-tool {
        padding-bottom: 18px;
    }

    .ai-template-category__hero {
        padding: 22px;
    }

    .ai-template-tool__layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .ai-template-tool__main,
    .ai-template-tool__side {
        display: contents;
    }

    .ai-template-showcase,
    .ai-template-info,
    .ai-template-form,
    .ai-template-generation,
    .ai-template-flow,
    .ai-template-comments,
    .ai-template-why,
    .ai-template-related {
        width: 100%;
    }

    .ai-template-showcase {
        order: 1;
    }

    .ai-template-info {
        order: 2;
    }

    .ai-template-flow {
        order: 3;
    }

    .ai-template-form {
        order: 4;
    }

    .ai-template-generation {
        order: 5;
    }

    .ai-template-comments {
        order: 6;
    }

    .ai-template-why {
        order: 7;
    }

    .ai-template-related {
        order: 8;
    }

    .ai-template-category__hero h1,
    .ai-template-info h1 {
        font-size: 30px;
    }

    .ai-template-category__visual,
    .ai-template-benefits,
    .ai-template-section--steps,
    .ai-template-flow,
    .ai-template-result-grid,
    .ai-template-generation__progress,
    .ai-template-why > div {
        grid-template-columns: 1fr;
    }

    .ai-template-category__photo--1 {
        height: 220px;
    }

    .ai-template-category__visual {
        display: none;
    }

    .ai-template-category--memorial .ai-template-category__photo--1 {
        height: auto;
    }

    .ai-template-category--memorial .ai-template-grid {
        grid-template-columns: 1fr;
    }

    .ai-template-flow > i {
        display: none;
    }

    .ai-template-form__row,
    .ai-template-style-grid,
    .ai-template-upload-pair,
    .ai-template-package-grid {
        grid-template-columns: 1fr;
    }

    .ai-template-form {
        gap: 12px;
        padding: 14px;
    }

    .ai-template-provider,
    .ai-template-form__xu {
        padding: 10px 12px;
    }

    .ai-template-dropzone {
        min-height: 112px;
        padding: 14px;
    }

    .ai-template-dropzone i {
        font-size: 26px;
    }

    .ai-template-form textarea {
        min-height: 78px;
    }

    .ai-template-submit {
        bottom: 72px;
        min-height: 50px;
        position: static;
        transition: bottom .18s ease, transform .18s ease, box-shadow .18s ease;
        z-index: 30;
    }

    .ai-template-submit-sentinel {
        display: block;
        height: 1px;
        margin-top: -1px;
        pointer-events: none;
    }

    .online-editor.has-reached-submit-area .ai-template-submit {
        left: 12px;
        position: fixed;
        right: 12px;
        width: auto;
        z-index: 10980;
    }

    .online-editor.has-reached-submit-area .ai-template-form {
        padding-bottom: 78px;
    }

    body.xu-flow-guest-payment-notice-open .online-editor.has-reached-submit-area .ai-template-submit {
        bottom: 236px;
    }

    .ai-template-package-grid label {
        min-height: 0;
        padding: 12px;
    }

    .ai-template-wedding-collage {
        grid-template-columns: 1fr;
        height: auto;
    }

    .ai-template-wedding-collage img {
        aspect-ratio: 16 / 10;
    }

    .ai-template-showcase__thumbs--floating {
        background: transparent;
        border: 0;
        bottom: auto;
        left: auto;
        margin-top: 10px;
        max-width: 100%;
        padding: 2px 2px 8px;
        position: static;
        transform: none;
    }

    .ai-template-tool--baby .ai-template-dropzone,
    .ai-template-tool--memorial .ai-template-dropzone,
    .ai-template-tool--compose .ai-template-dropzone {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ai-template-tool--baby .ai-template-dropzone strong,
    .ai-template-tool--baby .ai-template-dropzone span,
    .ai-template-tool--baby .ai-template-dropzone small,
    .ai-template-tool--memorial .ai-template-dropzone strong,
    .ai-template-tool--memorial .ai-template-dropzone span,
    .ai-template-tool--memorial .ai-template-dropzone small,
    .ai-template-tool--compose .ai-template-dropzone strong,
    .ai-template-tool--compose .ai-template-dropzone span,
    .ai-template-tool--compose .ai-template-dropzone small {
        grid-column: auto;
        justify-self: center;
    }

    .ai-template-package-note {
        justify-self: start;
        margin: 0 0 4px;
    }

    .ai-template-generation__progress p,
    .ai-template-generated__secure {
        text-align: left;
    }

    .ai-template-related {
        margin-top: 4px;
    }

    .ai-template-generation__working {
        grid-template-columns: auto 1fr auto;
    }

    .ai-template-generation__bar {
        grid-column: 1 / -1;
    }

    .ai-template-generated__head {
        grid-template-columns: 1fr;
    }

    .ai-template-generated__secure {
        margin-top: 0;
        white-space: normal;
    }

    .ai-template-generated__hint {
        position: static;
        transform: none;
        margin: 0 0 14px;
        max-width: none;
    }

    .ai-template-generated__hint::after {
        display: none;
    }

    .ai-template-generated__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ai-template-grid,
    .ai-template-showcase__thumbs,
    .ai-template-result-grid,
    .ai-template-generated__grid,
    .ai-template-related__grid {
        grid-template-columns: 1fr;
    }

    .ai-template-section__head,
    .ai-template-output__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai-template-price,
    .ai-template-tool--compose .ai-template-price {
        gap: 6px 8px;
        grid-template-columns: auto auto minmax(max-content, 1fr);
        justify-content: start;
        max-width: 100%;
        width: 100%;
    }

    .ai-template-price span,
    .ai-template-tool--compose .ai-template-price span {
        white-space: nowrap;
    }

    .ai-template-price small,
    .ai-template-tool--compose .ai-template-price small {
        grid-column: 1 / -1;
        justify-self: start;
        text-align: left;
    }

    .ai-template-related__grid a {
        min-height: 0;
    }

    .ai-template-related img {
        width: 100%;
    }

    .ai-template-tool--compose .ai-template-related__grid {
        grid-template-columns: 1fr;
    }

    .ai-template-related__grid a {
        overflow: hidden;
        width: 100%;
    }

    .ai-template-related__grid a:nth-child(n+7) {
        display: none;
    }

    .ai-template-related__more--mobile-only {
        display: inline-flex;
    }

    .ai-template-related__meta,
    .ai-template-related span,
    .ai-template-related small {
        max-width: 100%;
        min-width: 0;
    }

    .ai-template-related small {
        justify-content: center;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }

    .ai-template-tool--memorial .ai-template-generated__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-template-tool--memorial .ai-template-generated-card {
        max-width: none;
    }
}
.ai-template-comments {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    margin-top: 24px;
    padding: 22px;
}

.ai-template-content-tabs {
    display: block;
}

.ai-template-content-tabs__nav {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: inline-flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
}

.ai-template-content-tabs__nav button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
}

.ai-template-content-tabs__nav button.is-active {
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .1);
    color: #155eef;
}

.ai-template-tab-count {
    align-items: center;
    background: #e2e8f0;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 6px;
}

.ai-template-content-tabs__nav button.is-active .ai-template-tab-count {
    background: #dbeafe;
    color: #155eef;
}

.ai-template-content-tabs__panel:not(.is-active) {
    display: none;
}

.ai-template-seo-article {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
}

.ai-template-seo-article header {
    align-items: flex-start;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 13px;
}

.ai-template-seo-article header > div {
    min-width: 0;
}

.ai-template-admin-edit--article {
    flex: 0 0 auto;
}

.ai-template-seo-article header span {
    color: #155eef;
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ai-template-seo-article h2 {
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    margin: 0;
}

.ai-template-seo-article__body {
    color: #344054;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.ai-template-seo-article__body h2,
.ai-template-seo-article__body h3,
.ai-template-seo-article__body h4 {
    color: #111827;
    font-weight: 900;
    line-height: 1.3;
    margin: 20px 0 10px;
}

.ai-template-seo-article__body h2 {
    font-size: 22px;
}

.ai-template-seo-article__body h3 {
    font-size: 19px;
}

.ai-template-seo-article__body p {
    margin: 0 0 12px;
}

.ai-template-seo-article__body ul,
.ai-template-seo-article__body ol {
    margin: 0 0 14px 22px;
    padding: 0;
}

.ai-template-seo-article__body li {
    margin-bottom: 6px;
}

.ai-template-seo-article__body img {
    border-radius: 8px;
    height: auto;
    max-width: 100%;
}

.ai-template-seo-article__body table {
    border-collapse: collapse;
    display: block;
    margin: 14px 0;
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
}

.ai-template-seo-article__body th,
.ai-template-seo-article__body td {
    border: 1px solid #e5e7eb;
    padding: 9px 10px;
    text-align: left;
}

.ai-template-comments__head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ai-template-comments__head h2 {
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 6px;
}

.ai-template-comments__head p,
.ai-template-comments__head span,
.ai-template-comments__form > div span,
.ai-template-comment time,
.ai-template-comments__empty {
    color: #6b7280;
    font-size: 13px;
}

.ai-template-comments__head span {
    background: #eef4ff;
    border-radius: 999px;
    color: #2563eb;
    flex: 0 0 auto;
    font-weight: 800;
    padding: 7px 11px;
}

.ai-template-comments__notice,
.ai-template-comments__login,
.ai-template-comments__form {
    border-radius: 8px;
    margin-bottom: 16px;
}

.ai-template-comments__notice {
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 14px;
}

.ai-template-comments__form {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 14px;
}

.ai-template-comments__form label {
    color: #111827;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.ai-template-comments__form textarea {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111827;
    display: block;
    font-size: 14px;
    line-height: 1.5;
    min-height: 108px;
    padding: 12px;
    resize: vertical;
    width: 100%;
}

.ai-template-comments__form small {
    color: #dc2626;
    display: block;
    font-size: 12px;
    margin-top: 6px;
}

.ai-template-comments__form > div {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 12px;
}

.ai-template-comments__form button,
.ai-template-comments__login a {
    align-items: center;
    background: #2563eb;
    border: 0;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    height: 40px;
    justify-content: center;
    padding: 0 14px;
}

.ai-template-comments__login {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #374151;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
}

.ai-template-comments__login i {
    color: #2563eb;
}

.ai-template-comments__list {
    display: grid;
    gap: 12px;
}

.ai-template-comment {
    display: flex;
    gap: 12px;
}

.ai-template-comment__avatar {
    align-items: center;
    background: #e0ecff;
    border-radius: 50%;
    color: #1d4ed8;
    display: inline-flex;
    flex: 0 0 40px;
    font-size: 15px;
    font-weight: 900;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.ai-template-comment > div:last-child {
    background: #f8fafc;
    border-radius: 8px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px;
}

.ai-template-comment header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.ai-template-comment strong {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.ai-template-comment p {
    color: #374151;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    overflow-wrap: anywhere;
}

.ai-template-comments__empty {
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

@media (max-width: 767px) {
    .ai-template-comments {
        padding: 16px;
    }

    .ai-template-content-tabs__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .ai-template-content-tabs__nav button {
        justify-content: center;
        min-width: 0;
        padding-inline: 8px;
    }

    .ai-template-comments__head,
    .ai-template-seo-article header,
    .ai-template-comments__form > div {
        align-items: stretch;
        flex-direction: column;
    }

    .ai-template-comments__head span,
    .ai-template-admin-edit--article,
    .ai-template-comments__form button,
    .ai-template-comments__login a {
        width: 100%;
    }

    .ai-template-comments__login {
        align-items: stretch;
        flex-direction: column;
    }
}

.ai-template-category--lienquan .ai-template-category__hero,
.ai-template-tool--lienquan .ai-template-info,
.ai-template-tool--lienquan .ai-template-form {
    border-color: rgba(124, 58, 237, .18);
}

.ai-template-tool--lienquan .ai-template-info__title span,
.ai-template-tool--lienquan .ai-template-price i,
.ai-template-tool--lienquan .ai-template-benefits i,
.ai-template-tool--lienquan .ai-template-why i,
.ai-template-category--lienquan .ai-template-eyebrow {
    color: #7c3aed;
}

.ai-template-tool--lienquan .ai-template-submit,
.ai-template-category--lienquan .ai-template-btn--primary,
.ai-template-tool--lienquan .ai-template-package-grid label.is-active .ai-template-package-check,
.ai-template-tool--lienquan .ai-template-package-grid label:has(input:checked) .ai-template-package-check {
    background: linear-gradient(135deg, #5b21b6, #2563eb);
}

.ai-template-tool--lienquan .ai-template-dropzone {
    background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(37, 99, 235, .08));
    border-color: rgba(124, 58, 237, .28);
}

.ai-template-tool--lienquan .ai-template-package-grid label.is-active,
.ai-template-tool--lienquan .ai-template-package-grid label:has(input:checked) {
    border-color: #7c3aed;
    box-shadow: 0 14px 30px rgba(124, 58, 237, .16);
}

.ai-template-category--trungthu .ai-template-category__hero,
.ai-template-tool--trungthu .ai-template-info,
.ai-template-tool--trungthu .ai-template-form {
    border-color: rgba(245, 158, 11, .22);
}

.ai-template-category--trungthu .ai-template-category__hero {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 247, 237, .97), rgba(255, 255, 255, .96)),
        #ffffff;
    grid-template-columns: minmax(0, .92fr) minmax(320px, .82fr);
}

.ai-template-category--trungthu .ai-template-category__visual {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
}

.ai-template-category--trungthu .ai-template-category__photo {
    aspect-ratio: 3 / 4;
    border-color: #ffffff;
    box-shadow: 0 18px 36px rgba(146, 64, 14, .15);
    height: auto;
    max-height: 420px;
    object-fit: cover;
    object-position: center top;
    width: min(100%, 210px);
}

.ai-template-category--trungthu .ai-template-category__photo--1 {
    grid-row: span 2;
    height: auto;
    max-height: 520px;
    width: min(100%, 260px);
}

.ai-template-category--trungthu .ai-template-category__photo--2,
.ai-template-category--trungthu .ai-template-category__photo--3 {
    transform: none;
}

.ai-template-category--trungthu .ai-template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-template-category--trungthu .ai-template-card {
    border-color: rgba(245, 158, 11, .22);
    box-shadow: 0 10px 28px rgba(146, 64, 14, .08);
}

.ai-template-category--trungthu .ai-template-card img {
    aspect-ratio: 3 / 4;
    object-position: center top;
}

.ai-template-category--trungthu .ai-template-card span {
    background: #fff7ed;
    color: #c2410c;
}

.ai-template-category--trungthu .ai-template-card footer a {
    background: #fff7ed;
    color: #c2410c;
}

.ai-template-tool--trungthu .ai-template-info__title span,
.ai-template-tool--trungthu .ai-template-price i,
.ai-template-tool--trungthu .ai-template-benefits i,
.ai-template-tool--trungthu .ai-template-why i,
.ai-template-category--trungthu .ai-template-eyebrow {
    color: #d97706;
}

.ai-template-tool--trungthu .ai-template-submit,
.ai-template-category--trungthu .ai-template-btn--primary,
.ai-template-tool--trungthu .ai-template-package-grid label.is-active .ai-template-package-check,
.ai-template-tool--trungthu .ai-template-package-grid label:has(input:checked) .ai-template-package-check {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.ai-template-tool--trungthu .ai-template-dropzone {
    background: linear-gradient(135deg, rgba(245, 158, 11, .09), rgba(239, 68, 68, .07));
    border-color: rgba(245, 158, 11, .3);
}

.ai-template-tool--trungthu .ai-template-package-grid label.is-active,
.ai-template-tool--trungthu .ai-template-package-grid label:has(input:checked) {
    border-color: #f59e0b;
    box-shadow: 0 14px 30px rgba(245, 158, 11, .16);
}

.ai-template-tool--trungthu .ai-template-wedding-collage {
    background: linear-gradient(135deg, rgba(245, 158, 11, .1), rgba(239, 68, 68, .08));
}

.ai-template-tool--trungthu .ai-template-wedding-collage img {
    object-position: center top;
}

.ai-template-showcase__zoomable {
    cursor: zoom-in;
}

.ai-template-showcase__zoomable:focus-visible {
    outline: 3px solid rgba(245, 158, 11, .35);
    outline-offset: 3px;
}

.ai-template-wedding-collage:has(> img:only-child) {
    display: block;
    overflow: hidden;
}

.ai-template-wedding-collage > img:only-child {
    height: 100%;
    width: 100%;
}

.ai-template-tool--trungthu .ai-template-wedding-collage > img:only-child {
    object-fit: contain;
}

.ai-template-tool--trungthu .ai-template-package-grid label.is-active,
.ai-template-tool--trungthu .ai-template-package-grid label:has(input:checked) {
    box-shadow: inset 0 0 0 1px #f59e0b, 0 0 0 2px rgba(245, 158, 11, .12);
}

.ai-template-category--birthday .ai-template-category__hero,
.ai-template-tool--birthday .ai-template-info,
.ai-template-tool--birthday .ai-template-form {
    border-color: rgba(236, 72, 153, .22);
}

.ai-template-category--birthday .ai-template-category__hero {
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, .14), transparent 34%),
        linear-gradient(135deg, #fff7fb, #ffffff);
}

.ai-template-tool--birthday .ai-template-info__title span,
.ai-template-tool--birthday .ai-template-price i,
.ai-template-tool--birthday .ai-template-benefits i,
.ai-template-tool--birthday .ai-template-why i,
.ai-template-category--birthday .ai-template-eyebrow {
    color: #db2777;
}

.ai-template-tool--birthday .ai-template-submit,
.ai-template-category--birthday .ai-template-btn--primary,
.ai-template-tool--birthday .ai-template-package-grid label.is-active .ai-template-package-check,
.ai-template-tool--birthday .ai-template-package-grid label:has(input:checked) .ai-template-package-check {
    background: linear-gradient(135deg, #ec4899, #f59e0b);
}

.ai-template-tool--birthday .ai-template-dropzone {
    background: linear-gradient(135deg, rgba(236, 72, 153, .09), rgba(245, 158, 11, .07));
    border-color: rgba(236, 72, 153, .28);
}

.ai-template-tool--birthday .ai-template-package-grid label.is-active,
.ai-template-tool--birthday .ai-template-package-grid label:has(input:checked) {
    border-color: #ec4899;
    box-shadow: inset 0 0 0 1px #ec4899, 0 0 0 2px rgba(236, 72, 153, .12);
}

.ai-template-tool--birthday .ai-template-wedding-collage {
    background: linear-gradient(135deg, rgba(236, 72, 153, .09), rgba(245, 158, 11, .08));
}

.ai-template-category--christmas .ai-template-category__hero,
.ai-template-tool--christmas .ai-template-info,
.ai-template-tool--christmas .ai-template-form {
    border-color: rgba(16, 185, 129, .22);
}

.ai-template-category--christmas .ai-template-category__hero {
    background:
        radial-gradient(circle at top right, rgba(220, 38, 38, .13), transparent 34%),
        linear-gradient(135deg, #f3fff8, #ffffff);
}

.ai-template-tool--christmas .ai-template-info__title span,
.ai-template-tool--christmas .ai-template-price i,
.ai-template-tool--christmas .ai-template-benefits i,
.ai-template-tool--christmas .ai-template-why i,
.ai-template-category--christmas .ai-template-eyebrow {
    color: #059669;
}

.ai-template-tool--christmas .ai-template-submit,
.ai-template-category--christmas .ai-template-btn--primary,
.ai-template-tool--christmas .ai-template-package-grid label.is-active .ai-template-package-check,
.ai-template-tool--christmas .ai-template-package-grid label:has(input:checked) .ai-template-package-check {
    background: linear-gradient(135deg, #10b981, #dc2626);
}

.ai-template-tool--christmas .ai-template-dropzone {
    background: linear-gradient(135deg, rgba(16, 185, 129, .09), rgba(220, 38, 38, .07));
    border-color: rgba(16, 185, 129, .28);
}

.ai-template-tool--christmas .ai-template-package-grid label.is-active,
.ai-template-tool--christmas .ai-template-package-grid label:has(input:checked) {
    border-color: #10b981;
    box-shadow: inset 0 0 0 1px #10b981, 0 0 0 2px rgba(16, 185, 129, .12);
}

.ai-template-tool--christmas .ai-template-wedding-collage {
    background: linear-gradient(135deg, rgba(16, 185, 129, .09), rgba(220, 38, 38, .08));
}

.ai-template-category--maternity .ai-template-category__hero,
.ai-template-tool--maternity .ai-template-info,
.ai-template-tool--maternity .ai-template-form {
    border-color: rgba(249, 115, 22, .22);
}

.ai-template-category--maternity .ai-template-category__hero {
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, .13), transparent 34%),
        linear-gradient(135deg, #fff7ed, #ffffff);
}

.ai-template-tool--maternity .ai-template-info__title span,
.ai-template-tool--maternity .ai-template-price i,
.ai-template-tool--maternity .ai-template-benefits i,
.ai-template-tool--maternity .ai-template-why i,
.ai-template-category--maternity .ai-template-eyebrow {
    color: #ea580c;
}

.ai-template-tool--maternity .ai-template-submit,
.ai-template-category--maternity .ai-template-btn--primary,
.ai-template-tool--maternity .ai-template-package-grid label.is-active .ai-template-package-check,
.ai-template-tool--maternity .ai-template-package-grid label:has(input:checked) .ai-template-package-check {
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.ai-template-tool--maternity .ai-template-dropzone {
    background: linear-gradient(135deg, rgba(249, 115, 22, .09), rgba(236, 72, 153, .07));
    border-color: rgba(249, 115, 22, .28);
}

.ai-template-tool--maternity .ai-template-package-grid label.is-active,
.ai-template-tool--maternity .ai-template-package-grid label:has(input:checked) {
    border-color: #f97316;
    box-shadow: inset 0 0 0 1px #f97316, 0 0 0 2px rgba(249, 115, 22, .12);
}

.ai-template-tool--maternity .ai-template-wedding-collage {
    background: linear-gradient(135deg, rgba(249, 115, 22, .09), rgba(236, 72, 153, .08));
}

.ai-template-category--business .ai-template-category__hero,
.ai-template-tool--business .ai-template-info,
.ai-template-tool--business .ai-template-form {
    border-color: rgba(37, 99, 235, .22);
}

.ai-template-category--business .ai-template-category__hero {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .13), transparent 34%),
        linear-gradient(135deg, #eff6ff, #ffffff);
}

.ai-template-tool--business .ai-template-info__title span,
.ai-template-tool--business .ai-template-price i,
.ai-template-tool--business .ai-template-benefits i,
.ai-template-tool--business .ai-template-why i,
.ai-template-category--business .ai-template-eyebrow {
    color: #2563eb;
}

.ai-template-tool--business .ai-template-submit,
.ai-template-category--business .ai-template-btn--primary,
.ai-template-tool--business .ai-template-package-grid label.is-active .ai-template-package-check,
.ai-template-tool--business .ai-template-package-grid label:has(input:checked) .ai-template-package-check {
    background: linear-gradient(135deg, #2563eb, #0f172a);
}

.ai-template-tool--business .ai-template-dropzone {
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(15, 23, 42, .06));
    border-color: rgba(37, 99, 235, .28);
}

.ai-template-tool--business .ai-template-package-grid label.is-active,
.ai-template-tool--business .ai-template-package-grid label:has(input:checked) {
    border-color: #2563eb;
    box-shadow: inset 0 0 0 1px #2563eb, 0 0 0 2px rgba(37, 99, 235, .12);
}

.ai-template-tool--business .ai-template-wedding-collage {
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(15, 23, 42, .06));
}

.ai-template-category--nationalday .ai-template-category__hero,
.ai-template-tool--nationalday .ai-template-info,
.ai-template-tool--nationalday .ai-template-form {
    border-color: rgba(220, 38, 38, .22);
}

.ai-template-category--nationalday .ai-template-category__hero {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .18), transparent 34%),
        linear-gradient(135deg, #fff1f2, #ffffff);
}

.ai-template-tool--nationalday .ai-template-info__title span,
.ai-template-tool--nationalday .ai-template-price i,
.ai-template-tool--nationalday .ai-template-benefits i,
.ai-template-tool--nationalday .ai-template-why i,
.ai-template-category--nationalday .ai-template-eyebrow {
    color: #dc2626;
}

.ai-template-tool--nationalday .ai-template-submit,
.ai-template-category--nationalday .ai-template-btn--primary,
.ai-template-tool--nationalday .ai-template-package-grid label.is-active .ai-template-package-check,
.ai-template-tool--nationalday .ai-template-package-grid label:has(input:checked) .ai-template-package-check {
    background: linear-gradient(135deg, #dc2626, #f59e0b);
}

.ai-template-tool--nationalday .ai-template-dropzone {
    background: linear-gradient(135deg, rgba(220, 38, 38, .08), rgba(245, 158, 11, .08));
    border-color: rgba(220, 38, 38, .28);
}

.ai-template-tool--nationalday .ai-template-package-grid label.is-active,
.ai-template-tool--nationalday .ai-template-package-grid label:has(input:checked) {
    border-color: #dc2626;
    box-shadow: inset 0 0 0 1px #dc2626, 0 0 0 2px rgba(220, 38, 38, .12);
}

.ai-template-tool--nationalday .ai-template-wedding-collage {
    background: linear-gradient(135deg, rgba(220, 38, 38, .08), rgba(245, 158, 11, .08));
}

.ai-template-category--aodaitet .ai-template-category__hero,
.ai-template-tool--aodaitet .ai-template-info,
.ai-template-tool--aodaitet .ai-template-form {
    border-color: rgba(225, 29, 72, .22);
}

.ai-template-category--aodaitet .ai-template-category__hero {
    background:
        radial-gradient(circle at top right, rgba(244, 114, 182, .16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, .12), transparent 30%),
        linear-gradient(135deg, #fff1f2, #ffffff);
}

.ai-template-tool--aodaitet .ai-template-info__title span,
.ai-template-tool--aodaitet .ai-template-price i,
.ai-template-tool--aodaitet .ai-template-benefits i,
.ai-template-tool--aodaitet .ai-template-why i,
.ai-template-category--aodaitet .ai-template-eyebrow {
    color: #e11d48;
}

.ai-template-tool--aodaitet .ai-template-submit,
.ai-template-category--aodaitet .ai-template-btn--primary,
.ai-template-tool--aodaitet .ai-template-package-grid label.is-active .ai-template-package-check,
.ai-template-tool--aodaitet .ai-template-package-grid label:has(input:checked) .ai-template-package-check {
    background: linear-gradient(135deg, #e11d48, #f59e0b);
}

.ai-template-tool--aodaitet .ai-template-dropzone {
    background: linear-gradient(135deg, rgba(225, 29, 72, .08), rgba(245, 158, 11, .08));
    border-color: rgba(225, 29, 72, .28);
}

.ai-template-tool--aodaitet .ai-template-package-grid label.is-active,
.ai-template-tool--aodaitet .ai-template-package-grid label:has(input:checked) {
    border-color: #e11d48;
    box-shadow: inset 0 0 0 1px #e11d48, 0 0 0 2px rgba(225, 29, 72, .12);
}

.ai-template-tool--aodaitet .ai-template-wedding-collage {
    background: linear-gradient(135deg, rgba(225, 29, 72, .08), rgba(245, 158, 11, .08));
}

.ai-template-category--cotrang .ai-template-category__hero,
.ai-template-tool--cotrang .ai-template-info,
.ai-template-tool--cotrang .ai-template-form {
    border-color: rgba(124, 58, 237, .22);
}

.ai-template-category--cotrang .ai-template-category__hero {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, .16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, .12), transparent 30%),
        linear-gradient(135deg, #f5f3ff, #ffffff);
}

.ai-template-tool--cotrang .ai-template-info__title span,
.ai-template-tool--cotrang .ai-template-price i,
.ai-template-tool--cotrang .ai-template-benefits i,
.ai-template-tool--cotrang .ai-template-why i,
.ai-template-category--cotrang .ai-template-eyebrow {
    color: #7c3aed;
}

.ai-template-tool--cotrang .ai-template-submit,
.ai-template-category--cotrang .ai-template-btn--primary,
.ai-template-tool--cotrang .ai-template-package-grid label.is-active .ai-template-package-check,
.ai-template-tool--cotrang .ai-template-package-grid label:has(input:checked) .ai-template-package-check {
    background: linear-gradient(135deg, #7c3aed, #a16207);
}

.ai-template-tool--cotrang .ai-template-dropzone {
    background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(245, 158, 11, .08));
    border-color: rgba(124, 58, 237, .28);
}

.ai-template-tool--cotrang .ai-template-package-grid label.is-active,
.ai-template-tool--cotrang .ai-template-package-grid label:has(input:checked) {
    border-color: #7c3aed;
    box-shadow: inset 0 0 0 1px #7c3aed, 0 0 0 2px rgba(124, 58, 237, .12);
}

.ai-template-tool--cotrang .ai-template-wedding-collage {
    background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(245, 158, 11, .08));
}

.ai-template-tool--wedding.ai-template-tool--baby .ai-template-package-grid,
.ai-template-tool--wedding.ai-template-tool--compose .ai-template-package-grid,
.ai-template-tool--wedding.ai-template-tool--lienquan .ai-template-package-grid,
.ai-template-tool--wedding.ai-template-tool--trungthu .ai-template-package-grid,
.ai-template-tool--wedding.ai-template-tool--birthday .ai-template-package-grid,
.ai-template-tool--wedding.ai-template-tool--christmas .ai-template-package-grid,
.ai-template-tool--wedding.ai-template-tool--maternity .ai-template-package-grid,
.ai-template-tool--wedding.ai-template-tool--business .ai-template-package-grid,
.ai-template-tool--wedding.ai-template-tool--nationalday .ai-template-package-grid,
.ai-template-tool--wedding.ai-template-tool--aodaitet .ai-template-package-grid,
.ai-template-tool--wedding.ai-template-tool--cotrang .ai-template-package-grid {
    gap: 8px;
}

.ai-template-tool--wedding.ai-template-tool--baby .ai-template-package-grid label,
.ai-template-tool--wedding.ai-template-tool--compose .ai-template-package-grid label,
.ai-template-tool--wedding.ai-template-tool--lienquan .ai-template-package-grid label,
.ai-template-tool--wedding.ai-template-tool--trungthu .ai-template-package-grid label,
.ai-template-tool--wedding.ai-template-tool--birthday .ai-template-package-grid label,
.ai-template-tool--wedding.ai-template-tool--christmas .ai-template-package-grid label,
.ai-template-tool--wedding.ai-template-tool--maternity .ai-template-package-grid label,
.ai-template-tool--wedding.ai-template-tool--business .ai-template-package-grid label,
.ai-template-tool--wedding.ai-template-tool--nationalday .ai-template-package-grid label,
.ai-template-tool--wedding.ai-template-tool--aodaitet .ai-template-package-grid label,
.ai-template-tool--wedding.ai-template-tool--cotrang .ai-template-package-grid label {
    align-content: center;
    gap: 5px;
    min-height: 126px;
    overflow: visible;
    padding: 16px 7px 10px;
}

.ai-template-tool--wedding.ai-template-tool--baby .ai-template-package-grid em,
.ai-template-tool--wedding.ai-template-tool--compose .ai-template-package-grid em,
.ai-template-tool--wedding.ai-template-tool--lienquan .ai-template-package-grid em,
.ai-template-tool--wedding.ai-template-tool--trungthu .ai-template-package-grid em,
.ai-template-tool--wedding.ai-template-tool--birthday .ai-template-package-grid em,
.ai-template-tool--wedding.ai-template-tool--christmas .ai-template-package-grid em,
.ai-template-tool--wedding.ai-template-tool--maternity .ai-template-package-grid em,
.ai-template-tool--wedding.ai-template-tool--business .ai-template-package-grid em,
.ai-template-tool--wedding.ai-template-tool--nationalday .ai-template-package-grid em,
.ai-template-tool--wedding.ai-template-tool--aodaitet .ai-template-package-grid em,
.ai-template-tool--wedding.ai-template-tool--cotrang .ai-template-package-grid em {
    font-size: 11px;
    line-height: 1;
    margin: -27px auto 3px;
    padding: 5px 9px;
    white-space: nowrap;
}

.ai-template-tool--wedding.ai-template-tool--baby .ai-template-package-grid strong,
.ai-template-tool--wedding.ai-template-tool--compose .ai-template-package-grid strong,
.ai-template-tool--wedding.ai-template-tool--lienquan .ai-template-package-grid strong,
.ai-template-tool--wedding.ai-template-tool--trungthu .ai-template-package-grid strong,
.ai-template-tool--wedding.ai-template-tool--birthday .ai-template-package-grid strong,
.ai-template-tool--wedding.ai-template-tool--christmas .ai-template-package-grid strong,
.ai-template-tool--wedding.ai-template-tool--maternity .ai-template-package-grid strong,
.ai-template-tool--wedding.ai-template-tool--business .ai-template-package-grid strong,
.ai-template-tool--wedding.ai-template-tool--nationalday .ai-template-package-grid strong,
.ai-template-tool--wedding.ai-template-tool--aodaitet .ai-template-package-grid strong,
.ai-template-tool--wedding.ai-template-tool--cotrang .ai-template-package-grid strong {
    color: #101828;
    font-size: 15px;
    font-weight: 760;
    line-height: 1.25;
}

.ai-template-tool--wedding.ai-template-tool--baby .ai-template-package-price,
.ai-template-tool--wedding.ai-template-tool--compose .ai-template-package-price,
.ai-template-tool--wedding.ai-template-tool--lienquan .ai-template-package-price,
.ai-template-tool--wedding.ai-template-tool--trungthu .ai-template-package-price,
.ai-template-tool--wedding.ai-template-tool--birthday .ai-template-package-price,
.ai-template-tool--wedding.ai-template-tool--christmas .ai-template-package-price,
.ai-template-tool--wedding.ai-template-tool--maternity .ai-template-package-price,
.ai-template-tool--wedding.ai-template-tool--business .ai-template-package-price,
.ai-template-tool--wedding.ai-template-tool--nationalday .ai-template-package-price,
.ai-template-tool--wedding.ai-template-tool--aodaitet .ai-template-package-price,
.ai-template-tool--wedding.ai-template-tool--cotrang .ai-template-package-price {
    align-items: center;
    display: inline-flex;
    font-size: 13px;
    font-weight: 820;
    gap: 5px;
    justify-content: center;
}

.ai-template-tool--wedding.ai-template-tool--baby .ai-template-package-grid del,
.ai-template-tool--wedding.ai-template-tool--compose .ai-template-package-grid del,
.ai-template-tool--wedding.ai-template-tool--lienquan .ai-template-package-grid del,
.ai-template-tool--wedding.ai-template-tool--trungthu .ai-template-package-grid del,
.ai-template-tool--wedding.ai-template-tool--birthday .ai-template-package-grid del,
.ai-template-tool--wedding.ai-template-tool--christmas .ai-template-package-grid del,
.ai-template-tool--wedding.ai-template-tool--maternity .ai-template-package-grid del,
.ai-template-tool--wedding.ai-template-tool--business .ai-template-package-grid del,
.ai-template-tool--wedding.ai-template-tool--nationalday .ai-template-package-grid del,
.ai-template-tool--wedding.ai-template-tool--aodaitet .ai-template-package-grid del,
.ai-template-tool--wedding.ai-template-tool--cotrang .ai-template-package-grid del {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ai-template-tool--wedding.ai-template-tool--baby .ai-template-package-grid small,
.ai-template-tool--wedding.ai-template-tool--compose .ai-template-package-grid small,
.ai-template-tool--wedding.ai-template-tool--lienquan .ai-template-package-grid small,
.ai-template-tool--wedding.ai-template-tool--trungthu .ai-template-package-grid small,
.ai-template-tool--wedding.ai-template-tool--birthday .ai-template-package-grid small,
.ai-template-tool--wedding.ai-template-tool--christmas .ai-template-package-grid small,
.ai-template-tool--wedding.ai-template-tool--maternity .ai-template-package-grid small,
.ai-template-tool--wedding.ai-template-tool--business .ai-template-package-grid small,
.ai-template-tool--wedding.ai-template-tool--nationalday .ai-template-package-grid small,
.ai-template-tool--wedding.ai-template-tool--aodaitet .ai-template-package-grid small,
.ai-template-tool--wedding.ai-template-tool--cotrang .ai-template-package-grid small {
    align-self: end;
    border-radius: 6px;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    margin-top: 1px;
    padding: 4px 4px;
    white-space: nowrap;
}

.ai-template-tool--wedding .ai-template-package-field,
.ai-template-tool--memorial .ai-template-package-field {
    gap: 8px;
}

.ai-template-tool--wedding .ai-template-package-grid,
.ai-template-tool--memorial .ai-template-package-grid {
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-template-tool--wedding .ai-template-package-grid label,
.ai-template-tool--memorial .ai-template-package-grid label {
    gap: 4px;
    min-height: 96px;
    padding: 14px 6px 8px;
}

.ai-template-tool--wedding .ai-template-package-grid em,
.ai-template-tool--memorial .ai-template-package-grid em {
    font-size: 10px;
    margin: -23px auto 2px;
    padding: 4px 7px;
}

.ai-template-tool--wedding .ai-template-package-grid strong,
.ai-template-tool--memorial .ai-template-package-grid strong {
    font-size: 13px;
}

.ai-template-tool--wedding .ai-template-package-price,
.ai-template-tool--memorial .ai-template-package-price {
    font-size: 12px;
    gap: 4px;
}

.ai-template-tool--wedding .ai-template-package-price i,
.ai-template-tool--memorial .ai-template-package-price i {
    font-size: 12px;
}

.ai-template-tool--wedding .ai-template-package-grid del,
.ai-template-tool--memorial .ai-template-package-grid del {
    font-size: 11px;
}

.ai-template-tool--wedding .ai-template-package-grid small,
.ai-template-tool--memorial .ai-template-package-grid small {
    font-size: 9px;
    padding: 4px;
}

@media (max-width: 760px) {
    .ai-template-tool--wedding .ai-template-package-grid,
    .ai-template-tool--memorial .ai-template-package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-template-tool--wedding .ai-template-package-field,
    .ai-template-tool--memorial .ai-template-package-field {
        gap: 8px;
        padding: 10px;
    }

    .ai-template-tool--wedding .ai-template-package-grid label,
    .ai-template-tool--memorial .ai-template-package-grid label {
        gap: 3px;
        min-height: 86px;
        padding: 12px 6px 8px;
    }

    .ai-template-tool--wedding .ai-template-package-grid strong,
    .ai-template-tool--memorial .ai-template-package-grid strong {
        font-size: 12px;
    }

    .ai-template-tool--wedding .ai-template-package-grid small,
    .ai-template-tool--memorial .ai-template-package-grid small {
        white-space: normal;
    }

    .ai-template-tool--wedding .ai-template-submit,
    .ai-template-tool--memorial .ai-template-submit {
        font-size: 15px;
        line-height: 1.25;
        min-height: 50px;
    }
}

@media (max-width: 360px) {
    .ai-template-tool--wedding .ai-template-package-grid,
    .ai-template-tool--memorial .ai-template-package-grid {
        grid-template-columns: 1fr;
    }
}

.ai-template-category__photo,
.ai-template-card img,
.ai-template-category--memorial .ai-template-category__photo,
.ai-template-category--trungthu .ai-template-category__photo,
.ai-template-category--memorial .ai-template-card img,
.ai-template-related img,
.ai-template-showcase__main,
.ai-template-showcase__thumbs img,
.ai-template-showcase__thumbs--floating img,
.ai-template-wedding-collage img,
.ai-template-wedding-collage > img:only-child {
    background: #f8fafc;
    object-fit: contain;
}

.ai-template-card img,
.ai-template-related img,
.ai-template-showcase__thumbs img,
.ai-template-showcase__thumbs--floating img {
    padding: 6px;
}

.ai-template-related img {
    object-fit: contain;
    padding: 0;
}

.ai-template-card > a,
.ai-template-card img {
    background: #f8fafc;
}

@media (max-width: 760px) {
    .ai-template-category--trungthu .ai-template-category__hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .ai-template-category--trungthu .ai-template-category__visual {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .ai-template-category--trungthu .ai-template-category__photo,
    .ai-template-category--trungthu .ai-template-category__photo--1 {
        grid-row: auto;
        max-height: none;
        width: 100%;
    }

    .ai-template-category--trungthu .ai-template-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .ai-template-category--trungthu .ai-template-category__visual {
        grid-template-columns: 1fr;
    }

    .ai-template-category--trungthu .ai-template-category__photo {
        max-width: 240px;
    }
}
