/* WC Order Tip — Frontend v1.0.0 */

.wcot-wrap { padding: 12px 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.wcot-title { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.wcot-desc { font-size: 12px; color: #777; margin-bottom: 10px; line-height: 1.4; }

.wcot-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 -2px; }

.wcot-tip-btn {
    display: inline-block; cursor: pointer; border: 1.5px solid #ddd; padding: 2px;
    transition: border-color .15s, box-shadow .15s; line-height: 1;
}
.wcot-tip-btn > span {
    display: inline-block; padding: 6px 14px; font-size: 13px; font-weight: 600;
    background: #f5f5f5; color: #333; transition: background .15s, color .15s; white-space: nowrap;
}
.wcot-tip-btn:hover { border-color: #1a73e8; }
.wcot-tip-btn:hover > span { background: #1a73e8; color: #fff; }
.wcot-tip-btn.active { border-color: #1a73e8; box-shadow: 0 0 0 1px #1a73e8; }
.wcot-tip-btn.active > span { background: #1a73e8; color: #fff; }

.wcot-tip-btn.loading { position: relative; pointer-events: none; }
.wcot-tip-btn.loading > span { opacity: .3; }
.wcot-tip-btn.loading::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 16px; height: 16px; margin: -8px 0 0 -8px;
    border: 2px solid #ccc; border-top-color: #333; border-radius: 50%;
    animation: wcot-spin .6s linear infinite;
}
@keyframes wcot-spin { to { transform: rotate(360deg); } }

/* Styles */
.wcot-style-rounded .wcot-tip-btn { border-radius: 50px; }
.wcot-style-rounded .wcot-tip-btn > span { border-radius: 50px; padding: 6px 18px; }
.wcot-style-square .wcot-tip-btn { border-radius: 4px; }
.wcot-style-square .wcot-tip-btn > span { border-radius: 2px; }

/* Custom input */
.wcot-custom { margin-top: 8px; }
.wcot-custom-form { display: flex; gap: 4px; align-items: stretch; max-width: 240px; }
.wcot-custom-input {
    flex: 1; padding: 6px 10px; border: 1.5px solid #ddd; border-radius: 4px;
    font-size: 13px; font-weight: 600; outline: none; transition: border-color .15s;
}
.wcot-custom-input:focus { border-color: #1a73e8; }
.wcot-custom-add {
    padding: 6px 16px; border: 1.5px solid #ddd; border-radius: 4px;
    background: #f5f5f5; font-size: 12px; font-weight: 600; cursor: pointer;
    transition: all .15s;
}
.wcot-custom-add:hover { background: #1a73e8; color: #fff; border-color: #1a73e8; }
