.check-esim-wrapper {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
}

.check-esim-wrapper * {
    box-sizing: border-box;
}

.check-esim-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.check-esim-form {
    position: relative;
    margin-bottom: 15px;
}

div#check-esim {
    min-height: 400px;
    border-radius: 10px;
    border: 2px solid red;
    background: #fff;
    padding: 40px;
    box-sizing: border-box;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.check-esim-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px #ff000033;
    padding: 0 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 75px;
    width: 100%;
}

.check-esim-input-group:focus-within {
    box-shadow: 0 6px 25px rgba(74, 20, 140, 0.1);
    border-color: rgba(74, 20, 140, 0.3);
}

#check-esim-input, #check-esim-input-modal {
    flex: 1;
    border: none !important;
    outline: none !important;
    font-size: 16px;
    padding: 0 !important;
    margin: 0 !important;
    color: #333;
    background: transparent !important;
    box-shadow: none !important;
    min-height: auto !important;
}

#check-esim-input::placeholder {
    color: #999;
}

#check-esim-btn-search, #check-esim-btn-clear {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
}

#check-esim-btn-search svg {
    transition: transform 0.2s ease;
}

#check-esim-btn-search:hover svg {
    transform: scale(1.1);
}

#check-esim-btn-clear {
    font-size: 24px;
    color: #4A148C;
    margin-left: 10px !important;
}

.check-esim-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    z-index: 10;
    max-height: 250px;
    overflow-y: auto;
    text-align: left;
}

.check-esim-suggestion-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
    color: #333;
    transition: background 0.2s;
}

.check-esim-suggestion-item:last-child {
    border-bottom: none;
}

.check-esim-suggestion-item:hover {
    background: #fafafa;
    color: #4A148C;
}

.check-esim-desc {
    font-size: 14px;
    color: #888;
    margin-top: 20px;
}

/* Modal */
.check-esim-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

.check-esim-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    position: relative;
    text-align: center;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.check-esim-modal-close {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.check-esim-modal-close:hover {
    color: #333;
}

.check-esim-input-group-modal {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    border: 1px solid #f0f0f0;
    margin-bottom: 25px;
}

/* Result Area */
#check-esim-result-area {
    margin-top: 20px;
}

.esim-result-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
}

.esim-result-success {
    background-color: #eafbe4;
    color: #2e7d32;
}

.esim-result-error {
    background-color: #ffebeb;
    color: #c62828;
}

.esim-result-box svg {
    margin-right: 10px;
}

.esim-buy-link {
    margin-left: 15px;
    color: #4A148C;
    text-decoration: underline;
    font-weight: 600;
}

.esim-suggestions-box {
    margin-top: 20px;
    text-align: left;
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 10px;
}

.esim-suggestions-box h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #555;
}

.esim-suggestions-box ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
    color: #333;
}

.esim-suggestions-box li {
    margin-bottom: 5px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .check-esim-wrapper {
        padding: 0 20px;
    }
    .check-esim-title {
        font-size: 24px;
    }
    .check-esim-modal-content {
        padding: 30px 20px;
    }
}






/* ==================================================
   Check eSIM List - UI giống mẫu
   Shortcode: [check_esim_list]
================================================== */

body .check-esim-device-list-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    font-family: inherit !important;
    color: #221316 !important;
}

/* Nếu muốn nền hồng nhạt toàn khu vực */
body .check-esim-device-list-wrap {
    background: #fff7f8 !important;
}

/* Tiêu đề phía trên */
body .check-esim-device-list-heading {
    margin: 0 0 28px 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    color: #5d6874 !important;
}

/* Khối accordion */
body .check-esim-device-accordion {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

/* Item đóng */
body .check-esim-device-item {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
}

/* Item đang mở */
body .check-esim-device-item.is-open {
    background: #ffffff !important;
    border: 1px solid #ff1d2e !important;
    border-radius: 6px !important;
}

/* Header item */
body .check-esim-device-header {
    width: 100% !important;
    min-height: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    font-family: inherit !important;
    text-align: left !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

body .check-esim-device-header:hover,
body .check-esim-device-header:focus,
body .check-esim-device-header:active {
    background: #ffffff !important;
    color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Tên hãng */
body .check-esim-device-brand {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #211316 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

body .check-esim-device-item.is-open .check-esim-device-brand {
    color: #ff0000 !important;
}

/* Icon cộng trừ */
body .check-esim-device-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    flex: 0 0 16px !important;
    position: relative !important;
    display: block !important;
    margin-left: 20px !important;
}

body .check-esim-device-icon::before,
body .check-esim-device-icon::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    background: #6c5f62 !important;
    border-radius: 10px !important;
    transform: translate(-50%, -50%) !important;
    transition: all 0.2s ease !important;
}

body .check-esim-device-icon::before {
    width: 14px !important;
    height: 2px !important;
}

body .check-esim-device-icon::after {
    width: 2px !important;
    height: 14px !important;
}

body .check-esim-device-item.is-open .check-esim-device-icon::before {
    background: #ff0000 !important;
}

body .check-esim-device-item.is-open .check-esim-device-icon::after {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Nội dung khi mở */
body .check-esim-device-content {
    display: block !important;
    margin: 0 !important;
    padding: 0 24px 18px 24px !important;
    background: #ffffff !important;
}

body .check-esim-device-content[hidden] {
    display: none !important;
}

/* Danh sách model */
body .check-esim-device-models {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Từng model */
body .check-esim-device-model {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 30px !important;
    margin: 0 !important;
    padding: 6px 12px !important;

    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 4px !important;
    box-shadow: none !important;

    color: #5c5c5c !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
    white-space: nowrap !important;

    transition: all 0.2s ease !important;
}

body .check-esim-device-model:hover {
    border-color: #ffccd0 !important;
    color: #ff0000 !important;
    background: #fffafa !important;
}

/* Ghi chú iPhone */
body .check-esim-device-note {
    margin: 20px 0 0 0 !important;
    padding: 0 !important;
    color: #555555 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}

body .check-esim-device-note strong {
    display: inline-block !important;
    margin: 0 0 2px 0 !important;
    color: #4d4d4d !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* Mobile */
@media (max-width: 768px) {
    body .check-esim-device-accordion {
        gap: 10px !important;
    }

    body .check-esim-device-header {
        min-height: 50px !important;
        height: 50px !important;
        padding: 0 16px !important;
    }

    body .check-esim-device-brand {
        font-size: 14px !important;
    }

    body .check-esim-device-content {
        padding: 0 16px 16px 16px !important;
    }

    body .check-esim-device-models {
        gap: 8px !important;
    }

    body .check-esim-device-model {
        min-height: 29px !important;
        padding: 6px 10px !important;
        font-size: 12.5px !important;
        white-space: normal !important;
    }

    body .check-esim-device-note {
        margin-top: 18px !important;
        font-size: 12.5px !important;
    }
}