.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    font-family: Inter, "Noto Sans", sans-serif;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: 0px;
    padding-right: 0px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    padding-left: 24px;
    padding-right: 24px;    
    border-bottom: 1px solid #e5e7eb;
}

.modal-header-title {
    display: flex;
    flex-direction: column;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.modal-header-comment {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    padding-top: 8px;
}

.close-button {
    font-size: 24px;
    font-weight: 300;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease-out;
}

.close-button:hover {
    color: #111827;
}

.cart-items-container {
    padding-bottom: 24px;
    padding-top: 24px;    
    padding-left: 24px;
    padding-right: 24px;   
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}

.cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid #F0F1F4;
    background-color: #f9fafb;
    margin-right: 16px;
    flex-shrink: 0;
}

.cart-item-details {
    flex-grow: 1;
    overflow: hidden;
}

.cart-item-name {
    font-weight: 500;
    color: #111827;
    white-space: normal;
    word-wrap: break-word;
}

.cart-item-meta {
    font-size: 14px;
    color: #6b7280;
    padding-top: 4px;
    
}

.cart-item-price {
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
}

.cart-summary-container {
    padding-bottom: 24px;
    padding-top: 24px;    
    padding-left: 24px;
    padding-right: 24px; 
    background-color: #f0f2f5;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.cart-total-container {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    padding-bottom: 24px;
    padding-top: 24px;    
    padding-left: 24px;
    padding-right: 24px; 
    background-color: #f0f2f5;    
}

.ZamawiamIPłaceWrapper{ 
    padding-left: 24px;
    padding-right: 24px;     
}
.checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    margin-top: 24px;
    background-color: #ef4444;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    gap: 8px;
    transition: background-color 0.2s ease-out;
}

.checkout-button:hover {
    background-color: #d73737;
}

.options-container {
    display: flex;
    flex-direction: column;
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: 24px;
    padding-right: 24px;
    gap: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.checkoutText-input {
    flex-grow: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.coupon-input {
    flex-grow: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.coupon-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(12, 127, 242, 0.2);
  outline: none;
}

.option-item{
    display: flex;
    gap: 12px;
}

.apply-coupon-button {
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease-out;
}

.apply-coupon-button:hover {
    background-color: #d73737;
}

.apply-coupon-button.header-button-disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
    pointer-events: none;
}

.apply-coupon-button.header-button-disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

.coupon-applied-message {
    display: flex;
    align-items: center;
    background-color: #eefbf3;
    border: 1px solid #a7e3b4;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    color: #065f46;
    width: 100%;
    justify-content: space-between;
}

.coupon-applied-message-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-applied-message svg {
    margin-right: 8px;
}

.remove-coupon-button {
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #065f46;
}

.priority-service-label {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.priority-service-label:hover {
    border-color: #a5b4fc;
}

.priority-service-label input:checked + .priority-service-text {
    
}

.priority-service-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-left: 12px;
    gap: 4px;
}

.priority-service-title {
    font-weight: 500;
    color: #111827;
}

.priority-service-description {
    font-size: 12px;
    color: #6b7280;
}

.cartDiscountGrossInactive{
    color: #6b7280;
}

.cartDiscountGrossActive{
    font-weight: 500;    
    color: #0c7ff2;
}

.priority-service-price-inactive {
    color: #6b7280;
}

.priority-service-price-active {
    font-weight: 500;
    color: #0c7ff2;
}

.priority-service-extrawide {
    width: 100%;
}

.coupon-applied-message.invalid {
    background-color: #ffebee;
    border-color: #ffcdd2;
    color: #c62828;
}

.coupon-applied-message .icon-invalid {
    display: none;
}

.coupon-applied-message.invalid .icon-valid {
    display: none;
}

.coupon-applied-message.invalid .icon-invalid {
    display: inline-block;
}

.modal-overlay {
    display: none; /* Hidden by default */
    position: absolute; /* Changed from fixed to absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1001; /* Above the modal content but below the spinner */
    border-radius: 16px; /* Match the modal's border-radius */
}

.loading-spinner {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002; /* Above the overlay */
    /* Add your spinner styles, e.g., using a CSS animation */
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.checkoutText-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    outline: none;
}

.billing-required-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}
