/**
 * Cookie同意バナー CSS
 *
 * @package EioWpExpansion
 */

/* === ベーススタイル === */
.ewe-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 16px 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ewe-cookie-banner[style*="display: none"],
.ewe-cookie-banner[style*="display:none"] {
    transform: translateY(100%);
    opacity: 0;
}

.ewe-cookie-banner.ewe-cookie-visible {
    transform: translateY(0);
    opacity: 1;
}

/* === 位置 === */
.ewe-cookie-bottom {
    bottom: 0;
}

.ewe-cookie-top {
    top: 0;
    bottom: auto;
}

.ewe-cookie-top[style*="display: none"],
.ewe-cookie-top[style*="display:none"] {
    transform: translateY(-100%);
}

/* === 内部レイアウト === */
.ewe-cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ewe-cookie-message {
    flex: 1;
    margin: 0;
    min-width: 200px;
}

.ewe-cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* === ボタン共通 === */
.ewe-cookie-btn {
    display: inline-block;
    padding: 8px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.ewe-cookie-btn:hover {
    opacity: 0.85;
}

.ewe-cookie-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* === Light テーマ === */
.ewe-cookie-light {
    background: #ffffff;
    color: #333333;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.ewe-cookie-top.ewe-cookie-light {
    border-top: none;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ewe-cookie-light .ewe-cookie-btn-accept {
    background: #2271b1;
    color: #ffffff;
}

.ewe-cookie-light .ewe-cookie-btn-decline {
    background: transparent;
    color: #666666;
    border: 1px solid #cccccc;
}

/* === Dark テーマ === */
.ewe-cookie-dark {
    background: #1d2327;
    color: #f0f0f1;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.ewe-cookie-top.ewe-cookie-dark {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ewe-cookie-dark .ewe-cookie-btn-accept {
    background: #3582c4;
    color: #ffffff;
}

.ewe-cookie-dark .ewe-cookie-btn-decline {
    background: transparent;
    color: #a7aaad;
    border: 1px solid #50575e;
}

/* === Blue テーマ === */
.ewe-cookie-blue {
    background: #1e3a5f;
    color: #e8eef4;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.ewe-cookie-top.ewe-cookie-blue {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ewe-cookie-blue .ewe-cookie-btn-accept {
    background: #ffffff;
    color: #1e3a5f;
}

.ewe-cookie-blue .ewe-cookie-btn-decline {
    background: transparent;
    color: #b0c4de;
    border: 1px solid #4a6d8c;
}

/* === レスポンシブ === */
@media (max-width: 600px) {
    .ewe-cookie-banner {
        padding: 14px 16px;
        font-size: 13px;
    }

    .ewe-cookie-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ewe-cookie-actions {
        justify-content: center;
    }

    .ewe-cookie-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}
