.limelitepackage-features-table img.limelitepackage-icon-thumb,
.limelitepackage-icon-thumb {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.limelitepackage-features-table td,
.limelitepackage-transactions-table td {
    vertical-align: middle;
}

.limelitepackage-tx-filter {
    margin-bottom: 12px;
}

.limelitepackage-tx-filter .form-group {
    margin-right: 8px;
}

#limelitePackageEditModal .modal-body .form-group {
    margin-bottom: 12px;
}

#limelitePackageEditModal .limelitepackage-error {
    margin-top: 10px;
}

/* --- Transaction detail popup --- */
.limelitepackage-tx-detail .lp-tx-row {
    margin-bottom: 10px;
    line-height: 1.5;
}
.limelitepackage-tx-detail .lp-tx-label {
    font-weight: 600;
    display: inline-block;
    min-width: 130px;
    vertical-align: top;
}
.limelitepackage-tx-detail .lp-tx-features {
    display: inline-block;
    vertical-align: top;
}
.limelitepackage-tx-detail .lp-tx-features .lp-tx-feature {
    display: block;
}
.limelitepackage-tx-detail .lp-tx-expire-btn {
    color: #1565c0;
    font-weight: 600;
}
.limelitepackage-tx-detail .lp-tx-related-title {
    font-weight: 600;
    margin: 18px 0 8px;
}
.limelitepackage-tx-detail .lp-tx-related table {
    margin-bottom: 0;
}
.limelitepackage-manage-tx-table td,
.limelitepackage-manage-tx-table th {
    vertical-align: middle;
}

/* --- MooApp WebView full page (Manage Transaction / detail) --- */
.limelitepackage-app-page {
    padding: 16px;
}
.limelitepackage-app-page .lp-app-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
}
.limelitepackage-app-page .lp-app-back {
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 600;
}
.limelitepackage-app-page .lp-tx-cancel-form {
    display: inline;
    margin: 0;
}

/* --- "Active more Features" button (sub-profile detail) --- */
.btn-profile-status-active-features {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    background: #2e7d32;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.btn-profile-status-active-features:hover {
    background: #1b5e20;
    color: #fff;
    text-decoration: none;
}
.btn-profile-status-active-features .btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* --- Profile status row: "Active features" icons + "Activate More" pill + two equal bars --- */
.profile-status .profile-status-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.profile-status .profile-status-activate-wrap {
    flex: 0 0 auto;
}
.btn-profile-activate-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e3effb;
    color: #1565c0;
    padding: 7px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.btn-profile-activate-more:hover,
