/* Delivery Date & Time Selector */
.wcsr-delivery-selector {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

/* Special Day Card - Full Width Button */
.wcsr-special-day-full {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    grid-column: 1 / -1 !important;
    padding: 16px 20px;
    min-height: 70px;
    border: 3px solid #5b4bdb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(91, 75, 219, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.wcsr-special-day-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 75, 219, 0.3);
    border-color: #4a3ab0;
}

.wcsr-special-day-full.active {
    background: #5b4bdb;
    border-color: #5b4bdb;
}

.wcsr-special-title {
    font-size: 16px;
    font-weight: 700;
    color: #5b4bdb;
    font-family: 'Instrument Sans';
    letter-spacing: 0.5px;
}

.wcsr-special-day-full.active .wcsr-special-title,
.wcsr-special-day-full.active .wcsr-special-date {
    color: white;
}

.wcsr-special-date {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Mobile Responsive for Special Card */
@media (max-width: 768px) {
    .wcsr-special-day-card {
        min-width: 110px;
        padding: 10px 6px;
    }

    .wcsr-card-icon {
        font-size: 28px;
    }

    .wcsr-card-title {
        font-size: 12px;
    }
}

.wcsr-delivery-date-group,
.wcsr-delivery-time-group {
    margin-bottom: 20px;
}

.wcsr-delivery-date-group:last-child,
.wcsr-delivery-time-group:last-child {
    margin-bottom: 0;
}

.wcsr-delivery-selector label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 12px;
}

.wcsr-delivery-selector label svg {
    color: #48bb78;
}

/* Date Buttons */
.wcsr-date-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.wcsr-date-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    min-height: 80px;
}

.wcsr-date-btn:hover {
    border-color: #48bb78;
    background: #f0fff4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(72, 187, 120, 0.1);
}

.wcsr-date-btn.active {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
}

.wcsr-date-btn.wcsr-loading-dates {
    grid-column: 1 / -1;
    opacity: 0.6;
    cursor: wait;
}

.wcsr-date-day {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.wcsr-date-date {
    font-size: 13px;
    opacity: 0.8;
    color: #000000;
}

.wcsr-date-btn.active .wcsr-date-day,
.wcsr-date-btn.active .wcsr-date-date {
    color: white;
}

.wcsr-calendar-btn:hover .wcsr-date-day,
.wcsr-calendar-btn:hover .wcsr-date-date {
    color: #333333 !important;
    /* Daha koyu bir renk için, tamamen siyah (#000) yerine #333 kullanıldı */
}

.wcsr-date-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ffd700;
    color: #2d3748;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.wcsr-date-btn.active .wcsr-date-badge {
    background: white;
    color: #48bb78;
}

/* Calendar Button */
.wcsr-calendar-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.wcsr-calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.wcsr-calendar-btn .wcsr-date-day,
.wcsr-calendar-btn .wcsr-date-date {
    color: white;
}

.wcsr-calendar-btn.active {
    background: #48bb78;
    border-color: #48bb78;
}

/* Inline Date Picker */
.wcsr-inline-date-picker {
    background: #f8f9fa;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcsr-inline-date-picker label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 12px;
}

.wcsr-date-selects {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.wcsr-date-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wcsr-date-select:hover {
    border-color: #667eea;
}

.wcsr-date-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wcsr-confirm-custom-date {
    width: 100%;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
    border: none !important;
    color: white !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600 !important;
}

.wcsr-confirm-custom-date:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3) !important;
}

.wcsr-confirm-custom-date:disabled {
    background: #cbd5e0 !important;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 480px) {
    .wcsr-date-selects {
        grid-template-columns: 1fr;
    }
}

/* Special date styles */
.wcsr-date-special {
    position: relative;
    overflow: visible;
}

.wcsr-date-special::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    border-radius: 10px;
    z-index: -1;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.wcsr-special-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    color: #2d3748 !important;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* Calendar Modal */
.wcsr-calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcsr-calendar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.wcsr-calendar-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wcsr-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.wcsr-calendar-header h3 {
    margin: 0;
    font-size: 18px;
}

.wcsr-calendar-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
}

