/* MoreWPTools Shortcodes */

/* Button */
.mwpt-button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.mwpt-button-primary {
    background: var(--primary-color);
    color: #fff;
}

.mwpt-button-primary:hover {
    background: #054d00;
}

.mwpt-button-secondary {
    background: #f5f5f5;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.mwpt-button-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

body.dark-mode .mwpt-button-primary {
    background: var(--primary-color);
    color: #fff;
}

body.dark-mode .mwpt-button-secondary {
    background: #444;
    color: #fff;
    border-color: #fff;
}

/* Alert */
.mwpt-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
}

.mwpt-alert-info {
    background: #cce5ff;
    color: #004085;
    border-color: #b8daff;
}

.mwpt-alert-success {
    background: var(--light-green);
    color: #155724;
    border-color: #c3e6cb;
}

.mwpt-alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.mwpt-alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

body.dark-mode .mwpt-alert-info {
    background: #1a3855;
    color: #cce5ff;
    border-color: #1a3855;
}

body.dark-mode .mwpt-alert-success {
    background: #2a4d2a;
    color: #d4edda;
    border-color: #2a4d2a;
}

body.dark-mode .mwpt-alert-warning {
    background: #5c4b2e;
    color: #fff3cd;
    border-color: #5c4b2e;
}

body.dark-mode .mwpt-alert-error {
    background: #5c2d31;
    color: #f8d7da;
    border-color: #5c2d31;
}

/* Accordion */
.mwpt-accordion {
    margin-bottom: 20px;
}

.mwpt-accordion-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.mwpt-accordion-title {
    margin: 0;
    padding: 15px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--primary-color);
    background: #f5f5f5;
    transition: background 0.3s;
}

.mwpt-accordion-title:hover {
    background: #e0e0e0;
}

.mwpt-accordion-content {
    padding: 15px;
    display: none;
}

.mwpt-accordion-item-open .mwpt-accordion-content {
    display: block;
}

body.dark-mode .mwpt-accordion-item {
    background: #333;
    border-color: #444;
}

body.dark-mode .mwpt-accordion-title {
    background: #444;
    color: #fff;
}

body.dark-mode .mwpt-accordion-title:hover {
    background: #555;
}

body.dark-mode .mwpt-accordion-content {
    color: #e0e0e0;
}

/* Tabs */
.mwpt-tabs {
    margin-bottom: 20px;
}

.mwpt-tab-item {
    margin-bottom: 10px;
}

.mwpt-tab-title {
    margin: 0;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--primary-color);
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: background 0.3s;
}

.mwpt-tab-title:hover {
    background: #e0e0e0;
}

.mwpt-tab-active .mwpt-tab-title {
    background: var(--primary-color);
    color: #fff;
}

.mwpt-tab-content {
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    display: none;
}

.mwpt-tab-active .mwpt-tab-content {
    display: block;
}

body.dark-mode .mwpt-tab-item .mwpt-tab-title {
    background: #444;
    color: #fff;
    border-color: #444;
}

body.dark-mode .mwpt-tab-item .mwpt-tab-title:hover {
    background: #555;
}

body.dark-mode .mwpt-tab-active .mwpt-tab-title {
    background: var(--primary-color);
    color: #fff;
}

body.dark-mode .mwpt-tab-content {
    background: #333;
    border-color: #444;
    color: #e0e0e0;
}

/* Columns */
.mwpt-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.mwpt-columns-equal .mwpt-column {
    flex: 1;
    min-width: 250px;
}

.mwpt-columns-two-thirds .mwpt-column:nth-child(1) {
    flex: 2;
    min-width: 250px;
}

.mwpt-columns-two-thirds .mwpt-column:nth-child(2) {
    flex: 1;
    min-width: 250px;
}

.mwpt-columns-one-third .mwpt-column:nth-child(1) {
    flex: 1;
    min-width: 250px;
}

.mwpt-columns-one-third .mwpt-column:nth-child(2) {
    flex: 2;
    min-width: 250px;
}

.mwpt-column {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--box-shadow);
}

body.dark-mode .mwpt-column {
    background: #333;
    border-color: #444;
    color: #e0e0e0;
}

/* Call-to-Action */
.mwpt-cta {
    background: var(--light-green);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.mwpt-cta-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.mwpt-cta-content {
    margin-bottom: 15px;
}

.mwpt-cta-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background 0.3s;
}

.mwpt-cta-button:hover {
    background: #054d00;
}

body.dark-mode .mwpt-cta {
    background: #2a4d2a;
    border-color: #444;
}

body.dark-mode .mwpt-cta-title {
    color: #fff;
}

body.dark-mode .mwpt-cta-content {
    color: #e0e0e0;
}

body.dark-mode .mwpt-cta-button {
    background: var(--primary-color);
    color: #fff;
}

body.dark-mode .mwpt-cta-button:hover {
    background: #054d00;
}

/* Zigzag */
.mwpt-zigzag {
    margin-bottom: 20px;
}

.mwpt-zigzag-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.mwpt-zigzag-left {
    flex-direction: row;
}

.mwpt-zigzag-right {
    flex-direction: row-reverse;
}

