#mobimatter-esim-container {
    max-width: 800px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    direction: rtl;
}

.search-container {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-container h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px;
}

#country-search {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
    text-align: right;
}

#country-search:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: right;
    display: none;
}

.suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion:hover, .suggestion.selected {
    background-color: #f0f7ff;
}

.suggestion img {
    width: 24px;
    height: 18px;
    border: 1px solid #eee;
}

.suggestion span {
    flex-grow: 1;
}

.no-results {
    padding: 15px;
    color: #888;
    text-align: center;
}

.popular-countries {
    margin-top: 20px;
}

.popular-countries h3 {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    text-align: center;
}

.country-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.country-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.country-item img {
    width: 48px;
    height: 36px;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid #eee;
}

/* סגנונות דף מדינה */
#mobimatter-esim-country-page {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.country-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.country-header h1 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 32px;
    color: #333;
}

.country-header h1 img {
    width: 48px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.country-custom-content, .country-default-content {
    margin-bottom: 40px;
    line-height: 1.7;
    color: #444;
}

.country-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.packages-list {
    display: grid;
    gap: 30px;
}

.package {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.package:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.package h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.package-details {
    margin-bottom: 20px;
}

.price {
    font-size: 24px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
}

.data, .validity {
    margin-bottom: 8px;
    font-size: 16px;
}

.package-description {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.buy-now {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s;
}

.buy-now:hover {
    background-color: #45a049;
}

.no-packages, .country-not-found {
    text-align: center;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 30px 0;
}

.no-packages p, .country-not-found p {
    color: #666;
    margin-bottom: 20px;
}

.button {
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #3a7bc8;
}

/* דף הצלחה ושגיאה */
#mobimatter-esim-success, #mobimatter-esim-error {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#mobimatter-esim-success h1 {
    color: #4CAF50;
}

#mobimatter-esim-error h1 {
    color: #e74c3c;
}

/* עיצוב אזור אישי */
.esim-purchases {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.esim-purchases th, .esim-purchases td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.esim-purchases th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.esim-purchases tr:hover {
    background-color: #f9f9f9;
}

.esim-purchases img.qr-code {
    max-width: 80px;
    height: auto;
}

.esim-data-remaining {
    font-weight: bold;
    color: #4CAF50;
}

@media (max-width: 768px) {
    .country-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .package h2 {
        font-size: 18px;
    }
    
    .price {
        font-size: 20px;
    }
    
    .country-header h1 {
        font-size: 24px;
    }
    
    .esim-purchases th, .esim-purchases td {
        padding: 8px 10px;
        font-size: 14px;
    }
}