:root {
    --wd-primary-color: #8a0000; /* Dark Red used for dates */
    --wd-delivery-green: #27ae60; /* Modern green for delivery */
    --wd-form-brd-color: #e2e8f0;
    --wd-form-color: #334155;
    --wd-brd-radius: 8px;
}

.fwm-content {
    margin-top: 25px;
    margin-bottom: 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.fwm-content fieldset {
    border: 1px solid var(--wd-form-brd-color);
    border-radius: var(--wd-brd-radius);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    background-color: #fff;
    /* Box shadow to match the screenshot */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
}

.fwm-content legend {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    padding: 0 15px;
    margin-left: 10px;
    background: transparent;
    border: none;
    width: auto;
}

/* Gönderici & Alıcı Label - Input Stilleri */
.fwm_custom_address label {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.fwm_custom_address label > span {
    font-size: 14px;
    margin-bottom: 8px;
    color: #444;
}

.fwm_custom_address label .required {
    color: red;
}

.fwm-content input[type="text"],
.fwm-content input[type="tel"],
.fwm-content select,
.fwm-content textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--wd-form-brd-color);
    border-radius: var(--wd-brd-radius);
    outline: none;
    font-size: 14px;
    color: var(--wd-form-color);
    transition: border-color 0.2s ease;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.fwm-content input:focus,
.fwm-content select:focus,
.fwm-content textarea:focus {
    border-color: var(--wd-primary-color);
}

.fwm-content select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23999999%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
}

.fwm-content textarea {
    resize: vertical;
}

/* Telefon Kodu Alanı (intlTelInput entegrasyon) */
.iti { 
    width: 100%; 
}
.iti__flag-container { z-index: 10; }
.fwm_custom_address .iti input[type="tel"] {
     padding-left: 105px !important;
}


/* Teslimat Türü Flex Alanı */
.delivery-types {
    display: flex;
    width: 100%;
    gap: 1rem;
    position: relative;
    border: 1px solid #f0f0f0;
    border-radius: var(--wd-brd-radius);
    overflow: hidden;
}

.delivery-type {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    width: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #242424;
    text-align: center;
    transition: all ease-in-out .2s;
}

.delivery-type i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #666;
}

.delivery-type.selected {
    background: var(--wd-delivery-green) !important;
    color: white;
}
.delivery-type.selected i {
    color: white;
}

/* Gün Seçim Alanları (Butonlar) */
.fwm_days_wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.day {
    flex: 1;
    min-width: 75px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px 5px;
    cursor: pointer;
    background-color: #fafafa;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.day:hover {
    border-color: #ddd;
    background: #f1f1f1;
}

.day.selected {
    border-color: #ddd;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-weight: bold;
}
.day.selected .day__text {
    font-weight: bold;
}

.day__date {
    font-size: 14px;
    color: #444;
    margin-bottom: 4px;
}
.day__date i {
    font-size: 18px;
}
.day__text {
    font-size: 15px;
    color: #111;
}

/* Çiçek Notu Ekstra */
.fwm_note_textarea_wrapper {
    overflow: hidden;
}
.fwm_note_textarea_wrapper textarea {
    width: 100%;
}

/* Time Slots */
.fwm_time_slots {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.time-slot {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #334155;
    font-weight: 500;
}

.time-slot:hover {
    background: #f1f5f9;
}

.time-slot.selected {
    background: var(--wd-primary-color);
    color: #fff;
    border-color: var(--wd-primary-color);
}

/* Vanilla Calendar Overlay (Gizleme vs) */
.fwm_calendar.hidden {
    display: none;
}
.fwm_calendar {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
}