.mwpt-zigzag-content {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.mwpt-zigzag-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.mwpt-zigzag-text {
    color: #333;
}

.mwpt-zigzag-image {
    flex: 1;
    max-width: 50%;
}

.mwpt-zigzag-image img {
    width: 100%;
    max-height: 200px; /* Cap the image height */
    object-fit: cover; /* Scale image to cover the area, maintaining aspect ratio */
    object-position: center; /* Center the image within the constrained area */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

body.dark-mode .mwpt-zigzag-content {
    background: #333;
    border-color: #444;
}

body.dark-mode .mwpt-zigzag-title {
    color: #fff;
}

body.dark-mode .mwpt-zigzag-text {
    color: #e0e0e0;
}

/* Responsive Styles (already includes Zigzag adjustments) */
@media (max-width: 768px) {
    .mwpt-zigzag-item {
        flex-direction: column !important;
    }

    .mwpt-zigzag-content,
    .mwpt-zigzag-image {
        max-width: 100%;
        width: 100%;
    }
}

/* Highlight */
.mwpt-highlight {
    padding: 2px 5px;
    border-radius: var(--border-radius);
}

.mwpt-highlight-green {
    background: #e2fae0; /* Light green, matching tab styling */
    color: #515151;
}

.mwpt-highlight-yellow {
    background: yellow; /* Light yellow */
    color: #000;
}

.mwpt-highlight-pink {
    background: #ffd1dc; /* Light pink */
    color: #721c24;
}

.mwpt-highlight-blue {
    background: #cce5ff; /* Light blue */
    color: #004085;
}

body.dark-mode .mwpt-highlight-green {
    background: #2a4d2a; /* Darker green for dark mode */
    color: #e0e0e0;
}

body.dark-mode .mwpt-highlight-yellow {
    background: #5c4b2e; /* Darker yellow */
    color: #fff3cd;
}

body.dark-mode .mwpt-highlight-pink {
    background: #5c2d31; /* Darker pink */
    color: #f8d7da;
}

body.dark-mode .mwpt-highlight-blue {
    background: #1a3855; /* Darker blue */
    color: #cce5ff;
}

/* List */
.mwpt-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.mwpt-list-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #333;
    font-size: 1rem;
}

/* Checkmark Style (Default) */
.mwpt-list-checkmark .mwpt-list-item::before {
    content: "\2713"; /* Checkmark Unicode */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

/* Bullet Style */
.mwpt-list-bullet .mwpt-list-item::before {
    content: "⭕"; /* Circular bullet */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* Dash Style */
.mwpt-list-dash .mwpt-list-item::before {
    content: "☑"; /* Dash */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

body.dark-mode .mwpt-list-item {
    color: #e0e0e0;
}

body.dark-mode .mwpt-list-checkmark .mwpt-list-item::before,
body.dark-mode .mwpt-list-bullet .mwpt-list-item::before,
body.dark-mode .mwpt-list-dash .mwpt-list-item::before {
    color: var(--primary-color);
}

/* Pricing Table */
.mwpt-pricing-table {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.mwpt-pricing-plan {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.mwpt-pricing-plan-featured {
    border: 2px solid var(--primary-color);
    position: relative;
    transform: scale(1.05);
}

.mwpt-pricing-plan-featured::before {
    content: "Featured";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.mwpt-pricing-plan-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.mwpt-pricing-plan-price {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.mwpt-pricing-plan-features {
    margin-bottom: 15px;
}

.mwpt-pricing-plan-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background 0.3s;
}

.mwpt-pricing-plan-button:hover {
    background: #054d00;
}

body.dark-mode .mwpt-pricing-plan {
    background: #333;
    border-color: #444;
}

body.dark-mode .mwpt-pricing-plan-featured {
    border-color: var(--primary-color);
}

body.dark-mode .mwpt-pricing-plan-featured::before {
    background: var(--primary-color);
    color: #fff;
}

body.dark-mode .mwpt-pricing-plan-title {
    color: #fff;
}

body.dark-mode .mwpt-pricing-plan-price {
    color: #e0e0e0;
}

body.dark-mode .mwpt-pricing-plan-button {
    background: var(--primary-color);
    color: #fff;
}

body.dark-mode .mwpt-pricing-plan-button:hover {
    background: #054d00;
}

/* Testimonial */
.mwpt-testimonial {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mwpt-testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.mwpt-testimonial-content {
    color: #333;
    font-style: italic;
    margin-bottom: 15px;
}

.mwpt-testimonial-meta {
    font-size: 0.9rem;
}

.mwpt-testimonial-name {
    color: var(--primary-color);
    font-weight: 500;
}

.mwpt-testimonial-title {
    color: #666;
    display: block;
}

body.dark-mode .mwpt-testimonial {
    background: #333;
    border-color: #444;
}

body.dark-mode .mwpt-testimonial-content {
    color: #e0e0e0;
}

body.dark-mode .mwpt-testimonial-name {
    color: #fff;
}

body.dark-mode .mwpt-testimonial-title {
    color: #ccc;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mwpt-columns {
        flex-direction: column;
    }

    .mwpt-columns .mwpt-column {
        flex: 1;
        min-width: 100%;
    }

    .mwpt-zigzag-item {
        flex-direction: column !important;
    }

    .mwpt-zigzag-content,
    .mwpt-zigzag-image {
        max-width: 100%;
        width: 100%;
    }

    .mwpt-pricing-table {
        flex-direction: column;
    }

    .mwpt-pricing-plan {
        min-width: 100%;
    }

    .mwpt-pricing-plan-featured {
        transform: none;
    }
}