.btn-profile-activate-more:focus {
    background: #d2e4f8;
    color: #0d47a1;
    text-decoration: none;
}
.btn-profile-activate-more .btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* Status bar + Feature on Homepage bar side by side, equal width */
.profile-status .profile-status-bars {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.profile-status .profile-status-bars > .profile-status-warp {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

/* "Feature on Homepage" bar — matches the green status bar (.btn-profile-status-approved) but blue */
.btn-profile-status-feature-homepage {
    display: block;
    padding: 10px;
    border-radius: 5px;
    background: #1565c0;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}
.btn-profile-status-feature-homepage:hover,
.btn-profile-status-feature-homepage:focus {
    background: #0d47a1;
    color: #fff;
    text-decoration: none;
}
.btn-profile-status-feature-homepage .btn-icon {
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
    margin-right: 4px;
}

/* --- Feature on Homepage popup ("Select upto three") --- */
.limelitepackage-feature-homepage .modal-body {
    padding: 18px 20px;
}
.limelitepackage-feature-homepage .lp-homepage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.limelitepackage-feature-homepage .lp-homepage-item {
    display: block;
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}
.limelitepackage-feature-homepage .lp-homepage-thumb {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f2f2;
}
.limelitepackage-feature-homepage .lp-homepage-thumb img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.limelitepackage-feature-homepage .lp-homepage-check {
    display: block;
    margin: 10px 0 0 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1f2d3d;
}
.limelitepackage-feature-homepage .lp-homepage-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,.6);
    pointer-events: none;
}
.limelitepackage-feature-homepage .lp-homepage-video .material-symbols-outlined {
    font-size: 36px;
}
.limelitepackage-feature-homepage .lp-homepage-days {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.limelitepackage-feature-homepage .lp-homepage-days > label {
    margin: 0;
    font-weight: 600;
}
.limelitepackage-feature-homepage .lp-homepage-days input[type="number"] {
    width: 60px;
    text-align: center;
    padding: 6px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
}
.limelitepackage-feature-homepage .lp-homepage-days-unit {
    color: #333;
}
.limelitepackage-feature-homepage .lp-homepage-available {
    margin-top: 12px;
    font-size: 13px;
    color: #777;
}
.limelitepackage-feature-homepage .lp-homepage-buy-more {
    font-weight: 600;
    color: #1565c0;
    cursor: pointer;
}
.limelitepackage-feature-homepage .modal-footer {
    text-align: center;
    border-top: 0;
    padding-top: 6px;
}
.limelitepackage-feature-homepage .modal-footer .btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    font-weight: 700;
    border: 0;
    border-radius: 8px;
    background: #1976d2;
    color: #fff;
}
.limelitepackage-feature-homepage .modal-footer .btn-block:hover,
.limelitepackage-feature-homepage .modal-footer .btn-block:focus {
    background: #1565c0;
    color: #fff;
}
.limelitepackage-buy-more .modal-body {
    padding: 18px 20px;
}
.limelitepackage-buy-more .lp-buymore-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.limelitepackage-buy-more .lp-buymore-field > label {
    margin: 7px 0 0;
    font-weight: 600;
    white-space: nowrap;
}
.limelitepackage-buy-more .lp-buymore-input {
    flex: 1 1 auto;
    min-width: 0;
}
.limelitepackage-buy-more .lp-buymore-input input[type="number"] {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
}
.limelitepackage-buy-more .lp-buymore-perday {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}
.limelitepackage-buy-more .modal-footer.lp-buymore-actions {
    text-align: left;
    border-top: 0;
    display: flex;
    gap: 10px;
}
.limelitepackage-buy-more .lp-buymore-actions .btn {
    min-width: 120px;
    border-radius: 6px;
    font-weight: 600;
}
.limelitepackage-buy-more .lp-buymore-actions .btn-primary {
    background: #1976d2;
    border-color: #1976d2;
    color: #fff;
}
.limelitepackage-buy-more .lp-buymore-actions .btn-primary:hover,
.limelitepackage-buy-more .lp-buymore-actions .btn-primary:focus {
    background: #1565c0;
    border-color: #1565c0;
    color: #fff;
}

/* --- Self-contained base styles so the Feature-on-Homepage / Buy-more popups render correctly
       on themes without Bootstrap (e.g. the MooApp webview opened on the bare ajax layout).
       Scoped under the block wrappers so they never leak to other components. --- */
.create_form.limelitepackage-feature-homepage,
.create_form.limelitepackage-buy-more {
    background: #fff;
}
.limelitepackage-feature-homepage .modal-footer,
.limelitepackage-buy-more .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 16px;
}
.limelitepackage-feature-homepage .alert,
.limelitepackage-buy-more .alert {
    margin: 0;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
}
.limelitepackage-feature-homepage .alert-warning,
.limelitepackage-buy-more .alert-warning {
    background: #fff8e1;
    border-color: #ffe0a3;
    color: #8a6d3b;
}
.limelitepackage-feature-homepage .alert-info,
.limelitepackage-buy-more .alert-info {
    background: #e8f4fd;
    border-color: #bce0fb;
    color: #31708f;
}
.limelitepackage-feature-homepage .alert-danger,
.limelitepackage-buy-more .alert-danger {
    background: #fdecea;
    border-color: #f5c6cb;
    color: #c62828;
}

/* --- Homepage widget: one user per slide, selected images arranged as a collage --- */
.limelitepackage-feature-homepage-lists .core-list-item {
    width: 100%;
}
.lp-feature-card {
    position: relative;
    height: 360px;
    background: #FFF;
    border-radius: 12px;
    overflow: hidden;
}
.lp-feature-collage {
    display: grid;
    gap: 4px;
    width: 100%;
    height: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    /* each cell stretches to its full track height so the absolute image fills it */
    align-items: stretch;
    justify-items: stretch;
}
.lp-feature-collage.lp-count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}
.lp-feature-collage.lp-count-2 {
    grid-template-rows: 1fr;
}
/* 3 images: first image is tall on the left, the other two stack on the right */
.lp-feature-collage.lp-count-3 .lp-feature-photo:first-child {
    grid-row: 1 / span 2;
}
.lp-feature-photo {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 0;
    min-width: 0;
}
/* fill the (stretched) grid cell via absolute positioning so the square thumbnail
   covers the whole cell — including the tall left cell that spans 2 rows, where a
   percentage height on the <img> would not resolve against an `fr` track */
