.cap-calc {
margin: 18px 0;
padding: 16px;
border: 1px solid #e2e8f0;
border-radius: 12px;
background: #f8fafc;
max-width: 420px;
box-sizing: border-box;
font-size: 14px;
line-height: 1.4;
}
.cap-calc__head {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
color: #1e3a8a;
}
.cap-calc__icon {
flex-shrink: 0;
color: #2563eb;
}
.cap-calc__titles {
display: flex;
flex-direction: column;
line-height: 1.25;
}
.cap-calc__title {
font-weight: 600;
font-size: 14px;
color: #0f172a;
}
.cap-calc__brand {
font-size: 12px;
font-weight: 600;
color: #2563eb;
letter-spacing: 0.01em;
}
.cap-calc__row {
display: flex;
gap: 8px;
align-items: stretch;
}
.cap-calc__input {
flex: 1 1 auto;
min-width: 0;
padding: 10px 12px;
font-size: 14px;
border: 1px solid #cbd5e1;
border-radius: 8px;
background: #fff;
color: #0f172a;
box-sizing: border-box;
transition: border-color 0.15s, box-shadow 0.15s;
}
.cap-calc__input:focus {
outline: none;
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.cap-calc__btn {
flex-shrink: 0;
padding: 10px 18px;
font-size: 14px;
font-weight: 600;
color: #fff;
background: #2563eb;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background 0.15s;
white-space: nowrap;
}
.cap-calc__btn:hover {
background: #1d4ed8;
}
.cap-calc__btn:disabled {
opacity: 0.6;
cursor: default;
}
.cap-calc__result {
margin-top: 12px;
padding: 12px 14px;
border-radius: 8px;
background: #fff;
border: 1px solid #e2e8f0;
animation: cap-calc-fade 0.2s ease;
}
.cap-calc__result--error {
background: #fef2f2;
border-color: #fecaca;
color: #b91c1c;
} .cap-calc__opts {
list-style: none;
margin: 0;
padding: 0;
}
.cap-calc__opt {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 4px 10px;
padding: 8px 0;
border-bottom: 1px solid #f1f5f9;
}
.cap-calc__opt:first-child {
padding-top: 0;
}
.cap-calc__opt:last-child {
padding-bottom: 0;
border-bottom: none;
}
.cap-calc__opt-label {
flex: 1 1 auto;
font-weight: 600;
color: #334155;
}
.cap-calc__opt-price {
font-size: 17px;
font-weight: 700;
color: #0f172a;
white-space: nowrap;
}
.cap-calc__opt--free .cap-calc__opt-price {
color: #16a34a;
}
.cap-calc__opt-eta {
flex-basis: 100%;
font-size: 12px;
color: #64748b;
} .cap-calc__hint {
display: flex;
align-items: baseline;
gap: 6px;
margin: 10px 0 0;
padding-top: 10px;
border-top: 1px dashed #cbd5e1;
font-size: 13px;
color: #15803d;
}
.cap-calc__hint::before {
content: "\2192"; font-weight: 700;
}
.cap-calc__cp-link {
display: inline-block;
margin-top: 10px;
font-size: 12px;
color: #2563eb;
text-decoration: none;
}
.cap-calc__cp-link:hover {
text-decoration: underline;
}
.cap-calc__spinner {
display: inline-block;
width: 14px;
height: 14px;
margin-right: 6px;
border: 2px solid rgba(255, 255, 255, 0.5);
border-top-color: #fff;
border-radius: 50%;
vertical-align: -2px;
animation: cap-calc-spin 0.7s linear infinite;
}
@keyframes cap-calc-spin {
to { transform: rotate(360deg); }
}
@keyframes cap-calc-fade {
from { opacity: 0; transform: translateY(-3px); }
to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
.cap-calc {
max-width: 100%;
}
}