.wcsr-calendar-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.wcsr-calendar-body {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* jQuery UI Datepicker Custom Styling */
#wcsr-inline-calendar {
    width: 100%;
    font-size: 14px;
}

#wcsr-inline-calendar .ui-datepicker {
    width: 100%;
    padding: 10px;
    border: none;
    background: transparent;
}

#wcsr-inline-calendar .ui-datepicker-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

#wcsr-inline-calendar .ui-datepicker-title {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

#wcsr-inline-calendar .ui-datepicker-prev,
#wcsr-inline-calendar .ui-datepicker-next {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

#wcsr-inline-calendar .ui-datepicker-prev:hover,
#wcsr-inline-calendar .ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

#wcsr-inline-calendar .ui-datepicker-prev span,
#wcsr-inline-calendar .ui-datepicker-next span {
    background-position: center;
}

#wcsr-inline-calendar .ui-datepicker-calendar {
    width: 100%;
}

#wcsr-inline-calendar .ui-datepicker-calendar th {
    color: #667eea;
    font-weight: 600;
    padding: 8px;
    font-size: 12px;
}

#wcsr-inline-calendar .ui-datepicker-calendar td {
    padding: 2px;
}

#wcsr-inline-calendar .ui-datepicker-calendar td a,
#wcsr-inline-calendar .ui-datepicker-calendar td span {
    display: block;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

#wcsr-inline-calendar .ui-datepicker-calendar td a {
    color: #2d3748;
    text-decoration: none;
}

#wcsr-inline-calendar .ui-datepicker-calendar td a:hover {
    background: #f0f9ff;
    border-color: #667eea;
    color: #667eea;
}

#wcsr-inline-calendar .ui-datepicker-calendar td .ui-state-active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    font-weight: 600;
}

#wcsr-inline-calendar .ui-datepicker-calendar td .ui-state-disabled {
    color: #cbd5e0;
    cursor: not-allowed;
}

#wcsr-inline-calendar .ui-datepicker-today a {
    background: #e6fffa;
    border-color: #48bb78;
    color: #48bb78;
    font-weight: 600;
}

#wcsr-inline-calendar .wcsr-blocked-date a {
    background: #fed7d7;
    color: #c53030;
    text-decoration: line-through;
}

#wcsr-calendar-input,
.wcsr-calendar-date-picker {
    width: 100%;
    padding: 15px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 18px;
    background: #f8f9fa;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
}

#wcsr-calendar-input:focus,
.wcsr-calendar-date-picker:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* Make date input more prominent */
#wcsr-calendar-input::-webkit-calendar-picker-indicator,
.wcsr-calendar-date-picker::-webkit-calendar-picker-indicator {
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.wcsr-calendar-confirm {
    width: 100%;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
    border: none !important;
    color: white !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s;
}

.wcsr-calendar-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3) !important;
}

/* Special date styles */
.wcsr-date-today {
    border-color: #4299e1;
}

.wcsr-date-tomorrow {
    border-color: #9f7aea;
}

/* Time Select */
#wcsr-delivery-time {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

#wcsr-delivery-time:hover {
    border-color: #48bb78;
}

#wcsr-delivery-time:focus {
    outline: none;
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

#wcsr-delivery-time:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f7fafc;
}

/* Warning Message */
.wcsr-delivery-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    font-size: 13px;
    color: #856404;
}

.wcsr-delivery-warning svg {
    flex-shrink: 0;
    color: #ffc107;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wcsr-date-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .wcsr-date-btn {
        padding: 10px 6px;
        min-height: 70px;
    }

    .wcsr-date-day {
        font-size: 13px;
    }

    .wcsr-date-date {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .wcsr-delivery-selector {
        padding: 20px 15px;
    }

    .wcsr-date-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .wcsr-delivery-selector label {
        font-size: 14px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcsr-delivery-time-group {
    animation: slideIn 0.3s ease;
}

/* Special Dates Styling (can be customized per date) */
.wcsr-date-btn[data-date*="2024-12-31"],
.wcsr-date-btn[data-date*="2025-01-01"] {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #ffd700;
}

.wcsr-date-btn[data-date*="2024-12-31"]:hover,
.wcsr-date-btn[data-date*="2025-01-01"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.3);
}