/* Base Layout */
.tc-pricing-container {
    width: 100%;
    margin: 0 auto;
}

.tc-pricing-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
    /* Default 3 cols */
}

/* Columns classes handled by PHP inline styles or simple classes */
.tc-cols-1 .tc-pricing-grid {
    grid-template-columns: 1fr;
}

.tc-cols-2 .tc-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
}

.tc-cols-3 .tc-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
}

.tc-cols-4 .tc-pricing-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Card Defaults */
.tc-pricing-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tc-pc-header {
    text-align: center;
    margin-bottom: 20px;
}

.tc-pc-title {
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: 600;
}

.tc-pc-price-wrapper {
    min-height: 60px;
    /* Prevent jump on toggle */
    display: flex;
    justify-content: center;
    align-items: center;
}

.tc-pc-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.tc-currency {
    font-size: 24px;
    vertical-align: top;
    margin-right: 2px;
}

.tc-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.tc-period {
    font-size: 16px;
    color: #888;
    margin-left: 5px;
}

.tc-pc-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex-grow: 1;
    text-align: left;
}

.tc-pc-features li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
}

.tc-pc-features li i {
    color: #27ae60;
    margin-right: 10px;
    margin-top: 4px;
}

.tc-pc-footer {
    text-align: center;
    margin-top: 20px;
}

.tc-pc-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.tc-pc-btn:hover {
    background-color: #555;
}

/* Featured / Ribbon */
.tc-featured-plan {
    border-color: #3498db;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transform: scale(1.02);
}

.tc-pricing-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: #3498db;
    color: #fff;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 8px;
}


/* Toggle Switch */
.tc-pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.tc-pt-label {
    font-size: 16px;
    font-weight: 600;
    margin: 0 15px;
    cursor: pointer;
    transition: color 0.3s;
}

/* Active class management will be done via JS adding classes to parent to style labels if needed, or just static */
.tc-pricing-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.tc-pricing-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tc-pt-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.tc-pt-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.tc-pt-slider {
    background-color: #2196F3;
}

input:focus+.tc-pt-slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.tc-pt-slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.tc-pt-slider.round {
    border-radius: 34px;
}

.tc-pt-slider.round:before {
    border-radius: 50%;
}


/* Styles Presets */

/* Style 2: Modern Clean (No borders, shadow focus) */
.tc-pricing-style-2 .tc-pricing-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tc-pricing-style-2 .tc-featured-plan {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Style 3: Minimal */
.tc-pricing-style-3 .tc-pricing-card {
    border: none;
    background: transparent;
    text-align: left;
    padding: 0;
}

.tc-pricing-style-3 .tc-pc-header,
.tc-pricing-style-3 .tc-pc-footer,
.tc-pricing-style-3 .tc-pc-price {
    justify-content: flex-start;
    text-align: left;
}

.tc-pricing-style-3 .tc-featured-plan {
    transform: none;
    box-shadow: none;
    border-left: 2px solid #3498db;
    padding-left: 20px;
}

/* Style 4: Dark Mode */
.tc-pricing-style-4 .tc-pricing-card {
    background: #222;
    border-color: #333;
    color: #eee;
}

.tc-pricing-style-4 .tc-pc-title {
    color: #fff;
}

.tc-pricing-style-4 .tc-pc-btn {
    background: #fff;
    color: #222;
}

/* Style 5: Material */
.tc-pricing-style-5 .tc-pricing-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.tc-pricing-style-5 .tc-pc-header {
    background: #f5f5f5;
    padding: 30px;
    margin-bottom: 0;
}

.tc-pricing-style-5 .tc-featured-plan .tc-pc-header {
    background: #3498db;
    color: #fff;
}

.tc-pricing-style-5 .tc-featured-plan .tc-currency,
.tc-pricing-style-5 .tc-featured-plan .tc-value,
.tc-pricing-style-5 .tc-featured-plan .tc-period {
    color: #fff;
}

.tc-pricing-style-5 .tc-pc-features {
    padding: 30px;
    margin: 0;
}

.tc-pricing-style-5 .tc-pc-footer {
    padding: 0 30px 30px;
    margin-top: 0;
}


/* Responsive */
@media (max-width: 991px) {
    .tc-pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .tc-pricing-grid {
        grid-template-columns: 1fr !important;
    }
}