.cartpopup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.cartpopup-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    animation: cartpopup-fadeIn 0.3s ease;
    margin: auto;
}

.cartpopup-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cartpopup-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cartpopup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cartpopup-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.cartpopup-content {
    padding: 20px;
    text-align: center;
}

.cartpopup-message {
    margin: 0 0 15px 0;
    line-height: 1.5;
    color: #555;
    text-align: left;
}

.cartpopup-message p {
    margin: 0 0 10px 0;
}

.cartpopup-message p:last-child {
    margin-bottom: 0;
}

.cartpopup-message strong,
.cartpopup-message b {
    font-weight: bold;
}

.cartpopup-message em,
.cartpopup-message i {
    font-style: italic;
}

.cartpopup-message ul,
.cartpopup-message ol {
    margin: 10px 0;
    padding-left: 20px;
}

.cartpopup-message li {
    margin-bottom: 5px;
}

.cartpopup-message h1,
.cartpopup-message h2,
.cartpopup-message h3,
.cartpopup-message h4,
.cartpopup-message h5,
.cartpopup-message h6 {
    margin: 15px 0 10px 0;
    font-weight: bold;
}

.cartpopup-message h1 { font-size: 1.5em; }
.cartpopup-message h2 { font-size: 1.4em; }
.cartpopup-message h3 { font-size: 1.3em; }
.cartpopup-message h4 { font-size: 1.2em; }
.cartpopup-message h5 { font-size: 1.1em; }
.cartpopup-message h6 { font-size: 1em; }

.cartpopup-message a {
    color: #007cba;
    text-decoration: underline;
}

.cartpopup-message a:hover {
    text-decoration: none;
}

.cartpopup-button {
    background-color: #e31e24;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    transition: background-color 0.2s ease;
}

.cartpopup-button:hover {
    background-color: #bf1e18;
}

@keyframes cartpopup-fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .cartpopup-overlay {
        padding: 15px;
    }

    .cartpopup-modal {
        width: 100%;
        max-width: none;
    }

    .cartpopup-header,
    .cartpopup-content {
        padding: 15px;
    }
}
