/* SDK Login Button Styles */
unidy-login::part(login-button) {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background-color: #0055ff;
    color: #ffffff;
    font-family: sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

unidy-login::part(login-button):hover {
    background-color: #0044cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Checkout Page Specific Styles */
.checkout-main {
    padding: 2rem;
    background-color: #f9f9f9;
}

.checkout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.iframe-container {
    flex: 2;
    min-width: 300px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Default height */
}

.welcome-message {
    text-align: center;
    font-size: 1.5rem;
    color: #333;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fafafa;
}


.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.checkout-panel {
    flex: 1;
    min-width: 300px;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.checkout-panel h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    color: #333;
}

.product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.product-price p {
    font-size: 1.1rem;
    font-weight: bold;
}


.summary {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #555;
}

.summary-item.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
}

.summary hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 1rem 0;
}

.checkout-button {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.checkout-button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.terms {
    font-size: 0.8rem;
    color: #777;
    text-align: center;
}

.terms a {
    color: #007bff;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .checkout-container {
        flex-direction: column;
    }

    .iframe-container {
        height: 500px;
        /* Adjust height for smaller screens */
    }
}