.lp-feature-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.lp-feature-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,.6);
    pointer-events: none;
}
.lp-feature-video .material-symbols-outlined {
    font-size: 34px;
}
.lp-feature-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
    pointer-events: none;
    z-index: 2;
}
/* Admin-only "more (...)" delete control, top-right of each featured card. */
.lp-feature-admin-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: background .1s ease;
}
.lp-feature-admin-delete:hover {
    background: rgba(0,0,0,.8);
}
.lp-feature-admin-delete.disabled {
    opacity: .5;
    pointer-events: none;
}
.lp-feature-admin-delete .material-symbols-outlined {
    font-size: 22px;
}
.lp-feature-info {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}
.lp-feature-info .lp-feature-avatar,
.lp-feature-info img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}
.lp-feature-info .lp-feature-name {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.lp-feature-info .lp-feature-name:hover {
    color: #fff;
    text-decoration: underline;
}

/* prev / next navigation arrows on the featured-profiles slider */
.limelitepackage-feature-homepage-lists .lp-feature-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease;
}
.limelitepackage-feature-homepage-lists .lp-feature-arrow:hover,
.limelitepackage-feature-homepage-lists .lp-feature-arrow:focus {
    background: #fff;
    outline: none;
}
.limelitepackage-feature-homepage-lists .lp-feature-arrow.slick-disabled {
    opacity: .35;
    cursor: default;
}
.limelitepackage-feature-homepage-lists .lp-feature-prev {
    left: 12px;
}
.limelitepackage-feature-homepage-lists .lp-feature-next {
    right: 12px;
}
.limelitepackage-feature-homepage-lists .lp-feature-arrow .material-symbols-outlined {
    font-size: 26px;
    line-height: 1;
}

/* --- Buy popup (table layout) --- */
.limelitepackage-buy .limelitepackage-feature-table {
    width: 100%;
    margin: 0;
}
.limelitepackage-buy .limelitepackage-feature-table > tbody > tr > td,
.limelitepackage-buy .limelitepackage-feature-table > tfoot > tr > td {
    vertical-align: middle;
    padding: 10px 8px;
    border-top: 1px solid #eee;
}
.limelitepackage-buy .lp-col-icon {
    width: 52px;
    text-align: center;
    vertical-align: middle;
}
.limelitepackage-buy .lp-col-icon .lp-feature-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
}
.limelitepackage-buy .lp-col-check {
    width: 30px;
    text-align: center;
}
.limelitepackage-buy .lp-col-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
/* Mobile: shrink icon + checkbox columns ~30% AND let price wrap + shrink padding so the row fits.
   Without this, .lp-col-price's `white-space: nowrap` keeps the price cell at full text width,
   which pushes the whole table past the right edge of the modal on narrow screens. */
@media (max-width: 767px) {
    .limelitepackage-buy .lp-col-icon { width: 36px; }
    .limelitepackage-buy .lp-col-icon .lp-feature-icon img { width: 25px; height: 25px; }
    .limelitepackage-buy .lp-col-check { width: 21px; }
    .limelitepackage-buy .lp-col-check input[type="checkbox"] { width: 13px; height: 13px; }
    .limelitepackage-buy .modal-body { padding: 10px; overflow-x: hidden; }
    .limelitepackage-buy .limelitepackage-feature-table { table-layout: auto; word-break: break-word; }
    .limelitepackage-buy .limelitepackage-feature-table > tbody > tr > td,
    .limelitepackage-buy .limelitepackage-feature-table > tfoot > tr > td { padding: 8px 4px; font-size: 13px; }
    .limelitepackage-buy .lp-col-info .lp-feature-name { font-size: 13px; }
    .limelitepackage-buy .lp-col-info .lp-feature-desc { font-size: 11px; }
    .limelitepackage-buy .lp-col-price { white-space: normal; font-size: 13px; }
    .limelitepackage-buy .lp-tag-active { display: block !important; text-align: center; margin-top: 2px; font-size: 10px; padding: 0 6px; }
    .limelitepackage-buy .lp-total-row td { font-size: 14px; }
}
/* Footer (Subtotal / Discount / Final Total) */
.limelitepackage-buy .lp-foot-label {
    text-align: left;
    font-weight: 600;
}
.limelitepackage-buy .lp-discount-hint {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: normal;
    color: #888;
}
.limelitepackage-buy .lp-icon-check {
    color: #2e7d32;
    font-size: 20px;
    line-height: 1;
}
.limelitepackage-buy .lp-col-info .lp-feature-name {
    display: block;
    font-weight: 600;
}
.limelitepackage-buy .lp-col-info .lp-feature-desc {
    display: block;
    font-size: 12px;
    color: #888;
}
.limelitepackage-buy .lp-col-info .lp-feature-note {
    display: block;
    font-size: 11px;
    font-style: italic;
    color: #999;
}
.limelitepackage-buy .lp-col-price {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
}
.limelitepackage-buy .lp-tag-active {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
}
/* Force the Active tag onto its own line so the price stays readable and the row
   description has more horizontal room (was inline-after-price with margin-left). */
