/* Fix for Shop Create/Update form styling */

.tap-shop-create {
    padding-bottom: 80px;
}

.tap-shop-create__layout {
    display: flex;
    gap: 60px; /* Increased gap */
}

.tap-shop-create__main {
    flex: 1;
}

.tap-shop-form__grid {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.tap-shop-form__logo {
    flex-shrink: 0;
    width: 200px; /* Wider logo area */
}

.tap-logo-upload {
    display: block;
    width: 100%; /* Full width of container */
    height: 200px; /* Square */
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f1f5;
    margin-bottom: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tap-logo-upload__input {
    display: none;
}

.tap-logo-upload__preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tap-logo-upload__icon-placeholder {
    width: 40px;
    height: 40px;
    opacity: 0.4;
}

.tap-logo-upload__edit {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #FE3650; /* Icon color */
}

.tap-logo-upload__edit svg {
    width: 16px;
    height: 16px;
}

.tap-shop-form__fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tap-row {
    display: flex;
    gap: 24px;
}

.tap-field {
    flex: 1;
    min-width: 0;
}

.tap-input, .tap-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E0E1E6;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    box-sizing: border-box;
    color: #121a26;
}

.tap-input:focus, .tap-textarea:focus {
    border-color: #FE3650;
}

.tap-input::placeholder, .tap-textarea::placeholder {
    color: #909499;
}

.tap-textarea {
    resize: none;
    min-height: 120px;
}

.tap-field--full {
    width: 100%;
}

.tap-row--three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tap-row--time {
    display: flex;
    align-items: center;
    gap: 32px;
}

.tap-time {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tap-time__input {
    width: 80px;
    padding: 12px;
    border: 1px solid #E0E1E6;
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
}

.tap-time__sep {
    color: #909499;
}

.tap-field--toggles {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 0;
}

/* Простой чекбокс для "Круглосуточно" */
.tap-toggle-simple .tap-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #606266;
    user-select: none;
}

.tap-toggle-simple .tap-checkbox input[type="checkbox"] {
    appearance: auto;
    width: 18px;
    height: 18px;
    accent-color: #34c759;
    cursor: pointer;
    margin: 0;
}

.create-btn-flex {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 32px;
}

.tap-primary-btn {
    background: #82868D; /* Grey like in screenshot */
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.tap-primary-btn:hover {
    background: #6c707a;
}

.tap-primary-btn--icon {
    width: 20px;
    height: 20px;
}

.tap-secondary-btn {
    background: #f5f5f5;
    color: #FE3650;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    background: #F6F6F7;
}

.tap-secondary-btn:hover {
    background: #eaeaec;
}

.delete-btn {
    background: transparent !important;
    color: #FE3650 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    display: inline-block !important;
    padding: 0 !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    font-weight: 600;
}

.delete-btn:hover {
    text-decoration: underline;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: #eef0f5 url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNhOGFiYjAiIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cG9seWdvbiBwb2ludHM9IjEgNiAxIDIyIDggMTggMTYgMjIgMjMgMTggMjMgMiAxNiA2IDggMiAxIDYiPjwvcG9seWdvbj48bGluZSB4MT0iOCIgeTE9IjIiIHgyPSI4IiB5Mj0iMTgiPjwvbGluZT48bGluZSB4MT0iMTYiIHkxPSI2IiB4Mj0iMTYiIHkyPSIyMiI+PC9saW5lPjwvc3ZnPg==') center no-repeat;
    border-radius: 16px;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
}

.map-label {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #606266;
}

@media (max-width: 768px) {
    .tap-shop-form__grid {
        flex-direction: column;
    }
    .tap-shop-form__logo {
        width: 100%;
    }
    .tap-logo-upload {
        height: 200px;
    }
    .tap-row--three {
        grid-template-columns: 1fr;
    }
    .tap-row--time {
        flex-direction: column;
        align-items: flex-start;
    }
}
