/**
 * COD优惠包邮弹窗 - 样式表
 * 包含10种高端弹窗样式和5种高端按钮方案
 */

/* ==================== 基础样式 ==================== */
* {
    box-sizing: border-box;
}

/* 遮罩层 */
.cod-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 弹窗容器 */
.cod-popup-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 500px;
    width: 90%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: #1a1a2e;
    /* Fallback background */
}

.cod-popup-modal.cod-popup-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cod-popup-modal.cod-popup-minimize {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1) translate(200%, 0);
}

/* 关闭按钮 */
.cod-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.cod-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 背景图片层 */
.cod-popup-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cod-popup-bg-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 内容区域 */
.cod-popup-content {
    position: relative;
    z-index: 1;
    padding: 40px 30px;
    text-align: center;
    background: rgba(20, 20, 30, 0.75);
    /* 75% transparent dark background */
    height: 100%;
}

.cod-popup-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cod-popup-text-line1,
.cod-popup-text-line2 {
    font-size: 18px;
    margin: 12px 0;
    line-height: 1.6;
}

.cod-popup-text-line1 {
    font-weight: 600;
}

/* 表单样式 */
.cod-popup-form {
    margin-top: 30px;
}

.cod-form-group {
    margin-bottom: 18px;
}

/* 表单标签样式 */
.cod-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.cod-label-icon {
    font-size: 18px;
}

.cod-label-text {
    flex: 1;
}

.cod-form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 16px;
    color: #fff;
    transition: all 0.3s ease;
}

