/**
 * Uber Direct Coordinate Map Styles
 * Loaded only when Coordinate Mode with Map Correction is enabled
 */

/* Wrapper */
#uberd-coordinate-map-wrapper {
    width: 100%;
    margin: 20px 0;
}

#uberd-coordinate-map-wrapper h3 {
    margin-bottom: 15px;
}

/* Map container */
.uberd-coordinate-map-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0;
}

#uberd-coordinate-map {
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Center pin overlay */
.uberd-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 1000;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.uberd-center-pin svg {
    display: block;
    width: 36px;
    height: 48px;
}

/* Controls */
.uberd-coordinate-controls {
    margin-top: 15px;
}

/* Message styles - Modern design */
.uberd-coordinate-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: none;
    border-radius: 12px;
    color: #2E7D32;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.uberd-coordinate-note::before {
    content: '💡';
    font-size: 18px;
    flex-shrink: 0;
}

.uberd-correction-message-container {
    margin-bottom: 0;
}

.uberd-correction-message-container:empty {
    display: none;
}

.uberd-correction-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #C62828;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    animation: shake 0.4s ease-out;
}

.uberd-correction-message strong {
    display: none;
}

.uberd-correction-message::before {
    content: '⚠️';
    font-size: 18px;
    flex-shrink: 0;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

#uberd-adjust-coordinate-btn {
    margin-top: 0;
    transition: 0.3s;
    border: none;
    font-size: 16px;
}

/* eEATスタイル　*/
#uberd-coordinate-map-wrapper {
    border: 1px solid #dcdcdc;
    background: #fff;
    text-align: center;
    transition: 1s;
}
#uberd-coordinate-map-wrapper.uberd-map-adjusting {
    background: #FFFFD9;
}
#uberd-coordinate-map-wrapper.uberd-map-adjusting-error {
    background: #ffcfdd;
}
#uberd-coordinate-map-wrapper h3 {
    padding: 16px 0;
    font-size: 16px;
    text-align: center;
    margin: 0;
    background: #dcdcdc;
}
.uberd-coordinate-map-content {
    padding: 20px;
    position: relative;
}
#uberd-coordinate-map-wrapper.uberd-map-adjusting .uberd-coordinate-map-container:before {
    content: '位置を調整中...';
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    border-radius: 10px;
    z-index: 100;
    font-size: 16px;
    text-align: center;
    color: #fff;
    padding: 6px 10px 6px 8px;
    line-height: 1;
    transition: 0.3s;
}
#uberd-coordinate-map-wrapper.uberd-map-adjusting-error .uberd-coordinate-map-container:before {
    content: '調整エリア外です';
    background: #C62828;
}
#uberd-coordinate-map-wrapper.uberd-map-adjusting-error #uberd-adjust-coordinate-btn {
    background: #999;
    cursor: not-allowed;
}