/* ===== Configuration ===== */ 
:root {
    --color-black: #000000;
    --color-black-80: rgba(0,0,0,.8);
    --color-black-40: rgba(0,0,0,.4);
    --color-white: #ffffff;
    --color-gray: #d1cfcf;
    --color-gray-light: #fefefe;
    --color-gray-dark: #888888;
}


/* ===== Modal ===== */ 
.tipple-modal {
    display: none; 
    position: fixed; 
    z-index: 1000;
    left: 0;
    top: 0;
    align-items: center;
    width: 100%; 
    height: 100%;
    overflow: auto;
    background-color: var(--color-black-40);
}

.tipple-modal__content{
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 460px;
    height: fit-content;
    padding: 50px 20px 30px 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto; 
    background-color: var(--color-gray-light);
}

.tipple-modal__close{
    position: absolute;
    cursor: pointer;
    color: var(--color-gray-dark);
    font-size: 34px;
    line-height: 20px;
    font-weight: bold;
    transition: .5s ease;
    top: 15px;
    right: 15px;
}

.tipple-modal__close:hover{
    color: var(--color-black);
    text-decoration: none;
    cursor: pointer;
    transition: .5s ease;
}

.tipple-modal__title{
    margin: 0;
}
/* ===== End Modal ===== */ 

/* ===== Form ===== */ 
.tipple-form{
    display: flex;
    gap: 20px;
    flex-direction: column;
}

/* ===== Select ===== */ 
.tipple-select{
    padding: 8px;
    height: auto;
    border: 1px solid var(--color-gray);
}

/* ===== Button ===== */ 
.tipple-button{
    width: fit-content;
    padding: 10px 20px;
    transition: .5s ease;
    cursor: pointer;
    font-size: 16px;
    color: var(--color-white);
    line-height: 24px;
    border: 0;
    background-color: var(--color-black-80);
}

.tipple-button:hover{
    transition: .5s ease;
    background-color: var(--color-black);
}

/* Tipple Blocks Integration Styles */
.tipple-updating-prices {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.tipple-updating-prices::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #dee2e6;
    border-top-color: #007cba;
    border-radius: 50%;
    animation: tipple-spin 1s linear infinite;
}

@keyframes tipple-spin {
    to {
        transform: rotate(360deg);
    }
}

#payment-form {
    margin-top: 16px;
}

#card-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    margin-bottom: 16px;
}

#card-errors,
#card-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
}