/* TDC Delivery - Frontend Styles */

.tdc-delivery-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tdc-delivery-wrapper h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 2px solid #d30c67;
}

/* Method selection cards */
.tdc-delivery-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tdc-method-option {
    flex: 1;
    min-width: 200px;
    cursor: pointer;
}

.tdc-method-radio {
    display: none;
}

.tdc-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
}

.tdc-method-card:hover {
    border-color: #d30c67;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 12, 103, 0.15);
}

.tdc-method-radio:checked + .tdc-method-card {
    border-color: #d30c67;
    background: linear-gradient(135deg, #fff5f8, #fff);
    box-shadow: 0 4px 15px rgba(211, 12, 103, 0.2);
}

.tdc-method-icon {
    font-size: 2.5em;
    margin-bottom: 8px;
}

.tdc-method-title {
    font-weight: 700;
    font-size: 1.05em;
    color: #333;
    margin-bottom: 4px;
}

.tdc-method-subtitle {
    font-size: 0.85em;
    color: #888;
}

/* Info boxes */
.tdc-info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #e8f5e9;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
    margin-bottom: 15px;
    animation: tdc-slideDown 0.3s ease;
}

.tdc-info-icon {
    font-size: 2em;
}

.tdc-info-content {
    font-size: 0.95em;
    line-height: 1.5;
}

/* City selector */
.tdc-delivery-details {
    animation: tdc-slideDown 0.3s ease;
}

.tdc-city-selector {
    position: relative;
    margin-bottom: 15px;
}

.tdc-city-selector label {
    display: block;
    margin-bottom: 6px;
    color: #333;
}

.tdc-city-search {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.tdc-city-search:focus {
    border-color: #d30c67;
    box-shadow: 0 0 0 3px rgba(211, 12, 103, 0.1);
}

.tdc-city-search::placeholder {
    color: #aaa;
}

.tdc-city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.tdc-city-suggestions.active {
    display: block;
}

.tdc-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.tdc-suggestion-item:hover {
    background: #f5f0f7;
}

.tdc-suggestion-item:last-child {
    border-bottom: none;
}

.tdc-suggestion-city {
    font-weight: 600;
    color: #333;
}

.tdc-suggestion-postal {
    color: #888;
    font-size: 0.85em;
    margin-left: 5px;
}

.tdc-suggestion-fee {
    color: #d30c67;
    font-weight: 700;
    font-size: 0.95em;
    white-space: nowrap;
}

/* Fee display */
.tdc-fee-display {
    padding: 12px 18px;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: 8px;
    border: 1px solid #c8e6c9;
    margin-bottom: 15px;
    animation: tdc-slideDown 0.3s ease;
}

.tdc-fee-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05em;
}

.tdc-fee-label {
    color: #333;
}

.tdc-fee-amount {
    font-weight: 700;
    color: #2e7d32;
    font-size: 1.2em;
}

.tdc-fee-free {
    color: #2e7d32;
    font-weight: 700;
    font-size: 1.1em;
}

/* Not deliverable warning */
.tdc-not-deliverable {
    padding: 15px 20px;
    background: #fff3e0;
    border-radius: 8px;
    border: 1px solid #ffe0b2;
    color: #e65100;
    animation: tdc-slideDown 0.3s ease;
}

.tdc-not-deliverable a {
    color: #d30c67;
    font-weight: 600;
    text-decoration: none;
}

.tdc-not-deliverable a:hover {
    text-decoration: underline;
}

/* Date section */
.tdc-date-section {
    margin-bottom: 15px;
    animation: tdc-slideDown 0.3s ease;
}

.tdc-date-section label {
    display: block;
    margin-bottom: 6px;
}

.tdc-date-input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    width: 100%;
    max-width: 250px;
    outline: none;
    transition: border-color 0.2s;
}

.tdc-date-input:focus {
    border-color: #d30c67;
}

.tdc-date-hint {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 0.85em;
}

/* Message section */
.tdc-message-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.tdc-message-section label {
    display: block;
    margin-bottom: 6px;
    color: #333;
}

.tdc-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.tdc-textarea:focus {
    border-color: #d30c67;
}

.tdc-char-count {
    display: block;
    text-align: right;
    color: #999;
    font-size: 0.8em;
    margin-top: 3px;
}

/* Animation */
@keyframes tdc-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .tdc-delivery-methods {
        flex-direction: column;
    }

    .tdc-method-option {
        min-width: 100%;
    }

    .tdc-delivery-wrapper {
        padding: 15px;
    }
}
