/* COMS Template: custom_list_view_1 */

/* ── Grid ── */
.coms-clv1-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
}

/* ── Collapsed card ── */
.coms-clv1-card {
    background: #FFFFFF;
    color: #000000;
    border-radius: 10px;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.1490196078);
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Top section */
.coms-clv1-top-section {
    position: relative;
    background: #909090;
    border-radius: 8px 8px 0 0;
    padding: 8px 8px 8px 40px;
}

/* Rank wrapper with SVG badges */
.coms-clv1-rank-wrapper {
    position: absolute;
    top: 0px;
    left: 8px;
    width: 38px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coms-clv1-rank-badge-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.coms-clv1-rank-badge-1,
.coms-clv1-rank-badge-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.coms-clv1-rank-badge-2 {
    z-index: 1;
}

.coms-clv1-rank {
    position: relative;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.coms-clv1-new-badge {
    position: absolute;
    top: -8px;
    right: 8px;
    background: #f59f00;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
}

/* Top content: logo left, rating right */
.coms-clv1-top-content {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.coms-clv1-logo-link {
    text-decoration: none;
    display: block;
}

.coms-clv1-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    min-width: 131px;
}

.coms-clv1-logo {
    max-height: 50px;
    max-width: 131px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}

.coms-clv1-logo-placeholder {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
}

/* Rating wrapper (right side, stacked) */
.coms-clv1-rating-wrapper {
    min-width: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.coms-clv1-rating-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 30px;
}

.coms-clv1-review-link {
    font-size: 12px;
    color: #e99d0e;
    text-decoration: none;
    line-height: 1.2;
}

.coms-clv1-review-link:hover {
    text-decoration: none;
}

.coms-clv1-content {
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Offer title */
.coms-clv1-title {
    padding: 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: #000;
    line-height: 30px;
    margin: 0 0 20px 0;
    text-align: center;
    min-height: 60px;
}
.coms-clv1-title:hover {
    text-decoration: none;
    color: #000;
}

/* CTA button */
.coms-clv1-cta {
    width: 100%;
    margin-bottom: 16px;
    padding: 0 16px;
    box-sizing: border-box;
}

.coms-clv1-btn-cta {
    display: block;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    background: #4cb944;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.2s ease;
}

.coms-clv1-btn-cta:hover {
    background: #57de4d;
    color: #fff;
    text-decoration: none;
}

/* Toggle button */
.coms-clv1-toggle {
    color: #c37601;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.coms-clv1-toggle-icon {
    transition: transform 0.3s ease;
}

.coms-clv1-toggle--open .coms-clv1-toggle-icon {
    transform: rotate(180deg);
}

/* ── Expanded details ── */
.coms-clv1-details {
    width: 100%;
    box-sizing: border-box;
}

.coms-clv1-details-inner {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out;
}

.coms-clv1-details--open .coms-clv1-details-inner {
    max-height: 2000px;
}

.coms-clv1-details[hidden] {
    display: none;
}

/* Section */
.coms-clv1-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f6f6f6;
    border-radius: 10px;
}

.coms-clv1-section--footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-bottom: none;
}

.coms-clv1-section-title {
    font-size: 16px;
    text-align: left;
    font-weight: 700;
    color: #000;
    margin-bottom: 0;
    margin-top: 0;
}

/* Info list */
.coms-clv1-info-list {
    margin: 0;
    padding: 0;
}

.coms-clv1-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    line-height: 20px;
}

.coms-clv1-info-row:first-child {
    padding-top: 0;
}

.coms-clv1-info-row:last-child {
    border-bottom: none;
}

.coms-clv1-info-row .coms-clv1-info-label {
    font-weight: 400;
    flex-shrink: 0;
}

.coms-clv1-info-row .coms-clv1-info-value {
    font-weight: 600;
    text-align: right;
    margin: 0;
}

/* Payment methods */
.coms-clv1-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.coms-clv1-pm-all {
    font-size: 13px;
    color: #C37601;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.coms-clv1-pm-all:hover {
    text-decoration: none;
    color: #e99d0e;
}

.coms-clv1-pm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.coms-clv1-pm-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    min-height: 48px;
}

.coms-clv1-pm-logo {
    max-height: 68px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 0;
}

/* Responsible gambling footer */
.coms-clv1-footer-data {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.coms-clv1-responsible {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.coms-clv1-responsible-age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1.5px solid #9ca3af;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ca3af;
    flex-shrink: 0;
}

.coms-clv1-terms {
    color: #f59f00;
    text-decoration: none;
    font-weight: 500;
}

.coms-clv1-terms:hover {
    text-decoration: underline;
}

.coms-clv1-toggle--collapse {
    color: #f59f00;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .coms-clv1-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .coms-clv1-grid {
        grid-template-columns: 1fr;
    }
}
