/**
 * Cart Styles
 */

/* Recoleta Font Face Declarations */
@font-face {
    font-family: 'Recoleta';
    src: url('../fonts/Recoleta-RegularDEMO.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Recoleta';
    src: url('../fonts/Recoleta SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Recoleta Alt';
    src: url('../fonts/Recoleta Alt Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Recoleta Alt';
    src: url('../fonts/Recoleta Alt Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Recoleta Alt';
    src: url('../fonts/Recoleta Alt Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Recoleta Alt';
    src: url('../fonts/Recoleta Alt SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

.twicely-cart,
.twicely-checkout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-cart-title,
.twicely-checkout-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Cart Content Layout */
.twicely-cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

/* Cart Items Wrapper */
.twicely-cart-items-wrapper {
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    overflow: hidden;
}

.twicely-cart-items-header {
    padding: 1.5rem;
    border-bottom: 2px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #083FB9;
}

.twicely-cart-items-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #FFFFFF;
}

.twicely-cart-refresh-btn {
    background: white;
    border: 2px solid #ffffff;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    position: relative;
    padding: 0;
}

.twicely-cart-refresh-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #000;
    color: #000;
}

.twicely-cart-refresh-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.twicely-cart-refresh-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.twicely-cart-refresh-btn:hover:not(:disabled) .twicely-cart-refresh-icon {
    transform: rotate(90deg);
}

.twicely-cart-refresh-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
}

.twicely-cart-refresh-btn.loading .twicely-cart-refresh-icon {
    opacity: 0;
}

.twicely-cart-refresh-btn.loading .twicely-cart-refresh-loader {
    display: flex;
}

.twicely-cart-refresh-loader svg {
    animation: spin-loader 0.8s linear infinite;
}

.twicely-cart-items {
    display: flex;
    flex-direction: column;
}

.twicely-cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
    position: relative;
}

.twicely-cart-item:last-child {
    border-bottom: none;
}

.twicely-cart-item.removing {
    opacity: 0.5;
    pointer-events: none;
}

.twicely-cart-item-image {
    flex-shrink: 0;
    width: 90px;
    height: 80px !important;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.twicely-cart-item-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.twicely-cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.twicely-cart-item-placeholder svg {
    opacity: 0.5;
}

.twicely-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.twicely-cart-item-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-cart-item-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.twicely-cart-item-title a:hover {
    color: #666;
}

.twicely-cart-item-pricing {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-cart-item-original-price {
    text-decoration: line-through;
    opacity: 0.7;
    color: #666;
    font-size: 0.9375rem;
}

.twicely-cart-item-discounted-price {
    font-weight: 600;
    color: #ff014e;
    font-size: 1.125rem;
}

/* Cart Item Actions */
.twicely-cart-item-actions {
    flex-shrink: 0;
}

.twicely-cart-remove-btn {
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    position: relative;
    padding: 0;
}

.twicely-cart-remove-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #999;
    color: #000;
}

.twicely-cart-remove-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.twicely-cart-remove-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.twicely-cart-remove-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
}

.twicely-cart-remove-btn.loading .twicely-cart-remove-icon {
    opacity: 0;
}

.twicely-cart-remove-btn.loading .twicely-cart-remove-loader {
    display: flex;
}

.twicely-cart-remove-loader svg {
    animation: spin-loader 0.8s linear infinite;
}

@keyframes spin-loader {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Cart Summary Wrapper */
.twicely-cart-summary-wrapper {
    position: sticky;
    top: 2rem;
}

.twicely-cart-summary {
    background: #F3F0FE;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 1.5rem;
}

.twicely-cart-summary-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.twicely-cart-totals {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.twicely-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-cart-total-label {
    color: #666;
}

.twicely-cart-total-value {
    color: #000;
    font-weight: 500;
}

.twicely-cart-total-final {
    padding-top: 1rem;
    border-top: 2px solid #000;
    font-size: 1.125rem;
}

.twicely-cart-total-final .twicely-cart-total-label {
    color: #000;
    font-weight: 600;
}

.twicely-cart-total-final .twicely-cart-total-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.twicely-cart-discount {
    color: #325d24;
}

.twicely-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Buttons */
.twicely-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-btn-primary {
    background: #FBBD03;
    color: #000000;
    border-color: #000;
}

.twicely-btn-secondary {
    background: transparent;
    color: #000;
    border-color: #000;
}

.twicely-btn-secondary:hover {
    background: #f5f5f5;
}

.twicely-cart-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.twicely-cart-empty p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Checkout */
.twicely-checkout-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #000;
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: color 0.2s ease;
}

.twicely-checkout-back-link:hover {
    color: #666;
}

.twicely-checkout-back-link svg {
    width: 16px;
    height: 16px;
}

.twicely-checkout-content {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.twicely-checkout-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.twicely-checkout-section {
    background: #fff;
    padding: 2rem;
    border: 2px solid #000;
    border-radius: 12px;
}

.twicely-checkout-section-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-checkout-section-description {
    margin: 0 0 1.5rem 0;
    font-size: 0.9375rem;
    color: #666;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-checkout-subsection {
    margin-bottom: 2rem;
}

.twicely-checkout-subsection:last-child {
    margin-bottom: 0;
}

.twicely-checkout-subsection-title {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-form-group {
    margin-bottom: 1.25rem;
}

.twicely-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.8125rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Required field indicator */
.required {
    color: #dc3545;
    margin-left: 0.25rem;
}

/* Form field error messages */
.twicely-form-group .error-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: block;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-form-group .required {
    color: #ff014e;
}

.twicely-form-group input,
.twicely-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
}

/* Override border for phone number input inside unified wrapper */
.twicely-phone-input-wrapper .twicely-phone-number {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Ensure phone input wrapper doesn't have nested borders */
.twicely-phone-input-wrapper input {
    border: none !important;
    box-shadow: none !important;
}

.twicely-form-group input::placeholder,
.twicely-form-group textarea::placeholder {
    font-size: 0.8125rem;
    color: #999;
    opacity: 1;
}

.twicely-form-group input:focus,
.twicely-form-group textarea:focus,
.twicely-form-group select:focus {
    outline: none;
    border-color: #000;
}

.twicely-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Custom Country Dropdown */
.twicely-country-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.twicely-country-dropdown {
    position: relative;
    width: 100%;
}

.twicely-country-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-country-dropdown-selected:hover {
    border-color: #000;
}

.twicely-country-dropdown-selected.active {
    border-color: #000;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.twicely-country-flag-icon {
    width: 20px;
    height: 20px !important;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    border-radius: 14px !important;
    flex-shrink: 0;
}

.twicely-country-selected-text {
    flex: 1;
    text-align: left;
}

.twicely-country-chevron {
    flex-shrink: 0;
    width: 12px;
    height: 8px;
    transition: transform 0.2s ease;
    color: #666;
}

.twicely-country-dropdown-selected.active .twicely-country-chevron {
    transform: rotate(180deg);
}

.twicely-country-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #000;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.twicely-country-dropdown-menu.open {
    display: flex;
}

.twicely-country-search {
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 0.875rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 100%;
    outline: none;
}

.twicely-country-search:focus {
    outline: none;
}

.twicely-country-dropdown-list {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for dropdown */
.twicely-country-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.twicely-country-dropdown-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.twicely-country-dropdown-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.twicely-country-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.twicely-country-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-bottom: 1px solid #f0f0f0;
}

.twicely-country-option:last-child {
    border-bottom: none;
}

.twicely-country-option:hover {
    background-color: #f5f5f5;
}

.twicely-country-option.selected {
    background-color: #e8f4f8;
    font-weight: 600;
}

.twicely-country-option .twicely-country-flag-icon {
    width: 20px;
    height: 20px !important;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    border-radius: 14px !important;
    flex-shrink: 0;
}

.twicely-country-name {
    flex: 1;
    text-align: left;
}

/* Hide native select for old browsers fallback */
.twicely-country-dropdown-wrapper select.twicely-country-select-native {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.twicely-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Phone Input - Unified Field */
.twicely-phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s ease;
    position: relative;
    width: 100%;
}

.twicely-phone-input-wrapper:focus-within {
    border-color: #000;
}

/* Custom Phone Code Dropdown */
.twicely-phone-code-dropdown-wrapper {
    position: relative;
    flex-shrink: 0;
}

.twicely-phone-code-dropdown {
    position: relative;
    width: 100%;
    border: none;
    border-radius: 0;
    z-index: 1;
}

.twicely-phone-code-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-phone-code-dropdown-selected:hover {
    background: #f5f5f5;
}

.twicely-phone-code-dropdown-selected.active {
    background: #f5f5f5;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.twicely-phone-code-flag-icon {
    width: 20px;
    height: 20px !important;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    border-radius: 14px !important;
    flex-shrink: 0;
}

.twicely-phone-code-selected-text {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.twicely-phone-code-chevron {
    flex-shrink: 0;
    width: 12px;
    height: 8px;
    transition: transform 0.2s ease;
    color: #666;
}

.twicely-phone-code-dropdown-selected.active .twicely-phone-code-chevron {
    transform: rotate(180deg);
}

.twicely-phone-code-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #000;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.twicely-phone-code-dropdown-menu.open {
    display: flex;
}

.twicely-phone-code-search {
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 0.875rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 100%;
    outline: none;
}

.twicely-phone-code-search:focus {
    outline: none;
}

.twicely-phone-code-dropdown-list {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for phone code dropdown */
.twicely-phone-code-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.twicely-phone-code-dropdown-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.twicely-phone-code-dropdown-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.twicely-phone-code-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.twicely-phone-code-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-bottom: 1px solid #f0f0f0;
}

.twicely-phone-code-option:last-child {
    border-bottom: none;
}

.twicely-phone-code-option:hover {
    background-color: #f5f5f5;
}

.twicely-phone-code-option.selected {
    background-color: #e8f4f8;
    font-weight: 600;
}

.twicely-phone-code-option .twicely-phone-code-flag-icon {
    width: 20px;
    height: 20px !important;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    border-radius: 14px !important;
    flex-shrink: 0;
}

.twicely-phone-code-text {
    flex: 1;
    text-align: left;
}

.twicely-phone-divider {
    width: 1px;
    height: 43px;
    background: #ddd;
    flex-shrink: 0; 
}

.twicely-phone-number {
    flex: 1;
    width: 80%;
    border: none !important;
    border-radius: 0;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: transparent;
    outline: none;
    min-width: 0;
    box-shadow: none !important;
}

.twicely-phone-number:focus {
    outline: none;
}

.twicely-phone-number::placeholder {
    font-size: 0.8125rem;
    color: #999;
    opacity: 1;
}

/* Card Input */
.twicely-card-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.twicely-card-chip-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    flex-shrink: 0;
    pointer-events: none;
}

.twicely-card-input-wrapper input {
    padding-left: 3rem;
    padding-right: 8rem;
}

.twicely-card-icons {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.25rem;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.twicely-card-icon {
    flex-shrink: 0;
    width: 32px;
    height: 20px;
    object-fit: contain;
}

.twicely-card-icon-visa {
    width: 35px;
}

.twicely-card-icon-mastercard {
    width: 35px;
}

.twicely-card-icon-amex {
    width: 35px;
}

.twicely-payment-security {
    margin: 1rem 0 0 0;
    font-size: 0.875rem;
    color: #666;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Checkout Right Section - Order Summary */
.twicely-checkout-right {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.twicely-checkout-summary-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 2px solid #000;
    border-radius: 12px;
    padding: 2rem;
}

.twicely-checkout-summary-title {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #000;
}

.twicely-checkout-total-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #273db7;
    margin-bottom: 1.5rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-checkout-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.twicely-checkout-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-checkout-discount {
    color: #325d24;
}


/* Product Information */
.twicely-checkout-products {
    margin-bottom: 2rem;
}

.twicely-checkout-products-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-checkout-product-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.twicely-checkout-product-item {
    display: flex;
    gap: 1rem;
}

.twicely-checkout-product-item.removing {
    opacity: 0.5;
    pointer-events: none;
}

.twicely-checkout-product-image {
    width: 80px;
    height: 80px !important;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.twicely-checkout-product-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.twicely-checkout-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.twicely-checkout-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.twicely-checkout-product-name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.4;
}

.twicely-checkout-product-price {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-checkout-product-original-price {
    text-decoration: line-through;
    opacity: 0.7;
    color: #666;
    font-size: 0.875rem;
}

.twicely-checkout-product-final-price {
    font-weight: 600;
    color: #ff014e;
    font-size: 0.9375rem;
}


.twicely-checkout-remove-item {
    color: #ff014e;
    text-decoration: none;
    font-size: 0.775rem;
    margin-top: 0.25rem;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: color 0.2s ease;
}

.twicely-checkout-remove-item:hover {
    color: #cc0033;
    text-decoration: underline;
}

/* Payment Button */
.twicely-checkout-payment-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #FBBD03;
    color: #000;
    border: 2px solid #000;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-checkout-payment-btn:hover:not(:disabled) {
    background: #f0b300;
}

.twicely-checkout-payment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.twicely-checkout-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.twicely-checkout-messages {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.twicely-checkout-messages.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.twicely-checkout-messages.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.twicely-checkout-empty {
    text-align: center;
    padding: 3rem 1rem;
}

/* Buy Now Button */
.twicely-buy-now-btn {
    font-family: 'Recoleta', 'Recoleta Alt', sans-serif;
    display: inline-block;
    background: #FBBD03;
    color: black;
    border:none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 14px 20px;
    width: 100%;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
}

.twicely-buy-now-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.twicely-buy-now-btn.loading {
    position: relative;
    color: transparent;
}

.twicely-buy-now-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Toast Notifications */
.twicely-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.twicely-toast {
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    font-family: 'Recoleta', 'Recoleta Alt', sans-serif;
}

.twicely-toast.success {
    border-color: #325d24;
}

.twicely-toast.error {
    border-color: #ff014e;
}

.twicely-toast.info {
    border-color: #0691d7;
}

.twicely-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.twicely-toast-icon svg {
    width: 100%;
    height: 100%;
}

.twicely-toast.success .twicely-toast-icon {
    color: #325d24;
}

.twicely-toast.error .twicely-toast-icon {
    color: #ff014e;
}

.twicely-toast.info .twicely-toast-icon {
    color: #0691d7;
}

.twicely-toast-content {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #000;
}

.twicely-toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease;
}

.twicely-toast-close:hover {
    color: #000;
}

.twicely-toast-close svg {
    width: 16px;
    height: 16px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.twicely-toast.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .twicely-cart-content {
        grid-template-columns: 1fr;
    }
    
    .twicely-cart-summary-wrapper {
        position: static;
    }
}

@media (max-width: 768px) {
    .twicely-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .twicely-toast {
        min-width: auto;
        max-width: 100%;
        padding: 0.875rem 1.25rem;
    }
    
    .twicely-checkout-content {
        grid-template-columns: 1fr;
    }
    
    .twicely-cart-item {
        grid-template-columns: 100px 1fr auto;
        gap: 1rem;
        padding: 1rem;
    }
    
    .twicely-cart-item-image {
        width: 100px;
        height: 100px;
    }
    
    .twicely-cart-item-title {
        font-size: 0.9375rem;
    }
    
    .twicely-cart-item-discounted-price {
        font-size: 1rem;
    }
    
    .twicely-cart-remove-btn {
        width: 36px;
        height: 36px;
    }
    
    .twicely-form-row {
        grid-template-columns: 1fr;
    }
    
    .twicely-cart-actions,
    .twicely-checkout-actions {
        flex-direction: column;
    }
}

/* Stripe Elements Styling */
.twicely-stripe-card-wrapper {
    position: relative;
}

.twicely-stripe-card-element {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Stripe injects an iframe, ensure it fits properly */
.twicely-stripe-card-element iframe {
    width: 100% !important;
    min-height: 20px !important;
}

/* Ensure Stripe Elements container displays properly */
.twicely-stripe-card-element > div {
    min-height: 20px !important;
}

/* Ensure Stripe Elements can receive focus */
.twicely-stripe-card-element * {
    pointer-events: auto;
}

.twicely-stripe-card-element:focus-within {
    border-color: #000;
    box-shadow: none;
    outline: none;
}

/* Individual card field styling */
#twicely-stripe-card-number-element {
    width: 100%;
}

#twicely-stripe-card-expiry-element,
#twicely-stripe-card-cvc-element {
    width: 100%;
}

/* Layout for expiry and CVC fields side by side */
.twicely-checkout-form .twicely-form-row .twicely-form-group:first-child #twicely-stripe-card-expiry-element,
.twicely-checkout-form .twicely-form-row .twicely-form-group:last-child #twicely-stripe-card-cvc-element {
    width: 100%;
}

/* Error styling for individual fields */
.twicely-stripe-card-errors {
    display: none;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    font-size: 14px;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-stripe-card-errors:not(:empty) {
    display: block;
}

/* Specific error containers for each field */
#twicely-stripe-card-number-errors,
#twicely-stripe-card-expiry-errors,
#twicely-stripe-card-cvc-errors {
    display: none;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    font-size: 14px;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#twicely-stripe-card-number-errors:not(:empty),
#twicely-stripe-card-expiry-errors:not(:empty),
#twicely-stripe-card-cvc-errors:not(:empty) {
    display: block;
}

/* General error container (shown below all fields) */
#twicely-stripe-card-errors {
    margin-top: 12px;
}

/* Payment card icons */
.twicely-payment-card-icons {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.twicely-payment-card-icons img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .twicely-stripe-card-element {
        padding: 0.75rem;
    }
}

/* Loading Overlay */
.twicely-checkout-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.twicely-checkout-loading-content {
    background: #fff;
    padding: 2rem 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.twicely-checkout-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.twicely-checkout-loading-text {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .twicely-cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .twicely-cart-item-image {
        width: 100%;
        height: 200px;
        margin: 0 auto;
    }
    
    .twicely-cart-item-actions {
        justify-self: center;
    }
}

/* Package Key Points Styles */
.twicely-package-key-points {
    margin: 0;
    padding: 0;
}

.twicely-key-points-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.twicely-key-points-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.twicely-key-point-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.twicely-key-point-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    min-width: 17px;
    min-height: 17px;
    border-radius: 50%;
    background-color: #E8F5E9;
    flex-shrink: 0;
}

.twicely-key-point-icon svg {
    width: 13px;
    height: 13px;
    display: block;
}

.twicely-key-point-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    font-family: 'Recoleta', 'Recoleta Alt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Package Gallery Styles */
.twicely-package-gallery {
    width: 100%;
    margin: 0;
    padding: 0;
}

.twicely-gallery-main {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.twicely-gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 8px !important;
}

.twicely-gallery-main-image.loading {
    opacity: 0.7;
}

.twicely-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
}

.twicely-gallery-thumb {
    background: none;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    aspect-ratio: 1;
    position: relative;
    background-color: #f5f5f5;
}

.twicely-gallery-thumb:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.twicely-gallery-thumb.active {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.twicely-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .twicely-gallery-thumbnails {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .twicely-gallery-main {
        margin-bottom: 12px;
    }
}

