/* ===== Subscribe page ===== */

.subscribe_page_container {
    max-width: 1100px;
    margin: 0 auto;
}

.subscribe_page_container .page_container_header {
    margin-bottom: 20px;
}

.subscribe_page_container .page_container_title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.page_container_state__error {
    color: #8a1f1f;
}

.page_container_category,
.category_header {
    margin-bottom: 32px;
}

.category_header_title {
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
}

.category_header_count {
    font-size: 14px;
    font-weight: 400;
    color: #5c6f8a;
}

.page_container_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* ===== Card ===== */

.page_container_card {
    width: 100%;
    height: fit-content;
    border-radius: 12px;
    border: 1px solid #3acb914d;
    background: #fff;
    padding: 24px;
    text-align: left;
    overflow: visible;
    transition: all 200ms ease;
    cursor: pointer;
}

.page_container_card.page_container_card__not_purchased {
    border-color: #dbdfe6;
}

.page_container_card:hover {
    border-color: #dbdfe6;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.page_container_card.page_container_card__not_purchased:hover {
    transform: translateY(-2px);
}

@media (min-width: 576px) {
    .page_container_card {
        width: calc(50% - 16px);
    }
}

@media (min-width: 992px) {
    .page_container_card {
        width: calc(33.3333% - 16px);
    }
}

/* ===== Card header ===== */

.container_card_header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.card_header_icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: #3acb9133;
    transition: background-color 200ms ease;
}

.card_header_icon.card_header_icon__not_purchased {
    background-color: #048ef11a;
}

.page_container_card.page_container_card__not_purchased:hover .card_header_icon.card_header_icon__not_purchased {
    background-color: #048ef133;
}

.header_icon_text {
    font-size: 12px;
    font-weight: 700;
    color: #3acb91;
}

.header_icon_text.header_icon_text__not_purchased {
    color: #048ef1;
}

.card_header_info {
    min-width: 0;
    flex: 1;
}

.header_info_row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.header_info_title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 200ms ease;
}

.page_container_card.page_container_card__not_purchased:hover .header_info_title {
    color: #048ef1;
}

.header_info_badge__purchased {
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    padding: 2px 10px;
    border: 1px solid #dbdfe6;
    border-radius: 22px;
    white-space: nowrap;
    background-color: #3acb9133;
    color: #3acb91;
}

.header_info_subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #048ef1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page_container_card__not_purchased .header_info_subtitle {
    font-weight: 500;
    color: #5c6f8a;
}

/* ===== Enhance panel ===== */

.container_card_enhance {
    position: relative;
    margin-top: 10px;
}

.enhance_panel {
    position: absolute;
    left: 5px;
    right: -5px;
    top: 32px;
    padding: 10px 14px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(23, 43, 77, 0.18);
    z-index: 999;
}

.enhance_panel_title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.enhance_panel_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.enhance_panel_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dbdfe6;
    cursor: pointer;
}

.enhance_panel_item__active {
    border-color: #048ef1;
    background: #048ef10d;
}

.panel_item_name {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: #1f2937;
    user-select: none;
}

.panel_item_price {
    font-size: 12px;
    font-weight: 800;
    color: #048ef1;
}

.enhance_panel_add_button {
    width: 100%;
    font-size: 12px;
    line-height: 26px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background-color: #048ef1;
    color: #fff;
    cursor: pointer;
}

/* ===== Tooltip (addon description) ===== */

.addon_tooltip_wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.addon_tooltip_icon {
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    border-radius: 999px;
    border: 1px solid #5c6f8a;
    color: #5c6f8a;
    text-align: center;
    cursor: default;
    user-select: none;
}

/* popup */
.addon_tooltip_popup {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: 340px;
    max-width: 70vw;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 12px 14px;
    color: #1f2937;
    box-shadow: 0 18px 40px rgba(23, 43, 77, 0.18);
    background: #ffffff;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.addon_tooltip_popup:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
    filter: drop-shadow(0 -1px 0 #d9e1ee);
}

.addon_tooltip_wrap:hover .addon_tooltip_popup {
    opacity: 1;
    visibility: visible;
}

/* ===== Buttons ===== */

.container_card_button__enhance {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border: none;
    border-radius: 6px;
    color: #048ef1;
    background-color: transparent;
    transition: background-color 200ms ease;
    cursor: pointer;
}

.enhance_plus {
    font-size: 24px;
    line-height: 18px;
    font-weight: 300;
    margin-right: 6px;
    vertical-align: -2px;
}

.container_card_button__enhance:hover {
    background-color: #048ef11a;
}

/* icon rows */

.container_card_meta {
    margin-top: 10px;
}

.card_meta_row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
}

.card_meta_row__green {
    color: #3acb91;
}

.card_meta_row__grey {
    margin-top: 4px;
    color: #5c6f8a;
}

.card_meta_icon {
    width: 12px;
    height: 12px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: 12px 12px;
}

.card_meta_icon__chat {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgb(58 203 145)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a4 4 0 0 1-4 4H7l-4 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/></svg>");
}

.card_meta_icon__infinity {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgb(58 203 145)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18.178 8.822a4 4 0 0 1 0 5.656l-.707.707a4 4 0 0 1-5.656 0L12 14.071l.185.185a4 4 0 0 0 5.656 0l.337-.337a4 4 0 0 0 0-5.656l-.337-.337a4 4 0 0 0-5.656 0L12 9.929l-.185-.185a4 4 0 0 0-5.656 0l-.337.337a4 4 0 0 0 0 5.656l.337.337a4 4 0 0 0 5.656 0L12 14.071'/></svg>");
}

.card_meta_icon__clock {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6b86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v6l4 2'/></svg>");
}

.card_meta_icon__calendar {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6b86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/></svg>");
}