.limelitepackage-buy .lp-combo-row .lp-feature-name {
    color: #c62828;
}
.limelitepackage-buy .lp-combo-disabled .lp-feature-name,
.limelitepackage-buy .lp-combo-disabled .lp-col-price {
    color: #999;
}
.limelitepackage-buy .lp-tag-unavailable {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #f0f0f0;
    color: #888;
    font-size: 11px;
}
.limelitepackage-buy .lp-total-row td {
    border-top: 2px solid #ddd;
    font-size: 16px;
}
.limelitepackage-buy .form-alert {
    margin-top: 10px;
}
/* Full-size PAY NOW */
.limelitepackage-buy .modal-footer {
    text-align: center;
}
.limelitepackage-buy .lp-pay-now.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Self-contained base styles so the buy form renders correctly on themes that
       don't supply Bootstrap (e.g. the MooApp webview opened on the bare ajax layout).
       All scoped under .limelitepackage-buy so they never leak to other components. --- */
.create_form.limelitepackage-buy {
    background: #fff;
}
.limelitepackage-buy .modal-body {
    padding: 12px 15px;
}
.limelitepackage-buy .modal-footer {
    padding: 12px 15px;
    border-top: 1px solid #eee;
}
.limelitepackage-buy .limelitepackage-feature-table {
    border-collapse: collapse;
    background: transparent;
}
.limelitepackage-buy .lp-pay-now.btn-block {
    border: 0;
    border-radius: 6px;
    background: #1565c0;
    color: #fff;
    cursor: pointer;
    line-height: 1.4;
}
.limelitepackage-buy .lp-pay-now.btn-block:hover,
.limelitepackage-buy .lp-pay-now.btn-block:focus {
    background: #0d47a1;
    color: #fff;
}
.limelitepackage-buy .form-alert .alert-danger {
    margin: 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #c62828;
}
.limelitepackage-buy .lp-feature-checkbox,
.limelitepackage-buy .lp-feature-checkbox-static {
    margin: 0;
}

/* --- Active features row (sub-profile detail): all features as circular icons,
       active icon when active on this sub-profile, otherwise the un-active icon --- */
.limelitepackage-feature-icons {
    flex: 1 1 auto;
    min-width: 0;
}
.limelitepackage-feature-icons .lp-feature-icons-title {
    font-weight: 700;
    margin-bottom: 6px;
}
.limelitepackage-feature-icons .lp-feature-icons-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
/* My Profiles select page: extra spacing between the icon row and the Select button. */
.limelitepackage-feature-icons.lp-on-select .lp-feature-icons-row {
    margin-bottom: 12px;
}
.limelitepackage-feature-icons .lp-feature-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
}
.limelitepackage-feature-icons .lp-feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}
/* Inactive icons are clickable: they open the "Activate More" popup pre-selected on that feature. */
a.lp-feature-icon.is-inactive {
    cursor: pointer;
    text-decoration: none;
    transition: transform .1s ease, opacity .1s ease;
}
a.lp-feature-icon.is-inactive:hover {
    transform: scale(1.08);
    opacity: .85;
}

/* My Profiles / Select page: free-post affordance hint shown under the icons row.
   Only first sub-profile sees this — and only while quota is still available. */
.lp-free-hint {
    color: #888;
    font-style: italic;
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: 8px;
}