.cod-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cod-form-group input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.8);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* 提交按钮基础样式 */
.cod-submit-btn {
    width: 100%;
    padding: 16px 30px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cod-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cod-submit-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cod-submit-btn:hover:before {
    width: 300px;
    height: 300px;
}

.cod-btn-text,
.cod-btn-spinner {
    position: relative;
    z-index: 1;
}

/* 消息提示 */
.cod-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.cod-form-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.cod-form-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

/* ==================== 10种高端弹窗样式 ==================== */

/* 样式1: 深蓝金色经典 */
.popup-style-1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.popup-style-1 .cod-popup-title {
    color: #ffd700;
}

.popup-style-1 .cod-popup-text-line1,
.popup-style-1 .cod-popup-text-line2,
.popup-style-1 .cod-form-label {
    color: #f0f0f0;
}

/* 样式2: 深紫金色奢华 */
.popup-style-2 {
    background: linear-gradient(135deg, #2d1b69 0%, #1a0f3d 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.popup-style-2 .cod-popup-title {
    color: #ffeb3b;
    text-shadow: 0 0 20px rgba(255, 235, 59, 0.5);
}

.popup-style-2 .cod-popup-text-line1,
.popup-style-2 .cod-popup-text-line2,
.popup-style-2 .cod-form-label {
    color: #e0e0e0;
}

/* 样式3: 黑金极简 */
.popup-style-3 {
    background: linear-gradient(135deg, #0f0f23 0%, #1c1c1c 100%);
    border: 3px solid #ffd700;
}

.popup-style-3 .cod-popup-title {
    color: #ffd700;
    font-family: 'Georgia', serif;
}

.popup-style-3 .cod-popup-text-line1,
.popup-style-3 .cod-popup-text-line2,
.popup-style-3 .cod-form-label {
    color: #ffffff;
}

/* 样式4: 深绿金色优雅 */
.popup-style-4 {
    background: linear-gradient(135deg, #0a3d2e 0%, #051f1a 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.popup-style-4 .cod-popup-title {
    color: #ffca28;
}

.popup-style-4 .cod-popup-text-line1,
.popup-style-4 .cod-popup-text-line2,
.popup-style-4 .cod-form-label {
    color: #f5f5f5;
}

/* 样式5: 深红金色热情 */
.popup-style-5 {
    background: linear-gradient(135deg, #3d0a0a 0%, #1f0505 100%);
    border: 2px solid rgba(255, 193, 7, 0.6);
}

.popup-style-5 .cod-popup-title {
    color: #ffc107;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
}

.popup-style-5 .cod-popup-text-line1,
.popup-style-5 .cod-popup-text-line2,
.popup-style-5 .cod-form-label {
    color: #fff3e0;
}

/* 样式6: 深灰金色科技 */
.popup-style-6 {
    background: linear-gradient(135deg, #1e1e2e 0%, #0d0d1a 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.2);
}

.popup-style-6 .cod-popup-title {
    color: #ffd700;
    font-weight: 900;
}

.popup-style-6 .cod-popup-text-line1,
.popup-style-6 .cod-popup-text-line2,
.popup-style-6 .cod-form-label {
    color: #e8e8e8;
}

/* 样式7: 深靛金色神秘 */
.popup-style-7 {
    background: linear-gradient(135deg, #1a1a3e 0%, #0d0d26 100%);
    border: 2px solid rgba(255, 235, 59, 0.4);
}

.popup-style-7 .cod-popup-title {
    color: #ffeb3b;
    letter-spacing: 2px;
}

.popup-style-7 .cod-popup-text-line1,
.popup-style-7 .cod-popup-text-line2,
.popup-style-7 .cod-form-label {
    color: #f0f0f0;
}

/* 样式8: 深棕金色复古 */
.popup-style-8 {
    background: linear-gradient(135deg, #2a1810 0%, #150c08 100%);
    border: 2px solid rgba(255, 193, 7, 0.5);
}

.popup-style-8 .cod-popup-title {
    color: #ffc107;
    font-family: 'Times New Roman', serif;
}

.popup-style-8 .cod-popup-text-line1,
.popup-style-8 .cod-popup-text-line2,
.popup-style-8 .cod-form-label {
    color: #f5e6d3;
}

/* 样式9: 深青金色清新 */
.popup-style-9 {
    background: linear-gradient(135deg, #0a2a3d 0%, #05151f 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.popup-style-9 .cod-popup-title {
    color: #ffd700;
}

.popup-style-9 .cod-popup-text-line1,
.popup-style-9 .cod-popup-text-line2,
.popup-style-9 .cod-form-label {
    color: #e0f7fa;
}

/* 样式10: 深洋红金色时尚 */
.popup-style-10 {
    background: linear-gradient(135deg, #3d0a2e 0%, #1f051a 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.popup-style-10 .cod-popup-title {
    color: #ffca28;
    text-shadow: 0 0 20px rgba(255, 202, 40, 0.4);
}

.popup-style-10 .cod-popup-text-line1,
.popup-style-10 .cod-popup-text-line2,
.popup-style-10 .cod-form-label {
    color: #fce4ec;
}

/* ==================== 5种高端按钮样式 ==================== */

/* 按钮样式1: 经典金色渐变 */
.button-style-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #1a1a2e;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.button-style-1:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6);
}

/* 按钮样式2: 亮黄色脉冲 */
.button-style-2 {
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    color: #000;
    box-shadow: 0 0 30px rgba(255, 235, 59, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(255, 235, 59, 0.6);
    }

    50% {
        box-shadow: 0 0 50px rgba(255, 235, 59, 0.9);
    }
}

.button-style-2:hover {
    transform: scale(1.05);
}

/* 按钮样式3: 金色霓虹边框 */
.button-style-3 {
    background: transparent;
    color: #ffd700;
    border: 3px solid #ffd700;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.5);
}

.button-style-3:hover {
    background: #ffd700;
    color: #000;
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.8);
}

/* 按钮样式4: 深金色立体 */
.button-style-4 {
    background: linear-gradient(to bottom, #ffca28 0%, #ff8f00 100%);
    color: #1a1a2e;
    box-shadow: 0 6px 0 #c67100,
        0 10px 25px rgba(0, 0, 0, 0.4);
}

.button-style-4:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #c67100,
        0 8px 20px rgba(0, 0, 0, 0.4);
}

/* 按钮样式5: 金色闪光 */
.button-style-5 {
    background: linear-gradient(135deg, #ffd700 0%, #ffeb3b 50%, #ffd700 100%);
    background-size: 200% 200%;
    color: #000;
    animation: shimmer 3s infinite;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.5);
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.button-style-5:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.7);
}

/* ==================== 社交媒体图标 ==================== */
.cod-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cod-social-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: breathe 2s infinite;
}

.cod-social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-bottom: 2px;
}

.cod-social-label {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.cod-social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    filter: brightness(1.2);
}

/* 呼吸动态效果 */
@keyframes breathe {

    0%,
    100% {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        transform: scale(1.05);
    }
}

/* 品牌色 - 官方认可颜色 */
.cod-social-icon.cod-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.cod-social-icon.cod-whatsapp:hover {
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.cod-social-icon.cod-line {
    background-color: #00C300;
    color: #fff;
}

.cod-social-icon.cod-line:hover {
    box-shadow: 0 5px 15px rgba(0, 195, 0, 0.4);
}

.cod-social-icon.cod-messenger {
    background: linear-gradient(to bottom right, #00C6FF, #0078FF);
    color: #fff;
}

.cod-social-icon.cod-messenger:hover {
    box-shadow: 0 5px 15px rgba(0, 132, 255, 0.4);
}

.cod-social-icon.cod-kakaotalk {
    background-color: #FEE500;
    color: #3C1E1E;
    /* Official dark brown icon color */
}

.cod-social-icon.cod-kakaotalk:hover {
    box-shadow: 0 5px 15px rgba(254, 229, 0, 0.4);
}

.cod-social-icon.cod-telegram {
    background-color: #0088cc;
    color: #fff;
}

.cod-social-icon.cod-telegram:hover {
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

/* ======================== 去购买按钮 ======================== */
.cod-buy-button-wrap {
    margin-top: 20px;
    text-align: center;
}

.cod-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 50%, #ff8c00 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cod-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #ffea00 0%, #ffc000 50%, #ffa000 100%);
}

.cod-buy-btn:active {
    transform: translateY(0);
}

.cod-buy-icon {
    font-size: 20px;
}

.cod-buy-text {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* ======================== 浮动按钮（侧边半圆） ======================== */
.cod-floating-btn {
    position: fixed;
    top: 50%;
    right: -60px;
    /* 隐藏一半在屏幕外 */
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    border-radius: 50%;
    box-shadow: -5px 0 25px rgba(255, 215, 0, 0.6);
    cursor: pointer;
    z-index: 999998;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 15px;
}

.cod-floating-btn:hover {
    right: -50px;
    /* 悬停时露出更多 */
    box-shadow: -8px 0 35px rgba(255, 215, 0, 0.8);
}

.cod-floating-btn.pulse {
    animation: floatPulse 2s infinite;
}

@keyframes floatPulse {

    0%,
    100% {
        box-shadow: -5px 0 25px rgba(255, 215, 0, 0.6);
    }

    50% {
        box-shadow: -8px 0 40px rgba(255, 215, 0, 0.9);
        transform: translateY(-50%) scale(1.05);
    }
}

.cod-float-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
}

.cod-float-icon {
    font-size: 28px;
    display: block;
}

.cod-float-text {
    font-size: 11px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .cod-popup-modal {
        max-width: 95%;
        width: 95%;
    }

    .cod-popup-content {
        padding: 30px 20px;
    }

    .cod-popup-title {
        font-size: 24px;
    }

    .cod-popup-text-line1,
    .cod-popup-text-line2 {
        font-size: 16px;
    }

    .cod-form-group input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .cod-submit-btn {
        padding: 14px 25px;
        font-size: 16px;
    }

    .cod-floating-btn {
        width: 100px;
        height: 100px;
        right: -55px;
        padding-left: 12px;
    }

    .cod-float-icon {
        font-size: 24px;
    }

    .cod-float-text {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .cod-popup-title {
        font-size: 20px;
    }

    .cod-popup-text-line1,
    .cod-popup-text-line2 {
        font-size: 14px;
    }

    .cod-popup-content {
        padding: 25px 15px;
    }

    .cod-floating-btn {
        width: 90px;
        height: 90px;
        right: -50px;
        padding-left: 10px;
    }

    .cod-float-icon {
        font-size: 22px;
    }

    .cod-float-text {
        display: none;
    }
}

/* ==================== intl-tel-input Fixes ==================== */
.iti {
    width: 100% !important;
    display: block !important;
}

/* 强制下拉列表为白底黑字，防止被主题样式覆盖 */
.iti__country-list {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ccc !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    z-index: 999999 !important;
}

/* 强制国家名称和标志区域文字为黑色 */
.iti__country,
.iti__country-name,
.iti__flag-box,
.iti__dial-code {
    color: #000000 !important;
    font-family: sans-serif !important;
}

/* 悬停状态：浅灰色背景，黑色文字 */
.iti__country.iti__highlight {
    background-color: #eeeeee !important;
    color: #000000 !important;
}

/* 搜索框或分隔线颜色 */
.iti__divider {
    border-bottom: 1px solid #ddd !important;
}

/* 电话输入框本身样式优化 */
#cod-phone {
    padding-left: 50px !important;
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* 强化占位符（示例号码）的颜色，确保客户能看见 */
#cod-phone::placeholder {
    color: #888888 !important;
    opacity: 1 !important;
}

#cod-phone:-ms-input-placeholder {
    color: #888888 !important;
}

#cod-phone::-ms-input-placeholder {
    color: #888888 !important;
}