﻿/* Domain Search Hosting Shortcode Styles */

.hosting-plan-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 100%;
    margin-bottom: 20px;
    gap: 20px;
}

@media (max-width: 768px) {
    .hosting-plan-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .hosting-action-column {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #f3f4f6;
    }
}

.hosting-image-column {
    flex-shrink: 0;
    margin-right: 15px;
}

.hosting-plan-image {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
    display: block;
}

.hosting-icon-placeholder {
    width: 60px;
    height: 60px;
    background-color: #F3E8FF;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7C3AED;
}

/* Content Section */
.hosting-info-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hosting-plan-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
    73:
}

.hosting-plan-description {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* Features List styling inside content */
.hosting-plan-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.hosting-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6B7280;
}

.hosting-feature-icon {
    color: #10B981;
    /* Green check */
    width: 16px;
    height: 16px;
}

/* Price & Action Section */
.hosting-action-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
    min-width: 120px;
}

.hosting-price-wrapper {
    text-align: right;
    margin-bottom: 8px;
}

.hosting-price-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.hosting-price-period {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-top: 4px;
}

.hosting-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Buttons */
.btn-change-plan {
    color: #EC4899;
    /* Pink */
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-change-plan:hover {
    color: #BE185D;
    text-decoration: none;
}

.btn-remove-hosting {
    background: none;
    border: none;
    padding: 0;
    color: #9CA3AF;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-remove-hosting:hover {
    color: #EF4444;
    box-shadow: none;
    /* Red on hover */
}

/* Hosting Remove Modal Styles (Detailed match to Domain Cart Modal) */
.hosting-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hosting-modal.active {
    opacity: 1;
    visibility: visible;
}

.hosting-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.hosting-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 95%;
    max-width: 420px;
    position: relative;
    z-index: 1000000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: hostingModalSlideUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.hosting-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hosting-modal-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hosting-modal-icon {
    width: 40px;
    height: 40px;
    background: #fee2e2;
    /* Red-ish for warning */
    color: #ef4444;
    /* Red text */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hosting-modal-icon svg {
    width: 20px;
    height: 20px;
}

.hosting-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.hosting-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #94a3b8;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    width: auto;
    height: auto;
}

.hosting-modal-close:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

.hosting-modal-body {
    padding: 1.5rem;
    text-align: center;
}

.hosting-modal-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.hosting-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hosting-btn-cancel {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.hosting-btn-cancel:hover {
    background: #f8fafc;
    color: #0f172a;
}

.hosting-btn-confirm {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: #ef4444;
    /* Red for remove */
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.hosting-btn-confirm:hover {
    background: #dc2626;
}

@keyframes hostingModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* New Styles for Updated Modals */

.hosting-btn-change-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: #1b8772;
    /* Pink */
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.hosting-btn-change-primary:hover {
    background: #db2777;
    transform: translateY(-1px);
}

.hosting-link-remove {
    background: none;
    border: none;
    color: #64748b;
    /* Gray text */
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    width: 100%;
    text-align: center;
    transition: color 0.2s;
}

.hosting-link-remove:hover {
    color: #ef4444;
    box-shadow: none;
    /* Red on hover */
}

/* Change Modal List Styles */
.hosting-change-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.hosting-change-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s, background-color 0.2s;
    background: #fff;
    text-align: left;
}

.hosting-change-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.hosting-change-item.current {
    background: #f0fdf4;
    /* Light green bg for current */
    border-color: #86efac;
}

.hosting-change-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hosting-change-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.hosting-change-price-block {
    font-size: 14px;
    color: #64748b;
}

/* WooCommerce Price Styling Override */
.hosting-change-price-block bdi {
    color: #0f172a;
    font-weight: 700;
}

.hosting-badge-current {
    font-size: 12px;
    color: #166534;
    background: #dcfce7;
    padding: 4px 10px;
    border-radius: 99px;
    font-weight: 600;
}

.hosting-btn-select-plan {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.hosting-btn-select-plan:hover {
    background: #1b8772;
    color: #fff;
    border-color: #1b8772;
}

/* Period Switcher Styles */
.hosting-period-switcher {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 99px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.hosting-period-btn {
    padding: 8px 24px;
    border: none;
    background: transparent;
    border-radius: 99px;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.hosting-period-btn.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hosting-period-btn:hover:not(.active) {
    color: #334155;
}

.hosting-change-list {
    display: none;
}

.hosting-change-list.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hosting-empty-msg {
    text-align: center;
    color: #94a3b8;
    margin: 20px 0;
    font-size: 14px;
}

/* FIX: Ensure Tab Lists are hidden when not active, overriding the forced flex above */
div[id^="hosting-list-"]:not(.active) {
    display: none !important;
}
